ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
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 358 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 417 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 430 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected | ( | ) |
ilPasswordException | |
ilUserException |
Definition at line 404 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound | ( | ) |
ilUserException | |
ilPasswordException | |
ReflectionException |
Definition at line 464 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ILIAS\Data\Password\LocalUserPasswordEncoderFactory\setSupportedEncoders().
LocalUserPasswordTest::testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 445 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ILIAS\Data\Password\LocalUserPasswordEncoderFactory\setSupportedEncoders().
LocalUserPasswordTest::testGettersOfFactoryShouldReturnWhatWasSetBySetters | ( | ) |
ReflectionException | |
ilPasswordException | |
ilUserException |
Definition at line 371 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 170 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), null, and ilObjUser\PASSWD_CRYPTED.
LocalUserPasswordTest::testPasswordManagerEncodesRawPasswordWithSalt | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 132 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl(), and ilObjUser\PASSWD_CRYPTED.
LocalUserPasswordTest::testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 243 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 323 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerReencodesPasswordIfReencodingIsNecessary | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 283 of file LocalUserPasswordTest.php.
References getTestDirectoryUrl().
LocalUserPasswordTest::testPasswordManagerVerifiesPassword | ( | ) |
ilUserException | |
ReflectionException |
Definition at line 206 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.