mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
|
||||
namespace yiiunit\framework\db\mysql;
|
||||
|
||||
use PDO;
|
||||
use yii\base\DynamicModel;
|
||||
use yii\db\Expression;
|
||||
use yii\db\JsonExpression;
|
||||
@ -126,7 +127,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
|
||||
/**
|
||||
* @link https://github.com/yiisoft/yii2/issues/14367
|
||||
*/
|
||||
$mysqlVersion = $this->getDb()->getSlavePdo(true)->getAttribute(\PDO::ATTR_SERVER_VERSION);
|
||||
$mysqlVersion = $this->getDb()->getSlavePdo(true)->getAttribute(PDO::ATTR_SERVER_VERSION);
|
||||
$supportsFractionalSeconds = version_compare($mysqlVersion, '5.6.4', '>=');
|
||||
if ($supportsFractionalSeconds) {
|
||||
$expectedValues = [
|
||||
@ -197,12 +198,12 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function defaultValuesProvider()
|
||||
public function defaultValuesProvider(): void
|
||||
{
|
||||
$this->markTestSkipped('Adding/dropping default constraints is not supported in MySQL.');
|
||||
}
|
||||
|
||||
public function testResetSequence()
|
||||
public function testResetSequence(): void
|
||||
{
|
||||
$qb = $this->getQueryBuilder();
|
||||
|
||||
@ -339,7 +340,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
|
||||
return $items;
|
||||
}
|
||||
|
||||
public function testIssue17449()
|
||||
public function testIssue17449(): void
|
||||
{
|
||||
$db = $this->getConnection();
|
||||
$pdo = $db->pdo;
|
||||
@ -366,7 +367,7 @@ MySqlStatement;
|
||||
/**
|
||||
* Test for issue https://github.com/yiisoft/yii2/issues/14663
|
||||
*/
|
||||
public function testInsertInteger()
|
||||
public function testInsertInteger(): void
|
||||
{
|
||||
$db = $this->getConnection();
|
||||
$command = $db->createCommand();
|
||||
@ -391,7 +392,7 @@ MySqlStatement;
|
||||
/**
|
||||
* Test for issue https://github.com/yiisoft/yii2/issues/15500
|
||||
*/
|
||||
public function testDefaultValues()
|
||||
public function testDefaultValues(): void
|
||||
{
|
||||
$db = $this->getConnection();
|
||||
$command = $db->createCommand();
|
||||
|
||||
Reference in New Issue
Block a user