ungültige paket-IDs werden nun abgefangen

This commit is contained in:
Codex Agent
2025-12-20 16:59:14 +01:00
parent 6500b8df2c
commit 80985828d8
7 changed files with 57 additions and 13 deletions

View File

@@ -326,11 +326,13 @@ class CheckoutAuthTest extends TestCase
);
}
public function test_checkout_show_with_invalid_package_returns_404()
public function test_checkout_show_with_invalid_package_redirects_to_packages()
{
$response = $this->get(CheckoutRoutes::wizardUrl(999, 'de'));
$response->assertStatus(404);
$response
->assertRedirect(route('packages', ['locale' => 'de']))
->assertSessionHas('error', __('marketing.packages.package_not_found'));
}
public function test_checkout_register_missing_required_fields()