Skip to content

Commit

Permalink
Update database-testing.md (#7701)
Browse files Browse the repository at this point in the history
This assertion was removed in laravel 9 laravel/framework#39661
  • Loading branch information
IGedeon authored Feb 10, 2022
1 parent 8fc4f6c commit 3e09476
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions database-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,17 +636,7 @@ Assert that a table in the database does not contain records matching the given
]);

<a name="assert-deleted"></a>
#### assertDeleted

The `assertDeleted` asserts that a given Eloquent model has been deleted from the database:

use App\Models\User;

$user = User::find(1);

$user->delete();

$this->assertDeleted($user);
#### assertSoftDeleted

The `assertSoftDeleted` method may be used to assert a given Eloquent model has been "soft deleted":

Expand Down

0 comments on commit 3e09476

Please sign in to comment.