diff --git a/tests/php/LabelTreeTest.php b/tests/php/LabelTreeTest.php index 976f1907d..c0c3cdb59 100644 --- a/tests/php/LabelTreeTest.php +++ b/tests/php/LabelTreeTest.php @@ -242,7 +242,7 @@ public function testScopeAccessibleBy() $project = ProjectTest::create(['creator_id' => $user->id]); $project->labelTrees()->attach($tree3); - $ids = LabelTree::accessibleBy($user)->pluck('id')->toArray(); + $ids = LabelTree::accessibleBy($user)->orderBy('id')->pluck('id')->toArray(); $this->assertEquals([$tree->id, $tree2->id, $tree3->id], $ids); }