Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetry authored and github-actions[bot] committed Feb 14, 2025
1 parent b0fd723 commit b8a43cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/LaravelQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@ public function test_constructor_values(): void
$this->assertEquals([1, 1, 0, $date->format(DB::connection('mysql')->getQueryGrammar()->getDateFormat())], $query->getParameters());
}

public function test_execute_without_parameters(): void
public function test_execute_wit_parameters(): void
{
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", ['not-used']);
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", [1, 2]);

$rows = $query->execute('SELECT 1 AS val UNION SELECT 2 AS val', false);
$rows = $query->execute('SELECT ? AS val UNION SELECT ? AS val', true);

$this->assertEquals([['val' => 1], ['val' => 2]], $rows);
}

public function test_execute_wit_parameters(): void
public function test_execute_without_parameters(): void
{
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", [1, 2]);
$query = new LaravelQuery(DB::connection(), "SELECT 'unused'", ['not-used']);

$rows = $query->execute('SELECT ? AS val UNION SELECT ? AS val', true);
$rows = $query->execute('SELECT 1 AS val UNION SELECT 2 AS val', false);

$this->assertEquals([['val' => 1], ['val' => 2]], $rows);
}
Expand Down

0 comments on commit b8a43cb

Please # to comment.