Skip to content

Commit

Permalink
Relations can be returned in different order now - fix test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Oct 28, 2024
1 parent dd3d414 commit 98e6742
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/bundle/Functional/RelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ 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']);
$expectedRelationTypes = [
'LINK',
'EMBED',
'ATTRIBUTE',
];

$actualTypes = array_column($relations, 'RelationType');

self::assertEqualsCanonicalizing($expectedRelationTypes, $actualTypes);
}
}

0 comments on commit 98e6742

Please sign in to comment.