ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
TestCase for the ilWACTokenTest. More...
Public Member Functions | |
testWithoutSigning () | |
testSomeBasics () | |
testTokenGeneration () | |
testCookieGeneration () | |
testFileToken () | |
testFolderToken () | |
testFolderTokenWithSecondFile () | |
testModifiedTimestampNoMod () | |
testModifiedTimestampAddTime () | |
testModifiedTimestampSubTime () | |
testModifiedTTL () | |
testModifiedTTLAndTimestamp () | |
testModifiedToken () | |
Data Fields | |
const | ADDITIONAL_TIME = 0.5 |
const | LIFETIME = 1 |
const | SALT = 'SALT' |
const | CLIENT_NAME = 'client_name' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
getModifiedSignedPath ($add_ttl=0, $add_timestamp=0, $override_token=null) | |
Protected Attributes | |
$backupGlobals = false | |
$file_one | |
$file_one_subfolder | |
$file_one_subfolder_two | |
$file_two | |
$file_three | |
$file_four | |
$root | |
TestCase for the ilWACTokenTest.
@runInSeparateProcess @preserveGlobalState disabled @backupGlobals disabled @backupStaticAttributes disabled
Definition at line 37 of file ilWACTokenTest.php.
|
protected |
int | $add_ttl | |
int | $add_timestamp | |
null | $override_token |
Definition at line 317 of file ilWACTokenTest.php.
References $path, $query, ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
Referenced by testModifiedTimestampAddTime(), testModifiedTimestampNoMod(), testModifiedTimestampSubTime(), testModifiedToken(), testModifiedTTL(), and testModifiedTTLAndTimestamp().
|
protected |
Setup.
Definition at line 80 of file ilWACTokenTest.php.
References ilWACToken\setSALT().
ilWACTokenTest::testCookieGeneration | ( | ) |
Definition at line 145 of file ilWACTokenTest.php.
References $_SERVER, ilWACDummyCookie\clear(), ilWebAccessChecker\setDEBUG(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFileToken | ( | ) |
Definition at line 172 of file ilWACTokenTest.php.
References ilWACSignedPath\getTokenMaxLifetimeInSeconds(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
ilWACTokenTest::testFolderToken | ( | ) |
Definition at line 199 of file ilWACTokenTest.php.
References ilWACDummyCookie\clear(), ilWACSignedPath\getCookieMaxLifetimeInSeconds(), ilWACSignedPath\setCookieMaxLifetimeInSeconds(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFolderTokenWithSecondFile | ( | ) |
Definition at line 238 of file ilWACTokenTest.php.
References $file_two, ilWACSignedPath\getCookieMaxLifetimeInSeconds(), ilWACSignedPath\setCookieMaxLifetimeInSeconds(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testModifiedTimestampAddTime | ( | ) |
Definition at line 276 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testModifiedTimestampNoMod | ( | ) |
Definition at line 269 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testModifiedTimestampSubTime | ( | ) |
Definition at line 283 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testModifiedToken | ( | ) |
Definition at line 304 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testModifiedTTL | ( | ) |
Definition at line 290 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testModifiedTTLAndTimestamp | ( | ) |
Definition at line 297 of file ilWACTokenTest.php.
References getModifiedSignedPath().
ilWACTokenTest::testSomeBasics | ( | ) |
Definition at line 110 of file ilWACTokenTest.php.
References $query, ilWACToken\DEBUG, ilWACLog\getInstance(), and ilWebAccessChecker\isDEBUG().
ilWACTokenTest::testTokenGeneration | ( | ) |
Definition at line 127 of file ilWACTokenTest.php.
References $_SERVER, ilWACToken\getSALT(), and ilWebAccessChecker\setDEBUG().
ilWACTokenTest::testWithoutSigning | ( | ) |
Definition at line 100 of file ilWACTokenTest.php.
|
protected |
Definition at line 46 of file ilWACTokenTest.php.
|
protected |
Definition at line 70 of file ilWACTokenTest.php.
|
protected |
Definition at line 50 of file ilWACTokenTest.php.
|
protected |
Definition at line 54 of file ilWACTokenTest.php.
|
protected |
Definition at line 58 of file ilWACTokenTest.php.
|
protected |
Definition at line 66 of file ilWACTokenTest.php.
|
protected |
Definition at line 62 of file ilWACTokenTest.php.
Referenced by testFolderTokenWithSecondFile().
|
protected |
Definition at line 74 of file ilWACTokenTest.php.
const ilWACTokenTest::ADDITIONAL_TIME = 0.5 |
Definition at line 39 of file ilWACTokenTest.php.
const ilWACTokenTest::CLIENT_NAME = 'client_name' |
Definition at line 42 of file ilWACTokenTest.php.
const ilWACTokenTest::LIFETIME = 1 |
Definition at line 40 of file ilWACTokenTest.php.
const ilWACTokenTest::SALT = 'SALT' |
Definition at line 41 of file ilWACTokenTest.php.