/** * @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)); }
public function exists($binaryFileId) { return $this->ioHandler->exists($this->getPrefixedUri($binaryFileId)); }