ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 = 1 |
const | LIFETIME = 2 |
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 | |
Private Attributes | |
$http | |
$cookieFactory | |
TestCase for the ilWACTokenTest.
disabled disabled disabled
Definition at line 52 of file ilWACTokenTest.php.
|
protected |
int | $add_ttl | |
int | $add_timestamp | |
null | $override_token |
Definition at line 500 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 103 of file ilWACTokenTest.php.
References $container, $GLOBALS, ILIAS\FileDelivery\http(), and ilWACToken\setSALT().
ilWACTokenTest::testCookieGeneration | ( | ) |
Definition at line 196 of file ilWACTokenTest.php.
References $response, ILIAS\HTTP\Cookies\Cookie\getName(), ILIAS\FileDelivery\http(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFileToken | ( | ) |
Definition at line 264 of file ilWACTokenTest.php.
References ilWACSignedPath\getTokenMaxLifetimeInSeconds(), ILIAS\FileDelivery\http(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
ilWACTokenTest::testFolderToken | ( | ) |
Definition at line 295 of file ilWACTokenTest.php.
References $response, $timestamp, ilWACSignedPath\getCookieMaxLifetimeInSeconds(), ILIAS\FileDelivery\http(), ilWACSignedPath\setCookieMaxLifetimeInSeconds(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFolderTokenWithSecondFile | ( | ) |
Definition at line 393 of file ilWACTokenTest.php.
References $file_two, ilWACSignedPath\getCookieMaxLifetimeInSeconds(), ILIAS\FileDelivery\http(), ilWACSignedPath\setCookieMaxLifetimeInSeconds(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testModifiedTimestampAddTime | ( | ) |
Definition at line 443 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampNoMod | ( | ) |
Definition at line 430 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampSubTime | ( | ) |
Definition at line 453 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedToken | ( | ) |
Definition at line 484 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTL | ( | ) |
Definition at line 464 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTLAndTimestamp | ( | ) |
Definition at line 474 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testSomeBasics | ( | ) |
Definition at line 165 of file ilWACTokenTest.php.
References $query, and ILIAS\FileDelivery\http().
ilWACTokenTest::testTokenGeneration | ( | ) |
Definition at line 181 of file ilWACTokenTest.php.
References ilWACToken\generateToken(), and ilWACToken\getSALT().
ilWACTokenTest::testWithoutSigning | ( | ) |
Definition at line 141 of file ilWACTokenTest.php.
References ILIAS\FileDelivery\http().
|
protected |
Definition at line 61 of file ilWACTokenTest.php.
|
private |
Definition at line 97 of file ilWACTokenTest.php.
|
protected |
Definition at line 85 of file ilWACTokenTest.php.
|
protected |
Definition at line 65 of file ilWACTokenTest.php.
|
protected |
Definition at line 69 of file ilWACTokenTest.php.
|
protected |
Definition at line 73 of file ilWACTokenTest.php.
|
protected |
Definition at line 81 of file ilWACTokenTest.php.
|
protected |
Definition at line 77 of file ilWACTokenTest.php.
Referenced by testFolderTokenWithSecondFile().
|
private |
Definition at line 93 of file ilWACTokenTest.php.
|
protected |
Definition at line 89 of file ilWACTokenTest.php.
const ilWACTokenTest::ADDITIONAL_TIME = 1 |
Definition at line 54 of file ilWACTokenTest.php.
const ilWACTokenTest::CLIENT_NAME = 'client_name' |
Definition at line 57 of file ilWACTokenTest.php.
const ilWACTokenTest::LIFETIME = 2 |
Definition at line 55 of file ilWACTokenTest.php.
const ilWACTokenTest::SALT = 'SALT' |
Definition at line 56 of file ilWACTokenTest.php.