3 declare(strict_types=1);
    20 require_once __DIR__ . 
'/ilCtrlPathTestBase.php';
    31         $invalid_class = ilCtrlInvalidGuiClass::class;
    34             $this->createMock(ilCtrlContextInterface::class),
    38         $this->assertNotNull(
$path->getException());
    39         $this->expectException(ilCtrlException::class);
    40         $this->expectExceptionMessage(
"Class '$invalid_class' was not found in the control structure, try `composer du` to read artifacts.");
    41         throw $path->getException();
    47         $context = $this->createMock(ilCtrlContextInterface::class);
    50             ->willReturn($this->
getPath(null))
    53         $target_class = ilCtrlCommandClass1TestGUI::class;
    60         $this->assertNotNull(
$path->getException());
    61         $this->expectException(ilCtrlException::class);
    62         $this->expectExceptionMessage(
"ilCtrl cannot find a path for '$target_class' that reaches ''");
    63         throw $path->getException();
    69         $context = $this->createMock(ilCtrlContextInterface::class);
    72             ->willReturn($this->
getPath(
'0:4'))
    78             ilCtrlCommandClass1TestGUI::class
    81         $this->assertEquals(
'0:2', 
$path->getCidPath());
    87         $context = $this->createMock(ilCtrlContextInterface::class);
    90             ->willReturn($this->
getPath(null))
    96             ilCtrlBaseClass1TestGUI::class
    99         $this->assertEquals(
'0', 
$path->getCidPath());
   106         $context = $this->createMock(ilCtrlContextInterface::class);
   109             ->willReturn($this->
getPath(
'1:2:3'))
   115             ilCtrlCommandClass2TestGUI::class
   118         $this->assertEquals(
'1:2:3', 
$path->getCidPath());
   125             $this->createMock(ilCtrlContextInterface::class),
   129         $this->assertNotNull(
$path->getException());
   130         $this->expectException(ilCtrlException::class);
   131         $this->expectExceptionMessage(
"Class '' was not found in the control structure, try `composer du` to read artifacts.");
   132         throw $path->getException();
   138         $context = $this->createMock(ilCtrlContextInterface::class);
   141             ->willReturn($this->
getPath(
'0:2')) 
   147             ilCtrlBaseClass2TestGUI::class
   153         $this->assertEquals(
'0:2:1', 
$path->getCidPath());
 
testSinglePathWithContextBaseClass()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testSinglePathWithUnknownClass()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testSinglePathWithEmptyTargetClassString()
 
Class ilCtrlPathTestBase. 
 
testSinglePathBaseclassPriority()
 
testSinglePathWithoutBaseClass()
 
testSinglePathWithProvidedBaseClass()
 
testSinglePathWithSameTargetClass()
 
getPath(string $cid_path=null)