Skip to content

Commit

Permalink
[TMP] Some tests debuggining
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Oct 28, 2024
1 parent 9dc3e52 commit dd3d414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Server/Controller/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions tests/bundle/Functional/RelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit dd3d414

Please sign in to comment.