ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 39 of file ilCtrlPathTestBase.php.

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

40  {
41  return new class ($this->structure, $cid_path) extends ilCtrlAbstractPath {
42  public function __construct(ilCtrlStructureInterface $structure, string $cid_path = null)
43  {
44  parent::__construct($structure);
45  $this->cid_path = $cid_path;
46  }
47  };
48  }
Class ilCtrlAbstractPath.
__construct(Container $dic, ilPlugin $plugin)
ilCtrlStructureInterface $structure
Interface ilCtrlPathInterface is responsible for holding and manipulating a valid ilCtrl class-path (...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

ilCtrlPathTestBase::setUp ( )
protected

Definition at line 23 of file ilCtrlPathTestBase.php.

23  : void
24  {
25  $structure_artifact = require __DIR__ . '/../Data/Structure/test_ctrl_structure.php';
26  $base_class_artifact = require __DIR__ . '/../Data/Structure/test_base_classes.php';
27 
28  $this->structure = new ilCtrlStructure(
29  $structure_artifact,
30  $base_class_artifact,
31  []
32  );
33  }
Class ilCtrlStructure holds the currently read control structure.

Field Documentation

◆ $structure

ilCtrlStructureInterface ilCtrlPathTestBase::$structure
protected

Definition at line 18 of file ilCtrlPathTestBase.php.

Referenced by getPath().


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