Skip to content

Commit

Permalink
Fix #61 (point 2) add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Aug 20, 2023
1 parent de98665 commit ef2fa1b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Provider/QueryBuilderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@ public static function batchInsert(): array
})(),
'',
],
'with associative values' => [
'type',
['int_col', 'int_col2'],
[['first' => 1, 'second' => 2]],
'expected' => DbHelper::replaceQuotes(
<<<SQL
INSERT INTO [[type]] ([[int_col]], [[int_col2]]) VALUES (:qp0, :qp1)
SQL,
static::$driverName,
),
[':qp0' => 1, ':qp1' => 2],
],
];
}

Expand Down

0 comments on commit ef2fa1b

Please sign in to comment.