summaryrefslogtreecommitdiff
path: root/tests/app/Http/RequestHandlers/SelectThemeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Http/RequestHandlers/SelectThemeTest.php')
-rw-r--r--tests/app/Http/RequestHandlers/SelectThemeTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/app/Http/RequestHandlers/SelectThemeTest.php b/tests/app/Http/RequestHandlers/SelectThemeTest.php
index c4d4765f68..4ebad412e1 100644
--- a/tests/app/Http/RequestHandlers/SelectThemeTest.php
+++ b/tests/app/Http/RequestHandlers/SelectThemeTest.php
@@ -2,7 +2,7 @@
/**
* webtrees: online genealogy
- * Copyright (C) 2019 webtrees development team
+ * Copyright (C) 2020 webtrees development team
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@@ -34,8 +34,8 @@ class SelectThemeTest extends TestCase
*/
public function testSelectThemeForGuest(): void
{
- $user = $this->createMock(GuestUser::class);
- $user->expects($this->once())->method('setPreference')->with('theme', 'FOO');
+ $user = self::createMock(GuestUser::class);
+ $user->expects(self::once())->method('setPreference')->with('theme', 'FOO');
$request = self::createRequest()
->withAttribute('theme', 'FOO')
@@ -52,8 +52,8 @@ class SelectThemeTest extends TestCase
*/
public function testSelectThemeForUser(): void
{
- $user = $this->createMock(User::class);
- $user->expects($this->once())->method('setPreference')->with('theme', 'FOO');
+ $user = self::createMock(User::class);
+ $user->expects(self::once())->method('setPreference')->with('theme', 'FOO');
$request = self::createRequest()
->withAttribute('user', $user)