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