From c74fa7955d9392aea954c2e45ed4137fb2bebcbe Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 24 Apr 2019 10:45:00 +0200 Subject: phpunit: Upgrade to version 8, fixed tests, formatting Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated --- tests/Unit/Helpers/AuthenticatorTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/Unit/Helpers/AuthenticatorTest.php') diff --git a/tests/Unit/Helpers/AuthenticatorTest.php b/tests/Unit/Helpers/AuthenticatorTest.php index 05c7d16e..400278f2 100644 --- a/tests/Unit/Helpers/AuthenticatorTest.php +++ b/tests/Unit/Helpers/AuthenticatorTest.php @@ -39,11 +39,11 @@ class AuthenticatorTest extends ServiceProviderTest $auth = new Authenticator($request, $session, $userRepository); // Not in session - $this->assertEquals(null, $auth->user()); + $this->assertNull($auth->user()); // Unknown user UserModelImplementation::$id = 42; - $this->assertEquals(null, $auth->user()); + $this->assertNull($auth->user()); // User found UserModelImplementation::$id = 1337; @@ -83,11 +83,11 @@ class AuthenticatorTest extends ServiceProviderTest $auth = new Authenticator($request, $session, $userRepository); // No key - $this->assertEquals(null, $auth->apiUser()); + $this->assertNull($auth->apiUser()); // Unknown user UserModelImplementation::$apiKey = 'iMaNot3xiSt1nGAp1Key!'; - $this->assertEquals(null, $auth->apiUser()); + $this->assertNull($auth->apiUser()); // User found UserModelImplementation::$apiKey = 'SomeSecretApiKey'; -- cgit v1.2.3-54-g00ecf