ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCtrlPathTestBase Class Reference

Class ilCtrlPathTestBase. More...

+ Inheritance diagram for ilCtrlPathTestBase:
+ Collaboration diagram for ilCtrlPathTestBase:

Protected Member Functions

 setUp ()
 @inheritDoc More...
 
 getPath (?string $cid_path=null)
 

Protected Attributes

ilCtrlStructureInterface $structure
 

Detailed Description

Member Function Documentation

◆ getPath()

ilCtrlPathTestBase::getPath ( ?string  $cid_path = null)
protected
Parameters
string | null$cid_path
Returns
ilCtrlPathInterface

Definition at line 53 of file ilCtrlPathTestBase.php.

54 {
55 return new class ($this->structure, $cid_path) extends ilCtrlAbstractPath {
56 public function __construct(ilCtrlStructureInterface $structure, ?string $cid_path = null)
57 {
59 $this->cid_path = $cid_path;
60 }
61 };
62 }
Class ilCtrlAbstractPath.
ilCtrlStructureInterface $structure
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $structure, and ILIAS\GlobalScreen\Provider\__construct().

Referenced by ilCtrlAbstractPathTest\testAbstractPathGetCidArray(), ilCtrlAbstractPathTest\testAbstractPathGetCidPath(), ilCtrlAbstractPathTest\testAbstractPathGetCidPaths(), ilCtrlAbstractPathTest\testAbstractPathGetCurrentCid(), ilCtrlAbstractPathTest\testAbstractPathGetNextCid(), ilCtrlArrayClassPathTest\testArrayPathWithContextAndProvidedBaseClass(), ilCtrlArrayClassPathTest\testArrayPathWithContextBaseClass(), ilCtrlArrayClassPathTest\testArrayPathWithoutBaseClass(), ilCtrlArrayClassPathTest\testArrayPathWithProvidedBaseClass(), ilCtrlSingleClassPathTest\testSinglePathBaseclassPriority(), ilCtrlSingleClassPathTest\testSinglePathWithContextBaseClass(), ilCtrlSingleClassPathTest\testSinglePathWithoutBaseClass(), ilCtrlSingleClassPathTest\testSinglePathWithProvidedBaseClass(), and ilCtrlSingleClassPathTest\testSinglePathWithSameTargetClass().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

ilCtrlPathTestBase::setUp ( )
protected

@inheritDoc

Reimplemented in ilCtrlPathFactoryTest.

Definition at line 37 of file ilCtrlPathTestBase.php.

37 : void
38 {
39 $structure_artifact = require __DIR__ . '/../Data/Structure/test_ctrl_structure.php';
40 $base_class_artifact = require __DIR__ . '/../Data/Structure/test_base_classes.php';
41
42 $this->structure = new ilCtrlStructure(
43 $structure_artifact,
44 $base_class_artifact,
45 []
46 );
47 }
Class ilCtrlStructure holds the currently read control structure.

Field Documentation

◆ $structure

ilCtrlStructureInterface ilCtrlPathTestBase::$structure
protected

Definition at line 32 of file ilCtrlPathTestBase.php.

Referenced by getPath().


The documentation for this class was generated from the following file: