8
0
Fork 0
Dieser Commit ist enthalten in:
Daniel Seifert 2023-01-30 09:20:55 +01:00
Ursprung 5fb5c63e19
Commit 0f36dc10a0
Signiert von: DanielS
GPG-Schlüssel-ID: 8A7C4C6ED1915C6F
3 geänderte Dateien mit 3 neuen und 19 gelöschten Zeilen

Datei anzeigen

@ -18,8 +18,6 @@ namespace D3\Webauthn\Modules\Application\Model;
use D3\TestingTools\Production\IsMockable; use D3\TestingTools\Production\IsMockable;
use D3\Webauthn\Application\Model\WebauthnConf; use D3\Webauthn\Application\Model\WebauthnConf;
use Doctrine\DBAL\Driver\Exception as DoctrineDriverException; 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\Exception;
use Doctrine\DBAL\Query\QueryBuilder; use Doctrine\DBAL\Query\QueryBuilder;
use Doctrine\DBAL\Statement; use Doctrine\DBAL\Statement;

Datei anzeigen

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

Datei anzeigen

@ -448,7 +448,7 @@ class WebauthnLoginTest extends WAUnitTestCase
* @covers \D3\Webauthn\Application\Model\WebauthnLogin::assertAuthn * @covers \D3\Webauthn\Application\Model\WebauthnLogin::assertAuthn
* @dataProvider canAssertAuthDataProvider * @dataProvider canAssertAuthDataProvider
*/ */
public function canAssertAuthn($credential, $doAssert, $throwException) public function canAssertAuthn($doAssert, $throwException)
{ {
/** @var Webauthn|MockObject $webauthnMock */ /** @var Webauthn|MockObject $webauthnMock */
$webauthnMock = $this->getMockBuilder(Webauthn::class) $webauthnMock = $this->getMockBuilder(Webauthn::class)
@ -485,8 +485,8 @@ class WebauthnLoginTest extends WAUnitTestCase
*/ */
public function canAssertAuthDataProvider(): Generator public function canAssertAuthDataProvider(): Generator
{ {
yield 'has credential' => ['credentialFixture', $this->atLeastOnce(), false]; yield 'has credential' => [$this->atLeastOnce(), false];
yield 'no credential' => [null, $this->never(), true]; yield 'no credential' => [$this->never(), true];
} }
/** /**