/** * @covers Uecode\Bundle\QPushBundle\Provider\AwsProvider::createQueue * @covers Uecode\Bundle\QPushBundle\Provider\AwsProvider::queueExists */ public function testCreateQueue() { $provider = $this->getAwsProvider(['push_notifications' => false]); $stub = $provider->getCache(); $stub->expects($this->once())->method('contains')->will($this->returnValue(true)); $this->assertTrue($provider->queueExists()); $provider->createQueue(); $this->assertTrue($provider->queueExists()); $this->provider->createQueue(); $this->assertTrue($this->provider->queueExists()); }