Browse Source

phpunit update

pull/87/head
Roland Gruber 3 years ago
parent
commit
74d8210b01
  1. 1
      .gitignore
  2. 2
      composer.json
  3. 2
      lam/tests/lib/2factorWebauthnTest.php
  4. 1
      lam/tests/lib/webauthnTest.php

1
.gitignore

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

2
composer.json

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

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

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

Loading…
Cancel
Save