completed story 1.1 with QA tests and fixes
This commit is contained in:
@@ -15,7 +15,7 @@ test('profile information can be updated', function () {
|
||||
$this->actingAs($user);
|
||||
|
||||
$response = Volt::test('settings.profile')
|
||||
->set('name', 'Test User')
|
||||
->set('full_name', 'Test User')
|
||||
->set('email', 'test@example.com')
|
||||
->call('updateProfileInformation');
|
||||
|
||||
@@ -23,7 +23,7 @@ test('profile information can be updated', function () {
|
||||
|
||||
$user->refresh();
|
||||
|
||||
expect($user->name)->toEqual('Test User');
|
||||
expect($user->full_name)->toEqual('Test User');
|
||||
expect($user->email)->toEqual('test@example.com');
|
||||
expect($user->email_verified_at)->toBeNull();
|
||||
});
|
||||
@@ -34,7 +34,7 @@ test('email verification status is unchanged when email address is unchanged', f
|
||||
$this->actingAs($user);
|
||||
|
||||
$response = Volt::test('settings.profile')
|
||||
->set('name', 'Test User')
|
||||
->set('full_name', 'Test User')
|
||||
->set('email', $user->email)
|
||||
->call('updateProfileInformation');
|
||||
|
||||
@@ -72,4 +72,4 @@ test('correct password must be provided to delete account', function () {
|
||||
$response->assertHasErrors(['password']);
|
||||
|
||||
expect($user->fresh())->not->toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user