eZ\Publish\Core\FieldType\Tests\Image\IO\LegacyTest::testLoadBinaryFileByUriWithPublishedFile PHP Method

testLoadBinaryFileByUriWithPublishedFile() public method

    public function testLoadBinaryFileByUriWithPublishedFile()
    {
        $binaryFileUri = 'var/test/images/an/image.png';
        $binaryFile = new BinaryFile(array('id' => 'an/image.png'));
        $this->publishedIoServiceMock->expects($this->once())->method('loadBinaryFileByUri')->with($binaryFileUri)->will($this->returnValue($binaryFile));
        self::assertSame($binaryFile, $this->service->loadBinaryFileByUri($binaryFileUri));
    }