/**
  * @covers \eZ\Publish\Core\IO\IOService::deleteDirectory()
  */
 public function testDeleteDirectory()
 {
     $id = "some/directory";
     $spiId = $this->getPrefixedUri($id);
     $this->binarydataHandlerMock->expects($this->once())->method('deleteDirectory')->with($spiId);
     $this->metadataHandlerMock->expects($this->once())->method('deleteDirectory')->with($spiId);
     $this->getIOService()->deleteDirectory('some/directory');
 }
 /**
  * @covers \eZ\Publish\Core\IO\IOService::deleteBinaryFile
  * @depends testCreateBinaryFile
  */
 public function testDeleteBinaryFile(BinaryFile $binaryFile)
 {
     $this->metadataHandlerMock->expects($this->once())->method('delete')->with($this->equalTo($this->getPrefixedUri($binaryFile->id)));
     $this->binarydataHandlerMock->expects($this->once())->method('delete')->with($this->equalTo($this->getPrefixedUri($binaryFile->id)));
     $this->getIOService()->deleteBinaryFile($binaryFile);
 }