From c1bf6937ca39a02b25dea49dfe8b71b3cd771728 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 13 May 2022 13:13:52 +0200 Subject: [PATCH] tests/ResourceTest.php: in test_default_query() test static method also. --- tests/ResourceTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()