phpunit update

This commit is contained in:
Roland Gruber 2020-02-21 19:53:08 +01:00
parent 5153f6ea17
commit 74d8210b01
4 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/vendor/
/composer.lock
/code-coverage/
/.phpunit.result.cache

View File

@ -1,6 +1,6 @@
{
"require-dev" : {
"phpunit/phpunit" : "5.7.27",
"phpunit/phpunit" : "8.5.2",
"squizlabs/php_codesniffer" : "3.4.0"
}
}

View File

@ -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);
}
}

View File

@ -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)