eZ\Publish\Core\FieldType\Image\IO\Legacy::exists PHP Method

exists() public method

public exists ( $binaryFileId )
    public function exists($binaryFileId)
    {
        return $this->publishedIOService->exists($binaryFileId);
    }

Usage Example

 public function testExists()
 {
     $path = 'path/file.png';
     $this->publishedIoServiceMock->expects($this->once())->method('exists')->with($path)->will($this->returnValue(true));
     $this->draftIoServiceMock->expects($this->never())->method('exists');
     self::assertTrue($this->service->exists($path));
 }