diff --git a/eZ/Publish/Core/FieldType/Tests/Url/UrlStorageTest.php b/eZ/Publish/Core/FieldType/Tests/Url/UrlStorageTest.php index fd53a3cddb2..9ebffa5c8db 100644 --- a/eZ/Publish/Core/FieldType/Tests/Url/UrlStorageTest.php +++ b/eZ/Publish/Core/FieldType/Tests/Url/UrlStorageTest.php @@ -160,6 +160,15 @@ public function testGetFieldDataWithEmptyUrlId() ->expects( $this->never() ) ->method( "error" ); + $storage = $this->getPartlyMockedStorage( array( "getGateway" ) ); + $storage + ->expects( $this->any() ) + ->method( "getGateway" ) + ->with( $this->getContext() ) + ->will( $this->returnValue( $gateway ) ); + + $storage->getFieldData( $versionInfo, $field, $this->getContext() ); + $this->assertEquals( null, $field->value->externalData ); }