Exemple #1
0
 /**
  * @covers \eZ\Publish\Core\IO\Handler::delete
  */
 public function testDelete()
 {
     $repositoryPath = 'images/delete.gif';
     $struct = $this->getCreateStructFromLocalFile($this->imageInputPath, $repositoryPath);
     $binaryFile = $this->IOHandler->create($struct);
     self::assertTrue($this->IOHandler->exists($repositoryPath));
     $this->IOHandler->delete($repositoryPath);
     self::assertFalse($this->IOHandler->exists($repositoryPath));
 }
Exemple #2
0
 public function exists($binaryFileId)
 {
     return $this->ioHandler->exists($this->getPrefixedUri($binaryFileId));
 }