public function setUp() { parent::setUp(); $this->vhosts = $this->prophesize('RabbitMq\\ManagementApi\\Api\\Vhost'); $this->client->vhosts()->willReturn($this->vhosts->reveal()); $this->vhostManager = new VhostManager(); }
public function setUp() { parent::setUp(); $this->bindings = $this->prophesize('RabbitMq\\ManagementApi\\Api\\Binding'); $this->client->bindings()->willReturn($this->bindings->reveal()); $this->bindingManager = new BindingManager(); }
public function setUp() { parent::setUp(); $this->exchanges = $this->prophesize('RabbitMq\\ManagementApi\\Api\\Exchange'); $this->client->exchanges()->willReturn($this->exchanges->reveal()); $this->configuration->isDeleteAllowed()->willReturn(false); $this->exchangeManager = new ExchangeManager(); }
public function setUp() { parent::setUp(); $this->permissions = $this->prophesize('RabbitMq\\ManagementApi\\Api\\Permission'); $this->client->permissions()->willReturn($this->permissions->reveal()); $this->configuration->isDeleteAllowed()->willReturn(false); $this->permissionManager = new PermissionManager(); }
public function setUp() { parent::setUp(); $this->queues = $this->prophesize('RabbitMq\\ManagementApi\\Api\\Queue'); $this->client->queues()->willReturn($this->queues->reveal()); $this->configuration->isDeleteAllowed()->willReturn(false); $this->bindingManager = $this->prophesize('Ola\\RabbitMqAdminToolkitBundle\\Manager\\BindingManager'); $this->queueManager = new QueueManager($this->bindingManager->reveal()); }