Skip to content

Commit 7d2de44

Browse files
committed
Refactor testAddDropCheck method: remove unsupported check handling and update SQL statement in testInsertInteger.
1 parent 627875a commit 7d2de44

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/framework/db/mysql/QueryBuilderTest.php

+1-14
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public static function updateProvider(): array
324324
[
325325
'id' => 1,
326326
],
327-
self::replaceQuotes('UPDATE [[profile]] SET [[description]]=CAST(:qp0 AS JSON) WHERE [[id]]=:qp1'),
327+
self::replaceQuotes('UPDATE [[profile]] SET [[description]]=:qp0 WHERE [[id]]=:qp1'),
328328
[
329329
':qp0' => '{"abc":"def","0":123,"1":null}',
330330
':qp1' => 1,
@@ -400,19 +400,6 @@ public function testDefaultValues(): void
400400
$this->assertEquals("INSERT INTO `negative_default_values` (`tinyint_col`) VALUES (DEFAULT)", $sql);
401401
}
402402

403-
/**
404-
* @dataProvider checksProvider
405-
*
406-
* @param string $sql The SQL.
407-
*/
408-
public function testAddDropCheck(string $sql, \Closure $builder): void
409-
{
410-
$this->expectException(\yii\base\NotSupportedException::class);
411-
$this->expectExceptionMessage('is not supported by MySQL.');
412-
413-
parent::testAddDropCheck($sql, $builder);
414-
}
415-
416403
/**
417404
* @dataProvider defaultValuesProvider
418405
*

0 commit comments

Comments
 (0)