Skip to content

Commit

Permalink
fixup: replace notToContainComment with a not->toContainComment
Browse files Browse the repository at this point in the history
  • Loading branch information
iSWORD authored Oct 12, 2024
1 parent 190d3e5 commit 547d921
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion tests/Commenters/CurrentUserCommenterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 0 additions & 6 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

0 comments on commit 547d921

Please sign in to comment.