Skip to content

Commit 58275f0

Browse files
Fix test
1 parent 19832d2 commit 58275f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/IncludeTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ public function it_can_query_included_many_to_many_relationships()
184184
->allowedIncludes('related-through-pivot-models')
185185
->get();
186186

187-
// Based on the following queries: TestModel::with('relatedThroughPivotModels')->get();
188-
$this->assertQueryLogContains('select "related_through_pivot_models".*, "pivot_models"."test_model_id" as "pivot_test_model_id", "pivot_models"."related_through_pivot_model_id" as "pivot_related_through_pivot_model_id" from "related_through_pivot_models" inner join "pivot_models" on "related_through_pivot_models"."id" = "pivot_models"."related_through_pivot_model_id" where "pivot_models"."test_model_id" in (1, 2, 3, 4, 5)');
187+
// Based on the following query: TestModel::with('relatedThroughPivotModels')->get();
188+
// Without where-clause as that differs per Laravel version
189+
$this->assertQueryLogContains('select "related_through_pivot_models".*, "pivot_models"."test_model_id" as "pivot_test_model_id", "pivot_models"."related_through_pivot_model_id" as "pivot_related_through_pivot_model_id" from "related_through_pivot_models" inner join "pivot_models" on "related_through_pivot_models"."id" = "pivot_models"."related_through_pivot_model_id"');
189190
}
190191

191192
/** @test */

0 commit comments

Comments
 (0)