ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
TestCase for the ilWACTokenTest. More...
Public Member Functions | |
testWithoutSigning () | |
testSomeBasics () | |
testTokenGeneration () | |
testCookieGeneration () | |
testFileToken () | |
testModifiedTimestampNoMod () | |
testModifiedTimestampAddTime () | |
testModifiedTimestampSubTime () | |
testModifiedTTL () | |
testModifiedTTLAndTimestamp () | |
testModifiedToken () | |
Data Fields | |
const | ADDITIONAL_TIME = 1 |
const | LIFETIME = 2 |
const | SALT = 'SALT' |
const | CLIENT_NAME = 'client_name' |
Protected Member Functions | |
setUp () | |
Setup. More... | |
getModifiedSignedPath (int $add_ttl=0, int $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 | |
Private Attributes | |
$http | |
$cookieFactory | |
TestCase for the ilWACTokenTest.
@preserveGlobalState disabled @backupGlobals disabled @backupStaticAttributes disabled
Definition at line 46 of file ilWACTokenTestTBD.php.
|
protected |
null | $override_token |
Definition at line 351 of file ilWACTokenTestTBD.php.
References $parts, $path, $token, ILIAS\Repository\int(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
Referenced by testModifiedTimestampAddTime(), testModifiedTimestampNoMod(), testModifiedTimestampSubTime(), testModifiedToken(), testModifiedTTL(), and testModifiedTTLAndTimestamp().
|
protected |
Setup.
Definition at line 97 of file ilWACTokenTestTBD.php.
References $c, $container, $GLOBALS, ILIAS\FileDelivery\http(), and ilWACToken\setSALT().
ilWACTokenTest::testCookieGeneration | ( | ) |
Definition at line 201 of file ilWACTokenTestTBD.php.
References $response, ILIAS\FileDelivery\http(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFileToken | ( | ) |
Definition at line 249 of file ilWACTokenTestTBD.php.
References CLIENT_NAME, ilWACSignedPath\getTokenMaxLifetimeInSeconds(), ILIAS\FileDelivery\http(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
ilWACTokenTest::testModifiedTimestampAddTime | ( | ) |
Definition at line 292 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampNoMod | ( | ) |
Definition at line 280 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampSubTime | ( | ) |
Definition at line 303 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedToken | ( | ) |
Definition at line 337 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTL | ( | ) |
Definition at line 315 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTLAndTimestamp | ( | ) |
Definition at line 326 of file ilWACTokenTestTBD.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testSomeBasics | ( | ) |
Definition at line 167 of file ilWACTokenTestTBD.php.
References CLIENT_NAME.
ilWACTokenTest::testTokenGeneration | ( | ) |
Definition at line 184 of file ilWACTokenTestTBD.php.
References CLIENT_NAME, and ilWACToken\getSALT().
ilWACTokenTest::testWithoutSigning | ( | ) |
Definition at line 133 of file ilWACTokenTestTBD.php.
References ILIAS\FileDelivery\http().
|
protected |
Definition at line 55 of file ilWACTokenTestTBD.php.
|
private |
Definition at line 91 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 79 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 59 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 63 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 67 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 75 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 71 of file ilWACTokenTestTBD.php.
|
private |
Definition at line 87 of file ilWACTokenTestTBD.php.
|
protected |
Definition at line 83 of file ilWACTokenTestTBD.php.
const ilWACTokenTest::ADDITIONAL_TIME = 1 |
Definition at line 48 of file ilWACTokenTestTBD.php.
const ilWACTokenTest::CLIENT_NAME = 'client_name' |
Definition at line 51 of file ilWACTokenTestTBD.php.
const ilWACTokenTest::LIFETIME = 2 |
Definition at line 49 of file ilWACTokenTestTBD.php.
const ilWACTokenTest::SALT = 'SALT' |
Definition at line 50 of file ilWACTokenTestTBD.php.