das marketing frontend wurde auf lokalisierte urls umgestellt.
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user