3 declare(strict_types=1);
7 require_once __DIR__ .
'/ilCtrlPathTestBase.php';
24 protected function setUp(): void
33 $context = $this->createMock(ilCtrlContextInterface::class);
34 $path = $this->factory->find(
$context, ilCtrlBaseClass1TestGUI::class);
36 $this->assertEquals(
'0',
$path->getCidPath());
37 $this->assertInstanceOf(
38 ilCtrlSingleClassPath::class,
45 $context = $this->createMock(ilCtrlContextInterface::class);
47 ilCtrlBaseClass1TestGUI::class,
48 ilCtrlCommandClass1TestGUI::class,
51 $this->assertEquals(
'0:2',
$path->getCidPath());
52 $this->assertInstanceOf(
53 ilCtrlArrayClassPath::class,
60 $path = $this->factory->null();
62 $this->assertNull(
$path->getCidPath());
63 $this->assertInstanceOf(
64 ilCtrlNullPath::class,
71 $path = $this->factory->existing(
'foo');
73 $this->assertEquals(
'foo',
$path->getCidPath());
74 $this->assertInstanceOf(
75 ilCtrlExistingPath::class,
testPathFactoryNullPath()
testPathFactoryFindSingleClassTargetPath()
testPathFactoryExistingPath()
Class ilCtrlPathFactoryTest.
Class ilCtrlPathTestBase.
testPathFactoryFindArrayClassTargetPath()
ilCtrlPathFactory $factory