diff --git a/src/Modules/Application/Model/d3_User_Webauthn.php b/src/Modules/Application/Model/d3_User_Webauthn.php index 75025f2..ac8c1b7 100755 --- a/src/Modules/Application/Model/d3_User_Webauthn.php +++ b/src/Modules/Application/Model/d3_User_Webauthn.php @@ -18,8 +18,6 @@ namespace D3\Webauthn\Modules\Application\Model; use D3\TestingTools\Production\IsMockable; use D3\Webauthn\Application\Model\WebauthnConf; use Doctrine\DBAL\Driver\Exception as DoctrineDriverException; -use Doctrine\DBAL\Driver\Mysqli\MysqliStatement; -use Doctrine\DBAL\Driver\ResultStatement; use Doctrine\DBAL\Exception; use Doctrine\DBAL\Query\QueryBuilder; use Doctrine\DBAL\Statement; diff --git a/src/tests/d3webauthn_config.php b/src/tests/d3webauthn_config.php deleted file mode 100644 index bcbce77..0000000 --- a/src/tests/d3webauthn_config.php +++ /dev/null @@ -1,14 +0,0 @@ - - * @link https://www.oxidmodule.com - */ - -const D3WEBAUTHN_REQUIRE_MODCFG = false; diff --git a/src/tests/unit/Application/Model/WebauthnLoginTest.php b/src/tests/unit/Application/Model/WebauthnLoginTest.php index c6ce5ce..9d9efbb 100644 --- a/src/tests/unit/Application/Model/WebauthnLoginTest.php +++ b/src/tests/unit/Application/Model/WebauthnLoginTest.php @@ -448,7 +448,7 @@ class WebauthnLoginTest extends WAUnitTestCase * @covers \D3\Webauthn\Application\Model\WebauthnLogin::assertAuthn * @dataProvider canAssertAuthDataProvider */ - public function canAssertAuthn($credential, $doAssert, $throwException) + public function canAssertAuthn($doAssert, $throwException) { /** @var Webauthn|MockObject $webauthnMock */ $webauthnMock = $this->getMockBuilder(Webauthn::class) @@ -485,8 +485,8 @@ class WebauthnLoginTest extends WAUnitTestCase */ public function canAssertAuthDataProvider(): Generator { - yield 'has credential' => ['credentialFixture', $this->atLeastOnce(), false]; - yield 'no credential' => [null, $this->never(), true]; + yield 'has credential' => [$this->atLeastOnce(), false]; + yield 'no credential' => [$this->never(), true]; } /**