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

testGetFileInputStream() public method

    public function testGetFileInputStream()
    {
        $binaryFile = new BinaryFile();
        $this->publishedIoServiceMock->expects($this->once())->method('getFileInputStream')->with($binaryFile)->will($this->returnValue('resource'));
        $this->draftIoServiceMock->expects($this->never())->method('getFileInputStream');
        self::assertEquals('resource', $this->service->getFileInputStream($binaryFile));
    }