diff --git a/extensions/tags/tests/integration/api/tags/ListTest.php b/extensions/tags/tests/integration/api/tags/ListTest.php index 14fd3e71c8..a6270e930c 100644 --- a/extensions/tags/tests/integration/api/tags/ListTest.php +++ b/extensions/tags/tests/integration/api/tags/ListTest.php @@ -79,7 +79,7 @@ public function user_sees_where_allowed() // 6, 7, 8 aren't included because child access shouldnt work unless parent // access is also given. $ids = Arr::pluck($data, 'id'); - $this->assertEquals(['1', '2', '3', '4', '9', '10', '11'], $ids); + $this->assertEqualsCanonicalizing(['1', '2', '3', '4', '9', '10', '11'], $ids); } #[Test] @@ -103,8 +103,8 @@ public function user_sees_where_allowed_with_included_tags(string $include, arra // 5 isnt included because parent access doesnt necessarily give child access // 6, 7, 8 aren't included because child access shouldnt work unless parent // access is also given. - $this->assertEquals(['1', '2', '3', '4', '9', '10', '11'], Arr::pluck($data, 'id')); - $this->assertEquals( + $this->assertEqualsCanonicalizing(['1', '2', '3', '4', '9', '10', '11'], Arr::pluck($data, 'id')); + $this->assertEqualsCanonicalizing( $expectedIncludes, collect($data) ->pluck('relationships.'.$include.'.data')