ILIAS
release_8 Revision v8.19
|
Protected Member Functions | |
setUp () | |
![]() | |
assertException (string $exception_class) | |
Protected Attributes | |
vfs vfsStreamDirectory | $testDirectory |
string | $testDirectoryUrl |
Private Attributes | |
const | PASSWORD = 'password' |
const | ENCODED_PASSWORD = 'encoded' |
Definition at line 36 of file ilObjUserPasswordTest.php.
ilObjUserPasswordTest::getTestDirectory | ( | ) |
Definition at line 44 of file ilObjUserPasswordTest.php.
References $testDirectory.
ilObjUserPasswordTest::getTestDirectoryUrl | ( | ) |
Definition at line 54 of file ilObjUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory(), testFactoryCanBeCreated(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode(), testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound(), testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode(), testGettersOfFactoryShouldReturnWhatWasSetBySetters(), testInstanceCanBeCreated(), testPasswordManagerEncodesRawPasswordWithoutSalt(), testPasswordManagerEncodesRawPasswordWithSalt(), testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders(), testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders(), testPasswordManagerReencodesPasswordIfReencodingIsNecessary(), and testPasswordManagerVerifiesPassword().
ilObjUserPasswordTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
Definition at line 49 of file ilObjUserPasswordTest.php.
References $testDirectory.
Referenced by setUp().
ilObjUserPasswordTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
Definition at line 59 of file ilObjUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by setUp().
|
protected |
Definition at line 64 of file ilObjUserPasswordTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 422 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation | ( | ) |
ilUserException |
Definition at line 76 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory | ( | ) |
ilUserException |
Definition at line 85 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory | ( | ) |
ilUserException |
Definition at line 97 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryCanBeCreated | ( | ) |
ilPasswordException |
Definition at line 364 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 436 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 449 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound | ( | ) |
ilUserException | |
ilPasswordException | |
ReflectionException |
Definition at line 482 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 464 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testGettersOfFactoryShouldReturnWhatWasSetBySetters | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 377 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testInstanceCanBeCreated | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 113 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithoutSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 180 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and ilObjUser\PASSWD_CRYPTED.
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 143 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and ilObjUser\PASSWD_CRYPTED.
ilObjUserPasswordTest::testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 252 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 330 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerReencodesPasswordIfReencodingIsNecessary | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 291 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerVerifiesPassword | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 216 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
|
protected |
Definition at line 41 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 42 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
|
private |
Definition at line 39 of file ilObjUserPasswordTest.php.
|
private |
Definition at line 38 of file ilObjUserPasswordTest.php.