Skip to content

Commit

Permalink
test: prevent false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 21, 2024
1 parent 8219e76 commit f97c67e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/tags/tests/integration/api/tags/ListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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')
Expand Down

0 comments on commit f97c67e

Please sign in to comment.