/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
cakedc
/
auth
/
tests
/
TestCase
/
Authentication
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Authentication
mkdir
upload
Name
Size
Mode
Actions
AuthenticationServiceTest.php
14900
0644
edit
dl
rm
DefaultOneTimePasswordAuthenticationCheckerTest.php
2662
0644
edit
dl
rm
DefaultU2fAuthenticationCheckerTest.php
2065
0644
edit
dl
rm
DefaultWebauthn2fAuthenticationCheckerTest.php
2183
0644
edit
dl
rm
FailureTest.php
1218
0644
edit
dl
rm
OneTimePasswordAuthenticationCheckerFactoryTest.php
1592
0644
edit
dl
rm
U2fAuthenticationCheckerFactoryTest.php
1458
0644
edit
dl
rm
Webauthn2fAuthenticationCheckerFactoryTest.php
1523
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Authentication/FailureTest.php
(1218B)
<?php declare(strict_types=1); /** * Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2010 - 2019, Cake Development Corporation (https://www.cakedc.com) * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ namespace CakeDC\Auth\Test\TestCase\Authentication; use Authentication\Authenticator\Result; use Authentication\Identifier\IdentifierCollection; use Cake\TestSuite\TestCase; use CakeDC\Auth\Authentication\Failure; use CakeDC\Auth\Authenticator\FormAuthenticator; class FailureTest extends TestCase { /** * test getAuthenticator, getResult * * @return void */ public function testGetters() { $authenticator = new FormAuthenticator(new IdentifierCollection([])); $result = new Result( ['id' => '10', 'username' => 'johndoe'], Result::SUCCESS ); $failure = new Failure($authenticator, $result); $this->assertSame($authenticator, $failure->getAuthenticator()); $this->assertSame($result, $failure->getResult()); } }
Save
cmd:
run