3declare(strict_types=1);
7require_once __DIR__ .
'/ilCtrlPathTestBase.php';
19 $this->assertEquals(
'a:b:c',
$path->getCidPath());
22 $this->assertEquals(
'0',
$path->getCidPath());
25 $this->assertNull(
$path->getCidPath());
28 $this->assertNull(
$path->getCidPath());
34 $this->assertEquals(
'c',
$path->getCurrentCid());
37 $this->assertNull(
$path->getCurrentCid());
40 $this->assertNull(
$path->getCurrentCid());
46 $this->assertEquals(
'2',
$path->getNextCid(ilCtrlBaseClass2TestGUI::class));
47 $this->assertEquals(
'3',
$path->getNextCid(ilCtrlCommandClass1TestGUI::class));
48 $this->assertNull(
$path->getNextCid(ilCtrlCommandClass2TestGUI::class));
51 $this->assertNull(
$path->getNextCid(ilCtrlBaseClass1TestGUI::class));
54 $this->assertNull(
$path->getNextCid(ilCtrlBaseClass1TestGUI::class));
66 $path->getCidPaths(SORT_ASC)
79 $this->assertEmpty(
$path->getCidPaths());
85 $this->assertEquals([
'c',
'b',
'a'],
$path->getCidArray());
86 $this->assertEquals([
'a',
'b',
'c'],
$path->getCidArray(SORT_ASC));
89 $this->assertEmpty(
$path->getCidArray());
92 $this->assertEmpty(
$path->getCidArray());
Class ilCtrlAbstractPathTest.
testAbstractPathGetCurrentCid()
testAbstractPathGetNextCid()
testAbstractPathGetCidPath()
testAbstractPathGetCidPaths()
testAbstractPathGetCidArray()
Class ilCtrlPathTestBase.
getPath(string $cid_path=null)