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

@@ -42,7 +42,7 @@ class MssqlCacheTest extends CacheTestCase
/**
* @param bool $reset whether to clean up the test database
* @return \yii\db\Connection
* @return Connection
*/
public function getConnection($reset = true)
{
@@ -79,7 +79,7 @@ class MssqlCacheTest extends CacheTestCase
return $this->_cacheInstance;
}
public function testExpire()
public function testExpire(): void
{
$cache = $this->getCacheInstance();
@@ -91,7 +91,7 @@ class MssqlCacheTest extends CacheTestCase
$this->assertFalse($cache->get('expire_test'));
}
public function testExpireAdd()
public function testExpireAdd(): void
{
$cache = $this->getCacheInstance();
@@ -103,7 +103,7 @@ class MssqlCacheTest extends CacheTestCase
$this->assertFalse($cache->get('expire_testa'));
}
public function testSynchronousSetWithTheSameKey()
public function testSynchronousSetWithTheSameKey(): void
{
$KEY = 'sync-test-key';
$VALUE = 'sync-test-value';