feat(addons): finalize event addon catalog and ai styling upgrade flow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user