refactor(validity-time): remove 'active' field from ValidityTime model and related migrations/tests
This commit is contained in:
@@ -19,7 +19,6 @@ class TicketValiditySchemaTest extends TestCase
|
||||
'end_time',
|
||||
'fixed_starts_at',
|
||||
'fixed_expires_at',
|
||||
'active',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
], Schema::getColumnListing('validity_times'));
|
||||
|
||||
@@ -19,13 +19,11 @@ class ValidityTimeTest extends TestCase
|
||||
'type' => ValidityTimeType::FixedWindow->value,
|
||||
'fixed_starts_at' => '2026-08-20 10:00:00',
|
||||
'fixed_expires_at' => '2026-08-21 02:00:00',
|
||||
'active' => '1',
|
||||
]);
|
||||
|
||||
$this->assertSame(ValidityTimeType::FixedWindow, $validityTime->type);
|
||||
$this->assertInstanceOf(Carbon::class, $validityTime->fixed_starts_at);
|
||||
$this->assertInstanceOf(Carbon::class, $validityTime->fixed_expires_at);
|
||||
$this->assertTrue($validityTime->active);
|
||||
$this->assertInstanceOf(CatalogItem::class, $validityTime->catalogItems()->getRelated());
|
||||
$this->assertInstanceOf(AttributeOption::class, $validityTime->attributeOptions()->getRelated());
|
||||
$this->assertInstanceOf(Ticket::class, $validityTime->tickets()->getRelated());
|
||||
|
||||
Reference in New Issue
Block a user