fix(tickets): disable inconsistent FFI product and type sorting
This commit is contained in:
@@ -137,6 +137,19 @@ class AdminAppTicketControllerTest extends TestCase
|
||||
->assertJsonValidationErrors(['sort_by', 'sort_direction']);
|
||||
}
|
||||
|
||||
public function test_it_rejects_product_and_type_sorting_for_fiesta_futbol_infantil(): void
|
||||
{
|
||||
$tenant = $this->createTenant('fiesta_futbol_infantil');
|
||||
$this->grantTicketsMenu($tenant);
|
||||
Sanctum::actingAs($this->createAdminAppUser($tenant));
|
||||
|
||||
foreach (['product', 'type'] as $column) {
|
||||
$this->getJson('/api/v1/adminapp/tenant/tickets?sort_by='.$column)
|
||||
->assertUnprocessable()
|
||||
->assertJsonValidationErrors('sort_by');
|
||||
}
|
||||
}
|
||||
|
||||
public function test_it_includes_tenant_scanned_and_total_ticket_counts(): void
|
||||
{
|
||||
$tenant = $this->createTenant('fiesta_futbol_infantil');
|
||||
|
||||
Reference in New Issue
Block a user