Passe Tests an die abgeleitete Produktseite und den Kaufpreis als Pflicht an
CI Feature / test (push) Successful in 5m15s
Deploy Test / test (push) Successful in 5m20s
Deploy Test / deploy (push) Successful in 31s

CatalogRulesTest: Angebote ohne Preis und Vergabe nutzten den Standard „Kauf“; sie geben jetzt
Preis oder die Vergabe „auf Abruf“ an, weil ein Kauf ohne Preis nicht aktiviert wird (ADR-52).
CartTest, OfferOptionAdminTest: Die Seite einer Option kommt aus ProductOptions::pageUrl; die
Auswahl „Produktseite“ gibt es nicht mehr. Keine Assertion wurde abgeschwächt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-25 18:07:55 +01:00
1 parent 08f7d0c63d
commit cce22ebd81
3 files changed
+10 -5

No files matched your search

+4 -2
View File
@@ -10,12 +10,14 @@
use App\Domain\Commerce\CartLine;
use App\Domain\Commerce\Checkout;
use App\Domain\Commerce\Order;
use App\Domain\Commerce\ProductOptions;
use App\Domain\Commerce\StaleOverview;
use App\Domain\Entitlement\GrantIssuer;
use App\Models\User;
use App\Notifications\VerifyEmailAddress;
use Database\Seeders\ShopDemoSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\Facades\URL;
use Tests\Support\BuildsShop;
@@ -40,7 +42,7 @@ public function test_a_guest_fills_the_cart_and_the_same_option_is_one_position(
{
$offer = $this->privateKonflikte();
$this->post(route('cart.add', $offer))->assertRedirect(route('public.program', $offer->composition_id));
$this->post(route('cart.add', $offer))->assertRedirect(app(ProductOptions::class)->pageUrl($offer));
$this->post(route('cart.add', $offer))->assertSessionHas('status');
$this->assertSame(1, app(Cart::class)->count());
@@ -75,7 +77,7 @@ public function test_alternative_options_of_one_product_page_are_replaced_only_a
$this->assertFalse(app(Cart::class)->has($club));
$this->withSession(['shop.switch' => $club->id])
->get(route('public.program', $club->composition_id))
->get(app(ProductOptions::class)->pageUrl($club))
->assertSee('Optionen wechseln?')
->assertSee('Zu „Mehrfachlizenz für Vereine“ wechseln')
->assertSee('Bei „Privatlizenz“ bleiben');