Gib Paketen eine eigene Produktseite und ergänze Tests zu Nutzerkreis und Verkaufsstart
Ein eigenständig vermarktetes Paket (offers.standalone_bundle) erhält /pakete/{id}
mit seinem tatsächlichen Umfang, Shop-Kachel und Suche. Die Angebotsmaske kennt
Nutzerkreis und Anzahl Trainer. Zwei Bestandstests (CartTest, Vergleich der
Rechte und Erwerbsarten) legen die Vergleichsangebote jetzt als Einzellizenz an,
weil der Nutzerkreis zum identischen Umfang gehört; ihre Aussagen bleiben.
Eine Rechnungs- oder Stripe-Bestellung lässt sich nicht mit der Testzahlung bestätigen.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0154182f3b
commit
1ce2e1e51f
21 files changed
+997
-31
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Domain\Catalog\CompositionVersionDisplayEvent;
|
||||
use App\Domain\Catalog\LicenceScope;
|
||||
use App\Domain\Catalog\Offer;
|
||||
use App\Domain\Catalog\OfferService;
|
||||
use App\Domain\Commerce\Cart;
|
||||
@@ -293,7 +294,7 @@ public function test_the_rights_order_does_not_matter_when_comparing_owned_scope
|
||||
]);
|
||||
$this->ownByPurchase($tina, $this->privateGrenzen());
|
||||
$same = $offers->create('Grenzen gleiche Rechte');
|
||||
$offers->activate($same, [['target' => $this->article('shop-grenzen'), 'rights' => $reordered]], ['grant_kind' => 'kauf', 'price_cents' => 1900]);
|
||||
$offers->activate($same, [['target' => $this->article('shop-grenzen'), 'rights' => $reordered]], ['grant_kind' => 'kauf', 'price_cents' => 1900, 'licence_scope' => LicenceScope::SINGLE]);
|
||||
|
||||
$cart = app(Cart::class);
|
||||
$cart->add($same);
|
||||
@@ -310,7 +311,7 @@ public function test_free_grants_and_manual_grants_count_as_owned_but_expired_or
|
||||
'pdf' => ['ansehen', 'laden'],
|
||||
]);
|
||||
$free = $offers->create('Grenzen gratis');
|
||||
$offers->activate($free, [['target' => $this->article('shop-grenzen'), 'rights' => $rights]], ['grant_kind' => 'auf_abruf']);
|
||||
$offers->activate($free, [['target' => $this->article('shop-grenzen'), 'rights' => $rights]], ['grant_kind' => 'auf_abruf', 'licence_scope' => LicenceScope::SINGLE]);
|
||||
$acquisition = app(GrantIssuer::class)->claim($tina, $free);
|
||||
|
||||
$cart = app(Cart::class);
|
||||
|
||||
Reference in new issue
Block a user