ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 52 of file ilWACTokenTest.php.
|
protected |
int | $add_ttl | |
int | $add_timestamp | |
null | $override_token |
Definition at line 366 of file ilWACTokenTest.php.
References $path, $query, PHPMailer\PHPMailer\$token, 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 $c, $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(), Sabre\Event\on(), 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::testModifiedTimestampAddTime | ( | ) |
@Test
Definition at line 309 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampNoMod | ( | ) |
@Test
Definition at line 296 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTimestampSubTime | ( | ) |
Definition at line 319 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedToken | ( | ) |
Definition at line 350 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTL | ( | ) |
Definition at line 330 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testModifiedTTLAndTimestamp | ( | ) |
Definition at line 340 of file ilWACTokenTest.php.
References getModifiedSignedPath(), and ILIAS\FileDelivery\http().
ilWACTokenTest::testSomeBasics | ( | ) |
Definition at line 165 of file ilWACTokenTest.php.
References $query.
ilWACTokenTest::testTokenGeneration | ( | ) |
Definition at line 181 of file ilWACTokenTest.php.
References 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.
|
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.