neues Admin UI Layout eingeführt. Alle Tests auf den neusten Stand gebracht.

This commit is contained in:
Codex Agent
2025-12-30 10:24:06 +01:00
parent 902e78cae9
commit efe2f25b3e
85 changed files with 95235 additions and 19197 deletions

View File

@@ -120,7 +120,7 @@ class LoginTest extends TestCase
'email_verified_at' => now(),
]);
$intended = 'http://localhost/event-admin/dashboard?from=intended-test';
$intended = url('/event-admin/dashboard?from=intended-test');
$returnTarget = '/event-admin/dashboard';
$encodedReturn = rtrim(strtr(base64_encode($returnTarget), '+/', '-_'), '=');

View File

@@ -3,7 +3,7 @@
namespace Tests\Feature\Auth;
use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
use App\Notifications\ResetPasswordNotification;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
@@ -27,7 +27,7 @@ class PasswordResetTest extends TestCase
$this->post(route('password.email'), ['email' => $user->email]);
Notification::assertSentTo($user, ResetPassword::class);
Notification::assertSentTo($user, ResetPasswordNotification::class);
}
public function test_reset_password_screen_can_be_rendered()
@@ -38,7 +38,7 @@ class PasswordResetTest extends TestCase
$this->post(route('password.email'), ['email' => $user->email]);
Notification::assertSentTo($user, ResetPassword::class, function ($notification) {
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) {
$response = $this->get(route('password.reset', $notification->token));
$response->assertStatus(200);
@@ -55,7 +55,7 @@ class PasswordResetTest extends TestCase
$this->post(route('password.email'), ['email' => $user->email]);
Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) {
Notification::assertSentTo($user, ResetPasswordNotification::class, function ($notification) use ($user) {
$response = $this->post(route('password.store'), [
'token' => $notification->token,
'email' => $user->email,

View File

@@ -30,7 +30,7 @@ class TenantAdminGoogleControllerTest extends TestCase
$driver->shouldReceive('with')->once()->with(['prompt' => 'select_account'])->andReturnSelf();
$driver->shouldReceive('redirect')->once()->andReturn(new RedirectResponse('https://accounts.google.com'));
$encodedReturn = rtrim(strtr(base64_encode('http://localhost/test'), '+/', '-_'), '=');
$encodedReturn = rtrim(strtr(base64_encode(url('/test')), '+/', '-_'), '=');
$response = $this->get('/event-admin/auth/google?return_to='.$encodedReturn);
@@ -56,7 +56,7 @@ class TenantAdminGoogleControllerTest extends TestCase
Socialite::shouldReceive('driver')->once()->with('google')->andReturn($driver);
$driver->shouldReceive('user')->once()->andReturn($socialiteUser);
$targetUrl = 'http://localhost:8000/event-admin/dashboard?foo=bar';
$targetUrl = url('/event-admin/dashboard?foo=bar');
$encodedReturn = rtrim(strtr(base64_encode($targetUrl), '+/', '-_'), '=');
$this->withSession([

View File

@@ -3,7 +3,7 @@
namespace Tests\Feature\Auth;
use App\Models\User;
use Illuminate\Auth\Notifications\VerifyEmail;
use App\Notifications\VerifyEmailNotification;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
@@ -24,7 +24,7 @@ class VerificationNotificationTest extends TestCase
->post(route('verification.send'))
->assertRedirect('/');
Notification::assertSentTo($user, VerifyEmail::class);
Notification::assertSentTo($user, VerifyEmailNotification::class);
}
public function test_does_not_send_verification_notification_if_email_is_verified(): void