diff --git a/src/lib/Server/Controller/Content.php b/src/lib/Server/Controller/Content.php index 57d3eefc..bce92e15 100644 --- a/src/lib/Server/Controller/Content.php +++ b/src/lib/Server/Controller/Content.php @@ -752,7 +752,7 @@ public function createRelation($contentId, $versionNumber, Request $request) } $relation = $this->repository->getContentService()->addRelation($versionInfo, $destinationContentInfo); - + dump($relation); return new Values\CreatedRelation( [ 'relation' => new Values\RestRelation($relation, $contentId, $versionNumber), diff --git a/tests/bundle/Functional/RelationTest.php b/tests/bundle/Functional/RelationTest.php index bcd1dd4c..b076e6e7 100644 --- a/tests/bundle/Functional/RelationTest.php +++ b/tests/bundle/Functional/RelationTest.php @@ -60,6 +60,7 @@ public function testRelation() $testContent = $this->createContent($xml); $relations = $testContent['CurrentVersion']['Version']['Relations']['Relation']; + self::assertCount(3, $relations); self::assertEquals('LINK', $relations[0]['RelationType']); self::assertEquals('EMBED', $relations[1]['RelationType']); self::assertEquals('ATTRIBUTE', $relations[2]['RelationType']);