ILIAS  release_7 Revision v7.30-3-g800a261c036
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 42 of file CollectorTest.php.

Member Function Documentation

◆ getItemInformation()

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

Definition at line 61 of file CollectorTest.php.

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

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 46 of file CollectorTest.php.

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

◆ testBasic()

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

Definition at line 51 of file CollectorTest.php.

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

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: