mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-15 10:50:45 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@@ -39,7 +39,7 @@ class DbDependencyTest extends DatabaseTestCase
|
||||
$db->createCommand()->insert('dependency_item', ['value' => 'initial'])->execute();
|
||||
}
|
||||
|
||||
public function testQueryOneIsExecutedWhenQueryCacheEnabled()
|
||||
public function testQueryOneIsExecutedWhenQueryCacheEnabled(): void
|
||||
{
|
||||
$db = $this->getConnection(false);
|
||||
$cache = new ArrayCache();
|
||||
@@ -60,7 +60,7 @@ class DbDependencyTest extends DatabaseTestCase
|
||||
$this->assertTrue($dependency->isChanged($cache));
|
||||
}
|
||||
|
||||
public function testQueryOneIsExecutedWhenQueryCacheDisabled()
|
||||
public function testQueryOneIsExecutedWhenQueryCacheDisabled(): void
|
||||
{
|
||||
$db = $this->getConnection(false);
|
||||
$cache = new ArrayCache();
|
||||
@@ -81,7 +81,7 @@ class DbDependencyTest extends DatabaseTestCase
|
||||
$this->assertTrue($dependency->isChanged($cache));
|
||||
}
|
||||
|
||||
public function testMissingSqlThrowsException()
|
||||
public function testMissingSqlThrowsException(): void
|
||||
{
|
||||
$this->expectException('\yii\base\InvalidConfigException');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user