19 declare(strict_types=1);
21 require_once __DIR__ .
'/ilCtrlPathTestBase.php';
38 protected function setUp(): void
47 $context = $this->createMock(ilCtrlContextInterface::class);
50 $this->assertEquals(
'0',
$path->getCidPath());
51 $this->assertInstanceOf(
52 ilCtrlSingleClassPath::class,
59 $context = $this->createMock(ilCtrlContextInterface::class);
61 ilCtrlBaseClass1TestGUI::class,
62 ilCtrlCommandClass1TestGUI::class,
65 $this->assertEquals(
'0:2',
$path->getCidPath());
66 $this->assertInstanceOf(
67 ilCtrlArrayClassPath::class,
76 $this->assertNull(
$path->getCidPath());
77 $this->assertInstanceOf(
78 ilCtrlNullPath::class,
87 $this->assertEquals(
'foo',
$path->getCidPath());
88 $this->assertInstanceOf(
89 ilCtrlExistingPath::class,
testPathFactoryNullPath()
testPathFactoryFindSingleClassTargetPath()
testPathFactoryExistingPath()
Class ilCtrlPathFactoryTest.
Class ilCtrlPathTestBase.
testPathFactoryFindArrayClassTargetPath()
ilCtrlPathFactory $factory