ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilWACSecurePathTest.php
Go to the documentation of this file.
1 <?php
2 
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 }
Class ilWACSecurePathTest extends PHPUnit.
Class ilWACPath.