ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
ilWACSecurePathTest.php
Go to the documentation of this file.
1
<?
php
2
10
class
ilWACSecurePathTest
extends
PHPUnit_Framework_TestCase
{
11
15
protected
$backupGlobals
= FALSE;
16
17
protected
function
setUp
() {
18
require_once(
'./Services/PHPUnit/classes/class.ilUnitUtil.php'
);
19
ilUnitUtil::performInitialisation();
20
require_once(
'./Services/WebAccessChecker/classes/class.ilWACPath.php'
);
21
require_once(
'./Services/WebAccessChecker/classes/class.ilWACSecurePath.php'
);
22
require_once(
'./Services/WebAccessChecker/classes/class.ilWACSignedPath.php'
);
23
parent::setUp();
// TODO: Change the autogenerated stub
24
}
25
26
27
public
function
testPath() {
31
$ilWACPath =
new
ilWACPath
(
'http://www.ilias.de/docu/data/docu/mobs/mm_43803/test.png'
);
32
$obj = ilWACSecurePath::find($ilWACPath->getSecurePathId());
33
$this->assertEquals(
'./Services/MediaObjects'
, $obj->getComponentDirectory());
34
}
35
}
ilWACSecurePathTest
Class ilWACSecurePathTest extends PHPUnit.
Definition:
ilWACSecurePathTest.php:10
PHPUnit_Framework_TestCase
ilWACPath
Class ilWACPath.
Definition:
class.ilWACPath.php:9
ilWACSecurePathTest\setUp
setUp()
Definition:
ilWACSecurePathTest.php:17
ilWACSecurePathTest\$backupGlobals
$backupGlobals
Definition:
ilWACSecurePathTest.php:15
php
Services
WebAccessChecker
test
SecurePath
ilWACSecurePathTest.php
Generated on Fri Jan 24 2025 19:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)