Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist authored and github-actions[bot] committed Oct 3, 2024
1 parent cf1cb4c commit 5dd89d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
});

it('specifies escape character in supported databases', function (string $dbDriver) {
if ($dbDriver === 'mariadb' && !in_array('mariadb', DB::supportedDrivers())) {
if ($dbDriver === 'mariadb' && ! in_array('mariadb', DB::supportedDrivers())) {
$this->markTestSkipped('mariadb driver not supported in the installed version of illuminate/database dependency');
}

Expand All @@ -141,9 +141,11 @@
->allowedFilters('name', 'id')
->toSql();

expect($queryBuilderSql)->when(in_array($dbDriver, ["sqlite", "sqlsrv"]), fn(Expectation $query
expect($queryBuilderSql)->when(in_array($dbDriver, ["sqlite", "sqlsrv"]), fn (
Expectation $query
) => $query->toContain("ESCAPE '\'"));
expect($queryBuilderSql)->when(in_array($dbDriver, ["mysql", "mariadb", "pgsql"]), fn(Expectation $query
expect($queryBuilderSql)->when(in_array($dbDriver, ["mysql", "mariadb", "pgsql"]), fn (
Expectation $query
) => $query->not->toContain("ESCAPE '\'"));
});
})->with(['sqlite', 'mysql', 'pgsql', 'sqlsrv', 'mariadb']);
Expand Down

0 comments on commit 5dd89d1

Please sign in to comment.