Class FactoryImplTest.
More...
◆ setUp()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 49 of file FactoryImplTest.php.
References factory().
53 $this->identification =
new IdentificationFactory(
new NullProviderFactory());
54 $this->provider = $this->getMockBuilder(StaticMainMenuProvider::class)->getMock();
56 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
58 $this->
factory =
new MainMenuItemFactory();
◆ testAvailableMethods()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testAvailableMethods |
( |
| ) |
|
◆ testInterchangeableContraints()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testInterchangeableContraints |
( |
| ) |
|
Definition at line 87 of file FactoryImplTest.php.
References factory().
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));
◆ $factory
◆ $id
◆ $identification
◆ $provider
The documentation for this class was generated from the following file: