Skip to content

Commit

Permalink
Update user profile assertion to include name and email
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Oct 30, 2024
1 parent 31f4fc6 commit 096a325
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Feature/Filament/Pages/ProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
->call('save')
->assertHasNoFormErrors();

$this->assertDatabaseHas(User::class, $updatedUser->toArray());
$this->assertDatabaseHas(User::class, [
'name' => $updatedUser->name,
'email' => $updatedUser->email,
]);
});

it('can update password and authenticate', function () {
Expand Down

0 comments on commit 096a325

Please sign in to comment.