ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 41 of file CollectorTestTBD.php.

Member Function Documentation

◆ getItemInformation()

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

Definition at line 60 of file CollectorTestTBD.php.

60 : ItemInformation
61 {
62 return new class () implements ItemInformation {
63 public function isItemActive(isItem $item): bool
64 {
65 return true;
66 }
67
68 public function customPosition(isItem $item): isItem
69 {
70 return $item;
71 }
72
73 public function customTranslationForUser(hasTitle $item): hasTitle
74 {
75 return $item;
76 }
77
78 public function getParent(isItem $item): IdentificationInterface
79 {
80 return $item->getParent();
81 }
82
83 public function customSymbol(hasSymbol $item): hasSymbol
84 {
85 return $item;
86 }
87 };
88 }

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 45 of file CollectorTestTBD.php.

45 : void
46 {
47 parent::setUp();
48 }

◆ testBasic()

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

Definition at line 50 of file CollectorTestTBD.php.

50 : void
51 {
52 $this->assertTrue(true);
53 return; // WIP
54 $collector = new MainMenuMainCollector([$this->getDummyProvider()], $this->getItemInformation());
55 $collector->collectOnce();
56
57 $this->assertTrue($collector->hasItems());
58 }

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: