ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\GlobalScreen\MainMenu\CollectorTest Class Reference

Class CollectorTest. More...

+ Inheritance diagram for ILIAS\GlobalScreen\MainMenu\CollectorTest:
+ Collaboration diagram for ILIAS\GlobalScreen\MainMenu\CollectorTest:

Public Member Functions

 testBasic ()
 

Protected Member Functions

 setUp ()
 

Private Member Functions

 getItemInformation ()
 

Detailed Description

Class CollectorTest.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 26 of file CollectorTest.php.

Member Function Documentation

◆ getItemInformation()

ILIAS\GlobalScreen\MainMenu\CollectorTest::getItemInformation ( )
private

Definition at line 46 of file CollectorTest.php.

46 : ItemInformation
47 {
48 return new class implements ItemInformation {
49 public function isItemActive(isItem $item) : bool
50 {
51 return true;
52 }
53
54 public function customPosition(isItem $item) : isItem
55 {
56 return $item;
57 }
58
59 public function customTranslationForUser(hasTitle $item) : hasTitle
60 {
61 return $item;
62 }
63
64 public function getParent(isChild $item) : IdentificationInterface
65 {
66 return $item->getParent();
67 }
68
69 public function customSymbol(hasSymbol $item) : hasSymbol
70 {
71 return $item;
72 }
73
74 };
75 }

Referenced by ILIAS\GlobalScreen\MainMenu\CollectorTest\testBasic().

+ Here is the caller graph for this function:

◆ setUp()

ILIAS\GlobalScreen\MainMenu\CollectorTest::setUp ( )
protected

Definition at line 30 of file CollectorTest.php.

30 : void
31 {
32 parent::setUp();
33
34 }

◆ testBasic()

ILIAS\GlobalScreen\MainMenu\CollectorTest::testBasic ( )

Definition at line 36 of file CollectorTest.php.

36 : void
37 {
38 $this->assertTrue(true);
39 return; // WIP
40 $collector = new MainMenuMainCollector([$this->getDummyProvider()], $this->getItemInformation());
41 $collector->collectOnce();
42
43 $this->assertTrue($collector->hasItems());
44 }

References ILIAS\GlobalScreen\MainMenu\CollectorTest\getItemInformation().

+ Here is the call graph for this function:

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