public function testDeleteNotFound()
 {
     $container = $this->getContainerMock();
     $container->shouldReceive('getObject')->andThrow('OpenCloud\\ObjectStore\\Exception\\ObjectNotFoundException');
     $adapter = new Rackspace($container);
     $this->assertFalse($adapter->delete('filename.txt'));
 }
Example #2
0
 public function testDeleteNotFound()
 {
     $container = $this->getContainerMock();
     $container->shouldReceive('deleteObject')->andThrow('Guzzle\\Http\\Exception\\BadResponseException');
     $adapter = new Rackspace($container);
     $this->assertFalse($adapter->delete('filename.txt'));
 }