27use PHPUnit\Framework\TestCase;
31require_once(
'./vendor/composer/vendor/autoload.php');
49 protected function setUp(): void
54 $this->provider = $this->getMockBuilder(StaticMainMenuProvider::class)->getMock();
56 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
64 $r =
new ReflectionClass($this->
factory);
67 foreach ($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
68 $methods[] = $method->getName();
77 4 =>
'repositoryLink',
89 $this->assertInstanceOf(isInterchangeableItem::class, $this->
factory->topLinkItem($this->id));
90 $this->assertNotInstanceOf(isInterchangeableItem::class, $this->
factory->topParentItem($this->id));
91 $this->assertInstanceOf(isInterchangeableItem::class, $this->
factory->complex($this->id));
92 $this->assertInstanceOf(isInterchangeableItem::class, $this->
factory->link($this->id));
93 $this->assertInstanceOf(isInterchangeableItem::class, $this->
factory->repositoryLink($this->id));
94 $this->assertNotInstanceOf(isInterchangeableItem::class, $this->
factory->separator($this->id));
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
IdentificationFactory $identification
IdentificationInterface $id
MainMenuItemFactory $factory
testInterchangeableContraints()
StaticMainMenuProvider $provider
Class NullProviderFactory.
Class MainMenuItemFactory This factory provides you all available types for MainMenu GlobalScreen Ite...
Interface IdentificationInterface.
Interface StaticMainMenuProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...