Skip to content

[12.x] Adds support for multiple models on single assertion call #10642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions database-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ $this->assertNotSoftDeleted($user);
<a name="assert-model-exists"></a>
#### assertModelExists

Assert that a given model exists in the database:
Assert that a given model or collection of models exist in the database:

```php
use App\Models\User;
Expand All @@ -267,7 +267,7 @@ $this->assertModelExists($user);
<a name="assert-model-missing"></a>
#### assertModelMissing

Assert that a given model does not exist in the database:
Assert that a given model or collection of models do not exist in the database:

```php
use App\Models\User;
Expand Down