ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Data Fields | |
const | PASSWORD = 'password' |
const | ENCODED_PASSWORD = 'encoded' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
![]() | |
assertException ($exception_class) | |
Protected Attributes | |
$testDirectory | |
$testDirectoryUrl | |
Definition at line 20 of file ilObjUserPasswordTest.php.
ilObjUserPasswordTest::getTestDirectory | ( | ) |
ilObjUserPasswordTest::getTestDirectoryUrl | ( | ) |
Definition at line 53 of file ilObjUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory(), testFactoryCanBeCreated(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected(), testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound(), testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode(), testGettersOfFactoryShouldReturnWhatWasSetBySetters(), testInstanceCanBeCreated(), testPasswordManagerEncodesRawPasswordWithoutSalt(), testPasswordManagerEncodesRawPasswordWithSalt(), testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders(), testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders(), testPasswordManagerReencodesPasswordIfReencodingIsNecessary(), and testPasswordManagerVerifiesPassword().
ilObjUserPasswordTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
vfs\vfsStreamDirectory | $testDirectory |
Definition at line 45 of file ilObjUserPasswordTest.php.
References $testDirectory.
Referenced by setUp().
ilObjUserPasswordTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
string | $testDirectoryUrl |
Definition at line 61 of file ilObjUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by setUp().
|
protected |
Setup.
Definition at line 69 of file ilObjUserPasswordTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 446 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation | ( | ) |
ilUserException |
Definition at line 81 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory | ( | ) |
ilUserException |
Definition at line 90 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory | ( | ) |
ilUserException |
Definition at line 104 of file ilObjUserPasswordTest.php.
References Vendor\Package\$e, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryCanBeCreated | ( | ) |
ilPasswordException |
Definition at line 389 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 460 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 473 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 433 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound | ( | ) |
ilUserException | |
ilPasswordException | |
ReflectionException |
Definition at line 506 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 488 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testGettersOfFactoryShouldReturnWhatWasSetBySetters | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 402 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testInstanceCanBeCreated | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 124 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithoutSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 195 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and IL_PASSWD_CRYPTED.
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 156 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and IL_PASSWD_CRYPTED.
ilObjUserPasswordTest::testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 271 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 353 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerReencodesPasswordIfReencodingIsNecessary | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 312 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerVerifiesPassword | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 233 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
|
protected |
Definition at line 29 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 32 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
const ilObjUserPasswordTest::ENCODED_PASSWORD = 'encoded' |
Definition at line 26 of file ilObjUserPasswordTest.php.
const ilObjUserPasswordTest::PASSWORD = 'password' |
Definition at line 23 of file ilObjUserPasswordTest.php.