17use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
18use PHPUnit\Framework\TestCase;
20require_once(
'./libs/composer/vendor/autoload.php');
28 use MockeryPHPUnitIntegration;
30 protected function setUp() : void
38 $this->assertTrue(
true);
41 $collector->collectOnce();
43 $this->assertTrue($collector->hasItems());
49 public function isItemActive(
isItem $item) :
bool
66 return $item->getParent();
83 private $p_identifications;
87 protected $c_identifications;
92 $iff =
function (
string $id) use (
$if) {
93 return $if->core($this)->identifier($id);
96 $this->p_identifications = [];
97 $this->c_identifications = [];
98 $this->type_information =
new TypeInformationCollection();
99 $this->type_information->add();
101 for ($x = 1; $x < 5; $x++) {
102 $this->p_identifications[
'id_' . $x] = $iff(
'id_' . $x);
103 for ($y = 1; $y < 5; $y++) {
104 $this->c_identifications[] = $iff(
'id_' . $x .
'/' . $y);
109 public function getAllIdentifications() : array
114 public function getFullyQualifiedClassName() : string
124 public function getStaticTopItems() : array
127 foreach ($this->p_identifications as
$if) {
128 $items[] = $this->factory->topParentItem(
$if)->withTitle(
$if->getInternalIdentifier());
133 public function getStaticSubItems() : array
136 foreach ($this->c_identifications as
$if) {
137 $identifier =
$if->getInternalIdentifier();
138 $items[] = $this->factory->link(
$if)->withTitle($identifier)->withParent($this->p_identifications[strstr($identifier,
'/',
true)]);
143 public function provideTypeInformation() : TypeInformationCollection
145 return $this->type_information;
An exception for terminatinating execution or to throw for unit testing.
Class IdentificationFactory.
Class NullProviderFactory.
Class TypeInformationCollection.
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class MainMenuItemFactory.
__construct($a_client_id=0)
Constructor setup ILIAS global object @access public.
Interface IdentificationInterface.
Interface hasSymbol Methods for Entries with Symbols.
Interface StaticMainMenuProvider.
getProviderNameForPresentation()