From ed3854a35456fcfa09fc62c064e6f70213b4ac1e Mon Sep 17 00:00:00 2001 From: Amir Date: Mon, 5 Jun 2017 17:26:21 +0200 Subject: [PATCH] Updating and correcting the test updating the test --- tests/Form/FieldTypeHandler/RelationTest.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/Form/FieldTypeHandler/RelationTest.php b/tests/Form/FieldTypeHandler/RelationTest.php index e205b34..bb42135 100644 --- a/tests/Form/FieldTypeHandler/RelationTest.php +++ b/tests/Form/FieldTypeHandler/RelationTest.php @@ -93,18 +93,12 @@ public function testAssertInstanceOfFieldTypeHandler() public function testConvertFieldValueToForm() { - $destinationContentId = 2; - $this->contentService->expects($this->once()) - ->method('loadContent') - ->with($destinationContentId) - ->willReturn($destinationContentId); - $relation = new Relation($this->repository, $this->translationHelper); $relationValue = new RelationValue(2); $returnedValue = $relation->convertFieldValueToForm($relationValue); - $this->assertEquals($destinationContentId, $returnedValue); + $this->assertEquals(2, $returnedValue); } public function testConvertFieldValueToFormNullDestinationContentId()