Skip to content

Commit

Permalink
Update RelationTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
amirkoklan committed Jun 5, 2017
1 parent 58e6488 commit 295382a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Form/FieldTypeHandler/RelationTest.php
Expand Up @@ -97,14 +97,14 @@ public function testConvertFieldValueToForm()
$this->contentService->expects($this->once())
->method('loadContent')
->with($destinationContentId)
->willReturn('foo');
->willReturn($destinationContentId);

$relation = new Relation($this->repository, $this->translationHelper);
$relationValue = new RelationValue(2);

$returnedValue = $relation->convertFieldValueToForm($relationValue);

$this->assertEquals('foo', $returnedValue);
$this->assertEquals($destinationContentId, $returnedValue);
}

public function testConvertFieldValueToFormNullDestinationContentId()
Expand Down

0 comments on commit 295382a

Please sign in to comment.