32use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
33use PHPUnit\Framework\TestCase;
35require_once(
'./vendor/composer/vendor/autoload.php');
43 use MockeryPHPUnitIntegration;
45 protected function setUp(): void
52 $this->assertTrue(
true);
55 $collector->collectOnce();
57 $this->assertTrue($collector->hasItems());
63 public function isItemActive(
isItem $item):
bool
80 return $item->getParent();
96 private array $p_identifications = [];
100 protected $c_identifications = [];
108 $this->type_information->add();
110 for ($x = 1; $x < 5; $x++) {
111 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
112 for ($y = 1; $y < 5; $y++) {
113 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
118 public function getAllIdentifications(): array
123 public function getFullyQualifiedClassName(): string
133 public function getStaticTopItems(): array
136 foreach ($this->p_identifications as $if) {
137 $items[] = $this->
factory->topParentItem($if)->withTitle($if->getInternalIdentifier());
142 public function getStaticSubItems(): array
145 foreach ($this->c_identifications as $if) {
146 $identifier = $if->getInternalIdentifier();
147 $items[] = $this->
factory->link($if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
152 public function provideTypeInformation(): TypeInformationCollection
154 return $this->type_information;
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
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()
Constructor setup ILIAS global object @access public.
Interface IdentificationInterface.
Interface StaticMainMenuProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getProviderNameForPresentation()