Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed Mar 12, 2024
1 parent e072875 commit 738489c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/TestCase/Provider/AuthenticationServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,33 @@ public function testGetAuthenticationService()
'identityAttribute' => 'identity',
'skipTwoFactorVerify' => true,
'impersonateSessionKey' => 'AuthImpersonate',
'className' => 'Authentication.Session',
],
FormAuthenticator::class => [
'loginUrl' => '/login',
'keyCheckEnabledRecaptcha' => 'Users.reCaptcha.login',
'fields' => ['username' => 'email', 'password' => 'alt_password'],
'className' => 'CakeDC/Auth.Form',
],
TokenAuthenticator::class => [
'header' => null,
'queryParam' => 'api_key',
'tokenPrefix' => null,
'skipTwoFactorVerify' => true,
'className' => 'Authentication.Token',
],
TwoFactorAuthenticator::class => [
'loginUrl' => null,
'urlChecker' => 'Authentication.Default',
'skipTwoFactorVerify' => true,
'className' => 'CakeDC/Auth.TwoFactor'
],
];
$actual = [];
foreach ($authenticators as $value) {
$config = $value->getConfig();
$actual[get_class($value)] = $config;
}
var_dump($actual);
var_dump($expected);
$this->assertEquals($expected, $actual);

/**
Expand Down

0 comments on commit 738489c

Please sign in to comment.