33use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
34use PHPUnit\Framework\TestCase;
36require_once(
'./libs/composer/vendor/autoload.php');
44 use MockeryPHPUnitIntegration;
46 protected function setUp() : void
53 $this->assertTrue(
true);
56 $collector->collectOnce();
58 $this->assertTrue($collector->hasItems());
64 public function isItemActive(
isItem $item) :
bool
81 return $item->getParent();
97 private $p_identifications;
101 protected $c_identifications;
106 $iff =
function (
string $id) use ($if) {
107 return $if->core($this)->identifier($id);
110 $this->p_identifications = [];
111 $this->c_identifications = [];
112 $this->type_information =
new TypeInformationCollection();
113 $this->type_information->add();
115 for ($x = 1; $x < 5; $x++) {
116 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
117 for ($y = 1; $y < 5; $y++) {
118 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
123 public function getAllIdentifications() : array
128 public function getFullyQualifiedClassName() : string
138 public function getStaticTopItems() : array
141 foreach ($this->p_identifications as $if) {
142 $items[] = $this->factory->topParentItem($if)->withTitle($if->getInternalIdentifier());
147 public function getStaticSubItems() : array
150 foreach ($this->c_identifications as $if) {
151 $identifier = $if->getInternalIdentifier();
152 $items[] = $this->factory->link($if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
157 public function provideTypeInformation() : TypeInformationCollection
159 return $this->type_information;
An exception for terminatinating execution or to throw for unit testing.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Class NullProviderFactory.
Class TypeInformationCollection.
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
__construct($a_client_id=0)
Constructor setup ILIAS global object @access public.
Interface IdentificationInterface.
Interface hasSymbol Methods for Entries with Symbols.
Interface StaticMainMenuProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getProviderNameForPresentation()