ILIAS  release_8 Revision v8.24
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 45 of file CollectorTest.php.

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

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 }

◆ testBasic()

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

Definition at line 35 of file CollectorTest.php.

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

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: