Add void return to method in tests. (#20602)

This commit is contained in:
Wilmer Arambula
2025-10-14 06:37:35 -03:00
committed by GitHub
parent 30824c5dcf
commit d71f7309ae
249 changed files with 2749 additions and 2538 deletions

View File

@ -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();