Skip to content

Commit e3a2a4e

Browse files
committed
Fix tests
1 parent 2d9aec2 commit e3a2a4e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/framework/db/CommandTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,16 @@ public static function batchUpdateSqlProvider(): array
479479
'columns' => [],
480480
'keys' => ['int_col'],
481481
'condition' => '',
482-
'expected' => 'UPDATE [[type]] SET [[float_col]]=CASE WHEN [[int_col]]=:qp0 THEN :qp1 ELSE [[float_col]] END, [[char_col]]=CASE WHEN [[int_col]]=:qp0 THEN :qp2 WHEN [[int_col]]=:qp3 THEN UPPER(:ph) ELSE [[char_col]] END WHERE [[int_col]] IN (:qp0, :qp3)',
482+
'expected' => 'UPDATE [[type]] SET [[float_col]]=CASE WHEN [[int_col]]=:qp0 THEN :qp1 ELSE [[float_col]] END, [[char_col]]=CASE WHEN [[int_col]]=:qp2 THEN :qp3 WHEN [[int_col]]=:qp4 THEN UPPER(:ph) ELSE [[char_col]] END WHERE [[int_col]] IN (:qp6, :qp7)',
483483
'expectedParams' => [
484484
':qp0' => 1,
485485
':qp1' => 2.5,
486-
':qp2' => 'A',
487-
':qp3' => 2,
486+
':qp2' => 1,
487+
':qp3' => 'A',
488+
':qp4' => 2,
488489
':ph' => 'b',
490+
':qp6' => 1,
491+
':qp7' => 2,
489492
],
490493
],
491494
'empty rows represented by ArrayObject' => [

0 commit comments

Comments
 (0)