From 68db1486cdd06fc0cc159e58d01bac4ecbf9162e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 29 Jan 2025 21:10:18 +0100 Subject: [PATCH] Add tests on doesntExist --- tests/QueryTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/QueryTest.php b/tests/QueryTest.php index 78a7b1bee..4fd362ae9 100644 --- a/tests/QueryTest.php +++ b/tests/QueryTest.php @@ -411,6 +411,8 @@ public function testExists(): void { $this->assertFalse(User::where('age', '>', 37)->exists()); $this->assertTrue(User::where('age', '<', 37)->exists()); + $this->assertTrue(User::where('age', '>', 37)->doesntExist()); + $this->assertFalse(User::where('age', '<', 37)->doesntExist()); } public function testSubQuery(): void