19declare(strict_types=1);
21require_once __DIR__ .
'/ilCtrlPathTestBase.php';
33 $this->assertEquals(
'a:b:c',
$path->getCidPath());
36 $this->assertEquals(
'0',
$path->getCidPath());
39 $this->assertNull(
$path->getCidPath());
42 $this->assertNull(
$path->getCidPath());
48 $this->assertEquals(
'c',
$path->getCurrentCid());
51 $this->assertNull(
$path->getCurrentCid());
54 $this->assertNull(
$path->getCurrentCid());
60 $this->assertEquals(
'2',
$path->getNextCid(ilCtrlBaseClass2TestGUI::class));
61 $this->assertEquals(
'3',
$path->getNextCid(ilCtrlCommandClass1TestGUI::class));
62 $this->assertNull(
$path->getNextCid(ilCtrlCommandClass2TestGUI::class));
65 $this->assertNull(
$path->getNextCid(ilCtrlBaseClass1TestGUI::class));
68 $this->assertNull(
$path->getNextCid(ilCtrlBaseClass1TestGUI::class));
80 $path->getCidPaths(SORT_ASC)
93 $this->assertEmpty(
$path->getCidPaths());
99 $this->assertEquals([
'c',
'b',
'a'],
$path->getCidArray());
100 $this->assertEquals([
'a',
'b',
'c'],
$path->getCidArray(SORT_ASC));
103 $this->assertEmpty(
$path->getCidArray());
106 $this->assertEmpty(
$path->getCidArray());
Class ilCtrlAbstractPathTest.
testAbstractPathGetCurrentCid()
testAbstractPathGetNextCid()
testAbstractPathGetCidPath()
testAbstractPathGetCidPaths()
testAbstractPathGetCidArray()
Class ilCtrlPathTestBase.
getPath(?string $cid_path=null)