mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user