feat(addons): finalize event addon catalog and ai styling upgrade flow
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-07 12:35:07 +01:00
parent 8cc0918881
commit d2808ffa4f
36 changed files with 1372 additions and 457 deletions

View File

@@ -31,6 +31,10 @@ class EventAddonCatalogTest extends TestCase
'sort' => 1,
'metadata' => [
'price_eur' => 12,
'scope' => 'feature',
'entitlements' => [
'features' => ['ai_styling'],
],
],
]);
@@ -44,5 +48,7 @@ class EventAddonCatalogTest extends TestCase
$this->assertSame(200, $addon['increments']['extra_photos']);
$this->assertSame(12.0, $addon['price']);
$this->assertSame('EUR', $addon['currency']);
$this->assertSame('feature', $addon['metadata']['scope'] ?? null);
$this->assertSame(['ai_styling'], $addon['metadata']['entitlements']['features'] ?? null);
}
}