ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Data Fields | |
const | PASSWORD = 'password' |
const | ENCODED_PASSWORD = 'encoded' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
Protected Member Functions inherited from ilUserBaseTest | |
assertException ($exception_class) | |
Protected Attributes | |
$test_directory | |
$test_directory_url | |
Definition at line 20 of file ilObjUserPasswordTest.php.
ilObjUserPasswordTest::getTestDirectory | ( | ) |
ilObjUserPasswordTest::getTestDirectoryUrl | ( | ) |
Definition at line 61 of file ilObjUserPasswordTest.php.
References $test_directory_url.
Referenced by testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory(), testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory(), testFactoryCanBeCreated(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode(), testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected(), testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound(), testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode(), testGettersOfFactoryShouldReturnWhatWasSetBySetters(), testInstanceCanBeCreated(), testPasswordManagerEncodesRawPasswordWithoutSalt(), testPasswordManagerEncodesRawPasswordWithSalt(), testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders(), testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders(), testPasswordManagerReencodesPasswordIfReencodingIsNecessary(), and testPasswordManagerVerifiesPassword().
ilObjUserPasswordTest::setTestDirectory | ( | $test_directory | ) |
vfs\vfsStreamDirectory | $test_directory |
Definition at line 53 of file ilObjUserPasswordTest.php.
References $test_directory.
Referenced by setUp().
ilObjUserPasswordTest::setTestDirectoryUrl | ( | $test_directory_url | ) |
string | $test_directory_url |
Definition at line 69 of file ilObjUserPasswordTest.php.
References $test_directory_url.
Referenced by setUp().
|
protected |
Setup.
Definition at line 77 of file ilObjUserPasswordTest.php.
References setTestDirectory(), and setTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfAnUnsupportedEncoderIsRequestedFromFactory | ( | ) |
Definition at line 394 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutEncoderInformation | ( | ) |
Definition at line 89 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutFactory | ( | ) |
Definition at line 98 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testExceptionIsRaisedIfPasswordManagerIsCreatedWithoutValidFactory | ( | ) |
PHPUnit_Framework_Error
Definition at line 112 of file ilObjUserPasswordTest.php.
References ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryCanBeCreated | ( | ) |
Definition at line 347 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndNoDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
Definition at line 407 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderIsRequestedAndTheDefaultEncoderDoesNotMatchOneOfTheSupportedEncodersInFallbackMode | ( | ) |
Definition at line 419 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryRaisesAnExceptionIfAnUnsupportedEncoderWasInjected | ( | ) |
Definition at line 382 of file ilObjUserPasswordTest.php.
References $factory, ilUserBaseTest\assertException(), and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsCorrectEncoderIfAMatchingEncoderWasFound | ( | ) |
Definition at line 448 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testFactoryReturnsTheDefaultEncoderIfAnUnsupportedEncoderIsRequestedAndASupportedDefaultEncoderWasSpecifiedInFallbackMode | ( | ) |
Definition at line 432 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testGettersOfFactoryShouldReturnWhatWasSetBySetters | ( | ) |
Definition at line 358 of file ilObjUserPasswordTest.php.
References $factory, and getTestDirectoryUrl().
ilObjUserPasswordTest::testInstanceCanBeCreated | ( | ) |
Definition at line 131 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl().
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithoutSalt | ( | ) |
Definition at line 192 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), IL_PASSWD_CRYPTED, and Sabre\Event\once().
ilObjUserPasswordTest::testPasswordManagerEncodesRawPasswordWithSalt | ( | ) |
Definition at line 161 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), IL_PASSWD_CRYPTED, and Sabre\Event\once().
ilObjUserPasswordTest::testPasswordManagerMigratesPasswordOnVerificationWithVariantEncoders | ( | ) |
Definition at line 254 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and Sabre\Event\once().
ilObjUserPasswordTest::testPasswordManagerNeverMigratesPasswordOnFailedVerificationWithVariantEncoders | ( | ) |
Definition at line 316 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and Sabre\Event\once().
ilObjUserPasswordTest::testPasswordManagerReencodesPasswordIfReencodingIsNecessary | ( | ) |
Definition at line 285 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and Sabre\Event\once().
ilObjUserPasswordTest::testPasswordManagerVerifiesPassword | ( | ) |
Definition at line 223 of file ilObjUserPasswordTest.php.
References getTestDirectoryUrl(), and Sabre\Event\once().
|
protected |
Definition at line 35 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectory(), and setTestDirectory().
|
protected |
Definition at line 40 of file ilObjUserPasswordTest.php.
Referenced by getTestDirectoryUrl(), and setTestDirectoryUrl().
const ilObjUserPasswordTest::ENCODED_PASSWORD = 'encoded' |
Definition at line 30 of file ilObjUserPasswordTest.php.
const ilObjUserPasswordTest::PASSWORD = 'password' |
Definition at line 25 of file ilObjUserPasswordTest.php.