feat: Phase 2 - admin layout, dashboard, page CRUD, subscribers, user management
This commit is contained in:
@@ -27,7 +27,7 @@ class AuthenticationTest extends TestCase
|
||||
]);
|
||||
|
||||
$this->assertAuthenticated();
|
||||
$response->assertRedirect(route('dashboard', absolute: false));
|
||||
$response->assertRedirect(route('admin.dashboard', absolute: false));
|
||||
}
|
||||
|
||||
public function test_users_can_not_authenticate_with_invalid_password(): void
|
||||
|
||||
@@ -38,7 +38,7 @@ class EmailVerificationTest extends TestCase
|
||||
|
||||
Event::assertDispatched(Verified::class);
|
||||
$this->assertTrue($user->fresh()->hasVerifiedEmail());
|
||||
$response->assertRedirect(route('dashboard', absolute: false).'?verified=1');
|
||||
$response->assertRedirect(route('admin.dashboard', absolute: false).'?verified=1');
|
||||
}
|
||||
|
||||
public function test_email_is_not_verified_with_invalid_hash(): void
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@ class RegistrationTest extends TestCase
|
||||
]);
|
||||
|
||||
$this->assertAuthenticated();
|
||||
$response->assertRedirect(route('dashboard', absolute: false));
|
||||
$response->assertRedirect(route('admin.dashboard', absolute: false));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user