Skip to content

Commit

Permalink
Fixed UrlStorage test added for EZP-23544
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier committed Dec 19, 2014
1 parent 0762a75 commit 21dfba2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eZ/Publish/Core/FieldType/Tests/Url/UrlStorageTest.php
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 21dfba2

Please sign in to comment.