ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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 26 of file LocalUserPasswordTest.php.
LocalUserPasswordTest::getTestDirectory | ( | ) |
Definition at line 33 of file LocalUserPasswordTest.php.
References $testDirectory.
LocalUserPasswordTest::getTestDirectoryUrl | ( | ) |
Definition at line 43 of file LocalUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory(), testFactoryCanBeCreated(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected(), testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound(), testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode(), testGettersOfFactoryShouldReturnWhatWasSetBySetters(), testInstanceCanBeCreated(), testPasswordManagerEncodesRawPasswordWithoutSalt(), testPasswordManagerEncodesRawPasswordWithSalt(), testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders(), testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders(), testPasswordManagerReencodesPasswordIfReencodingIsNecessary(), and testPasswordManagerVerifiesPassword().
LocalUserPasswordTest::setTestDirectory | ( | vfs\vfsStreamDirectory | $testDirectory | ) |
Definition at line 38 of file LocalUserPasswordTest.php.
References $testDirectory.
Referenced by setUp().
LocalUserPasswordTest::setTestDirectoryUrl | ( | string | $testDirectoryUrl | ) |
Definition at line 48 of file LocalUserPasswordTest.php.
References $testDirectoryUrl.
Referenced by setUp().
|
protected |
Definition at line 53 of file LocalUserPasswordTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
LocalUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation | ( | ) |
ilUserException |
Definition at line 65 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory | ( | ) |
ilUserException |
Definition at line 74 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory | ( | ) |
ilUserException |
Definition at line 86 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryCanBeCreated | ( | ) |
ilPasswordException |
Definition at line 365 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 424 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 437 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 411 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound | ( | ) |
ilUserException | |
ilPasswordException | |
ReflectionException |
Definition at line 471 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ILIAS\Data\Password\LocalUserPasswordEncoderFactory\setSupportedEncoders().
LocalUserPasswordTest::testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 452 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ILIAS\Data\Password\LocalUserPasswordEncoderFactory\setSupportedEncoders().
LocalUserPasswordTest::testGettersOfFactoryShouldReturnWhatWasSetBySetters | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 378 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testInstanceCanBeCreated | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 102 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerEncodesRawPasswordWithoutSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 177 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), null, and ilObjUser\PASSWD_CRYPTED.
LocalUserPasswordTest::testPasswordManagerEncodesRawPasswordWithSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 139 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ilObjUser\PASSWD_CRYPTED.
LocalUserPasswordTest::testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 250 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 330 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerReencodesPasswordIfReencodingIsNecessary | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 290 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerVerifiesPassword | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 213 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
|
protected |
Definition at line 30 of file LocalUserPasswordTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 31 of file LocalUserPasswordTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
|
private |
Definition at line 29 of file LocalUserPasswordTest.php.
|
private |
Definition at line 28 of file LocalUserPasswordTest.php.