feat: Phase 2 - admin layout, dashboard, page CRUD, subscribers, user management
This commit is contained in:
@@ -17,7 +17,7 @@ class PasswordUpdateTest extends TestCase
|
||||
|
||||
$response = $this
|
||||
->actingAs($user)
|
||||
->from('/profile')
|
||||
->from('/admin/profile')
|
||||
->put('/password', [
|
||||
'current_password' => 'password',
|
||||
'password' => 'new-password',
|
||||
@@ -26,7 +26,7 @@ class PasswordUpdateTest extends TestCase
|
||||
|
||||
$response
|
||||
->assertSessionHasNoErrors()
|
||||
->assertRedirect('/profile');
|
||||
->assertRedirect('/admin/profile');
|
||||
|
||||
$this->assertTrue(Hash::check('new-password', $user->refresh()->password));
|
||||
}
|
||||
@@ -37,7 +37,7 @@ class PasswordUpdateTest extends TestCase
|
||||
|
||||
$response = $this
|
||||
->actingAs($user)
|
||||
->from('/profile')
|
||||
->from('/admin/profile')
|
||||
->put('/password', [
|
||||
'current_password' => 'wrong-password',
|
||||
'password' => 'new-password',
|
||||
@@ -46,6 +46,6 @@ class PasswordUpdateTest extends TestCase
|
||||
|
||||
$response
|
||||
->assertSessionHasErrorsIn('updatePassword', 'current_password')
|
||||
->assertRedirect('/profile');
|
||||
->assertRedirect('/admin/profile');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user