17use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
18use PHPUnit\Framework\TestCase;
20require_once(
'./libs/composer/vendor/autoload.php');
28 use MockeryPHPUnitIntegration;
30 protected function setUp(): void
37 $this->assertTrue(
true);
40 $collector->collectOnce();
42 $this->assertTrue($collector->hasItems());
48 public function isItemActive(
isItem $item):
bool
65 return $item->getParent();
81 private $p_identifications;
85 protected $c_identifications;
90 $iff =
function (
string $id) use ($if) {
91 return $if->core($this)->identifier(
$id);
94 $this->p_identifications = [];
95 $this->c_identifications = [];
96 $this->type_information =
new TypeInformationCollection();
97 $this->type_information->add();
99 for ($x = 1; $x < 5; $x++) {
100 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
101 for ($y = 1; $y < 5; $y++) {
102 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
107 public function getAllIdentifications(): array
112 public function getFullyQualifiedClassName(): string
122 public function getStaticTopItems(): array
125 foreach ($this->p_identifications as $if) {
126 $items[] = $this->factory->topParentItem($if)->withTitle($if->getInternalIdentifier());
131 public function getStaticSubItems(): array
134 foreach ($this->c_identifications as $if) {
135 $identifier = $if->getInternalIdentifier();
136 $items[] = $this->factory->link($if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
141 public function provideTypeInformation(): TypeInformationCollection
143 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 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()