cleanup code

This commit is contained in:
Daniel Seifert 2023-01-30 09:20:55 +01:00
parent 5fb5c63e19
commit 0f36dc10a0
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
3 changed files with 3 additions and 19 deletions

View File

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

View File

@ -1,14 +0,0 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
const D3WEBAUTHN_REQUIRE_MODCFG = false;

View File

@ -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];
}
/**