We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05bdd81 commit e2c9762Copy full SHA for e2c9762
tests/QueryTest.php
@@ -71,6 +71,21 @@ public function testLike(): void
71
$this->assertCount(1, $users);
72
}
73
74
+ public function testNotLike(): void
75
+ {
76
+ $users = User::where('name', 'not like', '%doe')->get();
77
+ $this->assertCount(7, $users);
78
+
79
+ $users = User::where('name', 'not like', '%y%')->get();
80
+ $this->assertCount(6, $users);
81
82
+ $users = User::where('name', 'not LIKE', '%y%')->get();
83
84
85
+ $users = User::where('name', 'not like', 't%')->get();
86
+ $this->assertCount(8, $users);
87
+ }
88
89
public function testSelect(): void
90
{
91
$user = User::where('name', 'John Doe')->select('name')->first();
0 commit comments