diff --git a/tests/Commenters/CurrentUserCommenterTest.php b/tests/Commenters/CurrentUserCommenterTest.php index b0fcda0..6b7a58a 100644 --- a/tests/Commenters/CurrentUserCommenterTest.php +++ b/tests/Commenters/CurrentUserCommenterTest.php @@ -36,7 +36,7 @@ Event::listen(QueryExecuted::class, function (QueryExecuted $event) use ($user) { expect($event->sql)->toContainComment('user_id', $user->id) - ->and($event->sql)->notToContainComment('user_email', $user->email); + ->and($event->sql)->not->toContainComment('user_email', $user->email); }); User::all(); diff --git a/tests/Pest.php b/tests/Pest.php index 2434a9e..ec60f62 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -10,9 +10,3 @@ return $this; }); - -expect()->extend('notToContainComment', function (string $key, string|int|null $value) { - expect($this->value)->not->toContain((string)Comment::make($key, $value)); - - return $this; -});