neuer checkout-pfad: /de/bestellen/paketID und /en/checkout/PackageID

This commit is contained in:
Codex Agent
2025-12-20 16:17:21 +01:00
parent 18297aa3f1
commit 6500b8df2c
18 changed files with 331 additions and 345 deletions

View File

@@ -4,6 +4,7 @@ namespace Tests\Feature\Checkout;
use App\Models\Package;
use App\Models\User;
use App\Support\CheckoutRoutes;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
@@ -307,7 +308,7 @@ class CheckoutAuthTest extends TestCase
{
$package = Package::factory()->create();
$response = $this->get(route('checkout.show', $package));
$response = $this->get(CheckoutRoutes::wizardUrl($package, 'de'));
$response->assertStatus(200)
->assertInertia(fn ($page) => $page
@@ -327,7 +328,7 @@ class CheckoutAuthTest extends TestCase
public function test_checkout_show_with_invalid_package_returns_404()
{
$response = $this->get(route('checkout.show', 999));
$response = $this->get(CheckoutRoutes::wizardUrl(999, 'de'));
$response->assertStatus(404);
}