ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
TestCase for the ilWACTokenTest. More...
Public Member Functions | |
testWithoutSigning () | |
testSomeBasics () | |
testTokenGeneration () | |
testCookieGeneration () | |
testFileToken () | |
testModifiedTimestampNoMod () | |
@Test More... | |
testModifiedTimestampAddTime () | |
@Test More... | |
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.
@runTestsInSeparateProcesses @preserveGlobalState disabled @backupGlobals disabled @backupStaticAttributes disabled
Definition at line 54 of file ilWACTokenTest.php.
|
protected |
int | $add_ttl | |
int | $add_timestamp | |
null | $override_token |
Definition at line 361 of file ilWACTokenTest.php.
References $query, $token, ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
Referenced by testModifiedTimestampAddTime(), testModifiedTimestampNoMod(), testModifiedTimestampSubTime(), testModifiedToken(), testModifiedTTL(), and testModifiedTTLAndTimestamp().
|
protected |
Setup.
Definition at line 105 of file ilWACTokenTest.php.
References Vendor\Package\$c, $container, $GLOBALS, ILIAS\FileDelivery\http(), and ilWACToken\setSALT().
ilWACTokenTest::testCookieGeneration | ( | ) |
Definition at line 206 of file ilWACTokenTest.php.
References $response, ILIAS\FileDelivery\http(), and ilWACSignedPath\signFolderOfStartFile().
ilWACTokenTest::testFileToken | ( | ) |
Definition at line 259 of file ilWACTokenTest.php.
References ilWACSignedPath\getTokenMaxLifetimeInSeconds(), ILIAS\FileDelivery\http(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
ilWACTokenTest::testModifiedTimestampAddTime | ( | ) |
@Test
Definition at line 304 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampNoMod | ( | ) |
@Test
Definition at line 291 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampSubTime | ( | ) |
Definition at line 314 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedToken | ( | ) |
Definition at line 345 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTL | ( | ) |
Definition at line 325 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTLAndTimestamp | ( | ) |
Definition at line 335 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testSomeBasics | ( | ) |
Definition at line 175 of file ilWACTokenTest.php.
References $query.
ilWACTokenTest::testTokenGeneration | ( | ) |
Definition at line 191 of file ilWACTokenTest.php.
References ilWACToken\getSALT().
ilWACTokenTest::testWithoutSigning | ( | ) |
Definition at line 143 of file ilWACTokenTest.php.
References ILIAS\FileDelivery\http().
|
protected |
Definition at line 63 of file ilWACTokenTest.php.
|
private |
Definition at line 99 of file ilWACTokenTest.php.
|
protected |
Definition at line 87 of file ilWACTokenTest.php.
|
protected |
Definition at line 67 of file ilWACTokenTest.php.
|
protected |
Definition at line 71 of file ilWACTokenTest.php.
|
protected |
Definition at line 75 of file ilWACTokenTest.php.
|
protected |
Definition at line 83 of file ilWACTokenTest.php.
|
protected |
Definition at line 79 of file ilWACTokenTest.php.
|
private |
Definition at line 95 of file ilWACTokenTest.php.
|
protected |
Definition at line 91 of file ilWACTokenTest.php.
const ilWACTokenTest::ADDITIONAL_TIME = 1 |
Definition at line 56 of file ilWACTokenTest.php.
const ilWACTokenTest::CLIENT_NAME = 'client_name' |
Definition at line 59 of file ilWACTokenTest.php.
const ilWACTokenTest::LIFETIME = 2 |
Definition at line 57 of file ilWACTokenTest.php.
const ilWACTokenTest::SALT = 'SALT' |
Definition at line 58 of file ilWACTokenTest.php.