diff --git a/.gitignore b/.gitignore index 593b203ff..60a67740d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /vendor/ /composer.lock /code-coverage/ +/.phpunit.result.cache diff --git a/composer.json b/composer.json index 8ffeb2e67..c456a033c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "require-dev" : { - "phpunit/phpunit" : "5.7.27", + "phpunit/phpunit" : "8.5.2", "squizlabs/php_codesniffer" : "3.4.0" } } diff --git a/lam/tests/lib/2factorWebauthnTest.php b/lam/tests/lib/2factorWebauthnTest.php index c8b774571..945c4ae89 100644 --- a/lam/tests/lib/2factorWebauthnTest.php +++ b/lam/tests/lib/2factorWebauthnTest.php @@ -80,7 +80,7 @@ class WebauthnProviderTest extends TestCase { $row->generateHTML(null, array(), array(), false, $tabindex, 'none'); $html = ob_get_contents(); ob_end_clean(); - $this->assertContains('skip_webauthn', $html); + $this->assertStringContainsString('skip_webauthn', $html); } } \ No newline at end of file diff --git a/lam/tests/lib/webauthnTest.php b/lam/tests/lib/webauthnTest.php index f32161617..a2846cb3c 100644 --- a/lam/tests/lib/webauthnTest.php +++ b/lam/tests/lib/webauthnTest.php @@ -53,7 +53,6 @@ class WebauthnManagerTest extends TestCase { ->getMock(); $this->database->method('findOneByCredentialId')->willReturn(null); $this->database->method('findAllForUserEntity')->willReturn(array()); - $this->database->method('saveCredentialSource')->willReturn(true); $this->manager = $this ->getMockBuilder(WebauthnManager::class)