◆ buildDependecies()
  
  
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::buildDependecies  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 142 of file LegacyGotoHandlerTest.php.
References ILIAS\Repository\ctrl(), and ILIAS\StaticURL\Tests\LegacyGotoHandlerTest\insertDIC().
  144         $this->
insertDIC(
'component.factory', $this->component_factory_mock);
   146         $access_mock = $this->createMock(\ilAccessHandler::class);
   147         $access_mock->method(
'checkAccess')->willReturn(
true);
   148         $this->
insertDIC(
'ilAccess', $access_mock);
   149         $this->
insertDIC(
'objDefinition', $this->createMock(\ilObjectDefinition::class));
   150         $user_mock = $this->createMock(\ilObjUser::class);
   151         $user_mock->method(
'getId')->willReturn(42);
   153         $this->
insertDIC(
'http', $this->http_mock);
   154         $this->
insertDIC(
'tpl', $this->createMock(\ilGlobalTemplateInterface::class));
   155         $this->
insertDIC(
'lng', $this->createMock(\ilLanguage::class));
   156         $this->
insertDIC(
'ilObjDataCache', $this->createMock(\ilObjectDataCache::class));
   157         $this->
insertDIC(
'ilDB', $this->createMock(\ilDBInterface::class));
   158         $this->
insertDIC(
'tree', $this->createMock(\ilTree::class));
   159         $this->
insertDIC(
'rbacreview', $this->createMock(\ilRbacReview::class));
   160         $this->
insertDIC(
'ilSetting', $this->createMock(\ilSetting::class));
   161         $this->
insertDIC(
'ilErr', $this->createMock(\ilErrorHandling::class));
   164         if (!defined(
'ROOT_FOLDER_ID')) {
   165             define(
'ROOT_FOLDER_ID', 1);
   168         if (!defined(
'ANONYMOUS_USER_ID')) {
   169             define(
'ANONYMOUS_USER_ID', 13);
 insertDIC(string $key, $value)
 
 
 
 
◆ insertDIC()
  
  
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::insertDIC  | 
          ( | 
          string  | 
          $key,  | 
         
        
           | 
           | 
            | 
          $value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ setUp()
  
  
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 49 of file LegacyGotoHandlerTest.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\refinery().
   51         $this->
ctrl = $this->createMock(\ilCtrlInterface::class);
    52         $this->http_mock = $this->createMock(\
ILIAS\
HTTP\Services::class);
    53         $this->request_mock = $this->createMock(ServerRequestInterface::class);
    54         $this->http_mock->method(
'request')->willReturn($this->request_mock);
    56         $this->component_factory_mock = $this->createMock(\ilComponentFactory::class);
    60             $this->createMock(\ilLanguage::class),
    63         $this->request_builder = 
new LegacyRequestBuilder();
    64         $this->subject = 
new LegacyGotoHandler();
 
Interface Observer  Contains several chained tasks and infos about them. 
 
 
 
 
◆ tearDown()
  
  
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::tearDown  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 131 of file LegacyGotoHandlerTest.php.
References $DIC, and $GLOBALS.
  134         $DIC = $DIC instanceof Container ? 
$DIC : 
new Container();
   135         foreach ($this->dic_backup as $key => $value) {
   136             $DIC->offsetUnset($key);
 
 
 
 
◆ testBase()
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::testBase  | 
          ( | 
          string  | 
          $called_url,  | 
        
        
           | 
           | 
          string  | 
          $target  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ updateRequestAndWrapperMockWithParams()
  
  
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::updateRequestAndWrapperMockWithParams  | 
          ( | 
          array  | 
          $params | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ urlProvider()
  
  
      
        
          | static ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::urlProvider  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Definition at line 73 of file LegacyGotoHandlerTest.php.
   76             [
'https://ilias.domain/goto.php?client_id=unittest&target=impr', 
'impr'],
    77             [
'https://ilias.domain/goto.php?target=root_1&client_id=unittest', 
'root_1'],
    78             [
'https://ilias.domain/go/root/1', 
'root_1'],
    79             [
'https://ilias.domain/goto.php?target=root_1&client_id=unittest&lang=de', 
'root_1'],
    80             [
'https://ilias.domain/sub/goto.php?target=root_1&client_id=unittest&lang=de', 
'root_1'],
    81             [
'https://ilias.domain/goto.php?target=crs_256&client_id=unittest&lang=de', 
'crs_256'],
    82             [
'https://ilias.domain/goto.php?target=lorem_256&client_id=unittest&lang=de', 
'lorem_256'],
    83             [
'https://ilias.domain/goto.php?target=wiki_wpage_4826_86154&client_id=unittest&lang=de', 
'wiki_wpage_4826_86154'],
    84             [
'https://ilias.domain/sub/goto.php?target=wiki_wpage_4826_86154&client_id=unittest&lang=de', 
'wiki_wpage_4826_86154'],
    85             [
'https://ilias.domain/goto.php/wiki/wpage_4826_86154', 
'wiki_wpage_4826_86154'],
    86             [
'https://ilias.domain/go/wiki/wpage_4826_86154', 
'wiki_wpage_4826_86154'],
    87             [
'https://ilias.domain/sub/goto.php/wiki/wpage_4826_86154', 
'wiki_wpage_4826_86154'],
    88             [
'https://ilias.domain/sub/go/wiki/wpage_4826_86154', 
'wiki_wpage_4826_86154'],
  
 
 
◆ $component_factory_mock
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$component_factory_mock | 
        
      
 
 
◆ $ctrl
  
  
      
        
          | ilCtrlInterface PHPUnit Framework MockObject MockObject ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$ctrl | 
         
       
   | 
  
private   | 
  
 
 
◆ $dic_backup
  
  
      
        
          | array ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$dic_backup = [] | 
         
       
   | 
  
private   | 
  
 
 
◆ $http_mock
  
  
      
        
          | ILIAS HTTP Services PHPUnit Framework MockObject MockObject ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$http_mock | 
         
       
   | 
  
private   | 
  
 
 
◆ $refinery
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$refinery | 
        
      
 
 
◆ $request_builder
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$request_builder | 
        
      
 
 
◆ $request_mock
      
        
          | ILIAS\StaticURL\Tests\LegacyGotoHandlerTest::$request_mock | 
        
      
 
 
◆ $subject
The documentation for this class was generated from the following file: