neuer checkout-pfad: /de/bestellen/paketID und /en/checkout/PackageID
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user