added new browser tests for editor

This commit is contained in:
Mark Gregory
2026-06-25 07:19:23 +01:00
parent 0701713823
commit 5c6671551c
4 changed files with 131 additions and 1 deletions
+12
View File
@@ -762,4 +762,16 @@ final class TicketShow extends Component
->all();
}
/**
* Add a case-insensitive LIKE condition that works on PostgreSQL and SQLite tests.
*/
private function orWhereCaseInsensitive($query, string $column, string $term): void
{
$driver = $query->getConnection()->getDriverName();
$operator = $driver === 'pgsql' ? 'ILIKE' : 'LIKE';
$query->orWhere($column, $operator, '%' . $term . '%');
}
}