diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-04-24 10:45:00 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-04-25 17:56:06 +0200 |
commit | c74fa7955d9392aea954c2e45ed4137fb2bebcbe (patch) | |
tree | 034c93b4b3ccc31e6cc9c27dd87f139569c10c72 /tests/Unit/Helpers/AuthenticatorTest.php | |
parent | b74835a0968c35ad9a0955dd8b5e2f3cf9b72a56 (diff) |
phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Diffstat (limited to 'tests/Unit/Helpers/AuthenticatorTest.php')
-rw-r--r-- | tests/Unit/Helpers/AuthenticatorTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
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'; |