summaryrefslogtreecommitdiff
path: root/tests/app/Services
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-09-03 13:58:46 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-09-03 14:20:46 +0100
commitcd94ca6664a143daa60d394f7b9cad6d42ec1b1d (patch)
treed8a289e9f95c7cf4a27bbc59de6159eb3289923f /tests/app/Services
parent30145003d62a36c9d9fb0d4bad12afbf90a2d8d6 (diff)
downloadwebtrees-cd94ca6664a143daa60d394f7b9cad6d42ec1b1d.tar.gz
webtrees-cd94ca6664a143daa60d394f7b9cad6d42ec1b1d.tar.bz2
webtrees-cd94ca6664a143daa60d394f7b9cad6d42ec1b1d.zip
Fix: #4026 - Unit test failure
Diffstat (limited to 'tests/app/Services')
-rw-r--r--tests/app/Services/ModuleServiceTest.php2
-rw-r--r--tests/app/Services/SearchServiceTest.php2
-rw-r--r--tests/app/Services/UserServiceTest.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/app/Services/ModuleServiceTest.php b/tests/app/Services/ModuleServiceTest.php
index 81b32bbb92..0931d9c878 100644
--- a/tests/app/Services/ModuleServiceTest.php
+++ b/tests/app/Services/ModuleServiceTest.php
@@ -41,7 +41,7 @@ use Illuminate\Database\Capsule\Manager as DB;
*/
class ModuleServiceTest extends TestCase
{
- protected static $uses_database = true;
+ protected static bool $uses_database = true;
/**
* @covers \Fisharebest\Webtrees\Services\ModuleService::all
diff --git a/tests/app/Services/SearchServiceTest.php b/tests/app/Services/SearchServiceTest.php
index 8849670343..fa38af74bf 100644
--- a/tests/app/Services/SearchServiceTest.php
+++ b/tests/app/Services/SearchServiceTest.php
@@ -29,7 +29,7 @@ use Illuminate\Support\Collection;
*/
class SearchServiceTest extends TestCase
{
- protected static $uses_database = true;
+ protected static bool $uses_database = true;
/**
* @return void
diff --git a/tests/app/Services/UserServiceTest.php b/tests/app/Services/UserServiceTest.php
index b8317662d8..1bf5c18430 100644
--- a/tests/app/Services/UserServiceTest.php
+++ b/tests/app/Services/UserServiceTest.php
@@ -29,13 +29,13 @@ use Symfony\Component\Cache\Adapter\NullAdapter;
*/
class UserServiceTest extends TestCase
{
- protected static $uses_database = true;
+ protected static bool $uses_database = true;
public function setUp(): void
{
parent::setUp();
- $cache_factory = self::createMock(CacheFactoryInterface::class);
+ $cache_factory = $this->createMock(CacheFactoryInterface::class);
$cache_factory->method('array')->willReturn(new Cache(new NullAdapter()));
Registry::cache($cache_factory);
}