ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCtrlPathTestBase Class Reference

Class ilCtrlPathTestBase. More...

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

Protected Member Functions

 setUp ()
 
 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.

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

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().

54  {
55  return new class ($this->structure, $cid_path) extends ilCtrlAbstractPath {
56  public function __construct(ilCtrlStructureInterface $structure, ?string $cid_path = null)
57  {
58  parent::__construct($structure);
59  $this->cid_path = $cid_path;
60  }
61  };
62  }
Class ilCtrlAbstractPath.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(Container $dic, ilPlugin $plugin)
ilCtrlStructureInterface $structure
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

ilCtrlPathTestBase::setUp ( )
protected

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: