das marketing frontend wurde auf lokalisierte urls umgestellt.

This commit is contained in:
Codex Agent
2025-11-03 15:50:10 +01:00
parent c0c1d31385
commit 55c606bdd4
47 changed files with 1592 additions and 251 deletions

View File

@@ -40,7 +40,7 @@ class RegistrationTest extends TestCase
]);
$location = $this->captureLocation($response);
$expected = route('dashboard', absolute: false);
$expected = route('verification.notice', absolute: false);
$this->assertNotEmpty($location);
$this->assertTrue($location === $expected || Str::endsWith($location, $expected));
@@ -83,7 +83,7 @@ class RegistrationTest extends TestCase
]);
$location = $this->captureLocation($response);
$expected = route('dashboard', absolute: false);
$expected = route('verification.notice', absolute: false);
$this->assertNotEmpty($location);
$this->assertTrue($location === $expected || Str::endsWith($location, $expected));
@@ -136,7 +136,10 @@ class RegistrationTest extends TestCase
'package_id' => $paidPackage->id,
]);
$response->assertRedirect(route('marketing.buy', $paidPackage->id));
$response->assertRedirect(route('buy.packages', [
'locale' => 'de',
'packageId' => $paidPackage->id,
]));
$this->assertDatabaseHas('users', [
'username' => 'paiduser',
@@ -164,7 +167,7 @@ class RegistrationTest extends TestCase
'package_id' => $freePackage->id,
]);
Mail::assertQueued(Welcome::class, function ($mail) {
Mail::assertSent(Welcome::class, function ($mail) {
return $mail->hasTo('test3@example.com');
});
}