Add tests for ticket validity and event date formatting
- Create TicketValiditySchemaTest to verify database schema for ticket validity. - Update CatalogModelsTest to include tests for event date attributes and selection options. - Introduce EventDateTextFormatterTest for formatting event dates in Spanish. - Refactor EventModelsTest to include validity time relationships. - Add SaleDetailResourceTest to ensure correct serialization of purchase items. - Enhance TicketTest with validity time checks and status management. - Implement ValidityTimeResourceTest to validate resource output for different validity types. - Add ValidityTimeTest to verify casting and validity checks for validity time types.
This commit is contained in:
@@ -24,9 +24,9 @@ class TicketGenerationException extends RuntimeException
|
||||
return new self(__('api.ticket.disabled', ['product' => $catalogItem->id]));
|
||||
}
|
||||
|
||||
public static function maximumUseDateReached(CatalogItem $catalogItem): self
|
||||
public static function ambiguousValidityTime(CatalogItem $catalogItem): self
|
||||
{
|
||||
return new self(__('api.ticket.expired', ['product' => $catalogItem->id]));
|
||||
return new self("Catalog item {$catalogItem->id} resolves more than one validity time.");
|
||||
}
|
||||
|
||||
public static function variantNotFound(
|
||||
|
||||
Reference in New Issue
Block a user