diff --git a/tests/ResourceTest.php b/tests/ResourceTest.php index 2f9151f..1998f1b 100644 --- a/tests/ResourceTest.php +++ b/tests/ResourceTest.php @@ -96,7 +96,10 @@ public function test_subtitle() public function test_default_query() { $resource = new UserQueryResource(); - $this->assertStringContainsString('order by "name" desc, "email" asc', $resource->query()->toSql()); + $expected = 'order by "name" desc, "email" asc'; + + $this->assertStringContainsString($expected, $resource->query()->toSql()); + $this->assertStringContainsString($expected, UserQueryResource::query()->toSql()); } public function test_new()