public function testCreate() { $this->assertFalse($this->provider->queueExists()); $stub = $this->provider->getCache(); $stub->expects($this->once())->method('contains')->will($this->returnValue(true)); $this->assertTrue($this->provider->queueExists()); $this->assertTrue($this->provider->create()); $this->assertTrue($this->provider->queueExists()); $provider = $this->getIronMqProvider(['subscribers' => [['protocol' => 'email', 'endpoint' => '*****@*****.**']]]); $this->setExpectedException('InvalidArgumentException'); $provider->create(); }
public function testQueueInfo() { $this->assertNull($this->provider->queueInfo()); $this->provider->create(); $queue = $this->provider->queueInfo(); $this->assertEquals('530295fe3c94fbcf0c79cffe', $queue->id); $this->assertEquals('test', $queue->name); $this->assertEquals('52f67d032001c00005000057', $queue->project_id); }
public function testCreate() { //$this->assertFalse($this->provider->queueExists()); $this->assertTrue($this->provider->create()); $this->assertTrue($this->provider->queueExists()); }