Class ilCtrlPathFactoryTest.
More...
◆ setUp()
| ilCtrlPathFactoryTest::setUp |
( |
| ) |
|
|
protected |
◆ testPathFactoryExistingPath()
| ilCtrlPathFactoryTest::testPathFactoryExistingPath |
( |
| ) |
|
Definition at line 69 of file ilCtrlPathFactoryTest.php.
69 : void
70 {
71 $path = $this->factory->existing(
'foo');
72
73 $this->assertEquals(
'foo',
$path->getCidPath());
74 $this->assertInstanceOf(
75 ilCtrlExistingPath::class,
77 );
78 }
References $path.
◆ testPathFactoryFindArrayClassTargetPath()
| ilCtrlPathFactoryTest::testPathFactoryFindArrayClassTargetPath |
( |
| ) |
|
Definition at line 43 of file ilCtrlPathFactoryTest.php.
43 : void
44 {
45 $context = $this->createMock(ilCtrlContextInterface::class);
47 ilCtrlBaseClass1TestGUI::class,
48 ilCtrlCommandClass1TestGUI::class,
49 ]);
50
51 $this->assertEquals(
'0:2',
$path->getCidPath());
52 $this->assertInstanceOf(
53 ilCtrlArrayClassPath::class,
55 );
56 }
References $context, and $path.
◆ testPathFactoryFindSingleClassTargetPath()
| ilCtrlPathFactoryTest::testPathFactoryFindSingleClassTargetPath |
( |
| ) |
|
Definition at line 31 of file ilCtrlPathFactoryTest.php.
31 : void
32 {
33 $context = $this->createMock(ilCtrlContextInterface::class);
34 $path = $this->factory->find(
$context, ilCtrlBaseClass1TestGUI::class);
35
36 $this->assertEquals(
'0',
$path->getCidPath());
37 $this->assertInstanceOf(
38 ilCtrlSingleClassPath::class,
40 );
41 }
References $context, and $path.
◆ testPathFactoryNullPath()
| ilCtrlPathFactoryTest::testPathFactoryNullPath |
( |
| ) |
|
Definition at line 58 of file ilCtrlPathFactoryTest.php.
58 : void
59 {
60 $path = $this->factory->null();
61
62 $this->assertNull(
$path->getCidPath());
63 $this->assertInstanceOf(
64 ilCtrlNullPath::class,
66 );
67 }
References $path.
◆ $factory
The documentation for this class was generated from the following file: