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

@@ -155,7 +155,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
]);
}
public function testAlterColumn()
public function testAlterColumn(): void
{
$qb = $this->getQueryBuilder();
@@ -211,12 +211,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 PostgreSQL.');
}
public function testCommentColumn()
public function testCommentColumn(): void
{
$qb = $this->getQueryBuilder();
@@ -229,7 +229,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
$this->assertEquals($this->replaceQuotes($expected), $sql);
}
public function testCommentTable()
public function testCommentTable(): void
{
$qb = $this->getQueryBuilder();
@@ -253,7 +253,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
return $data;
}
public function testResetSequence()
public function testResetSequence(): void
{
$qb = $this->getQueryBuilder();
@@ -266,7 +266,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
$this->assertEquals($expected, $sql);
}
public function testResetSequencePostgres12()
public function testResetSequencePostgres12(): void
{
if (version_compare($this->getConnection(false)->getServerVersion(), '12.0', '<')) {
$this->markTestSkipped('PostgreSQL < 12.0 does not support GENERATED AS IDENTITY columns.');
@@ -409,7 +409,7 @@ class QueryBuilderTest extends \yiiunit\framework\db\QueryBuilderTest
return $items;
}
public function testDropIndex()
public function testDropIndex(): void
{
$qb = $this->getQueryBuilder();