Class FactoryImplTest.
More...
◆ setUp()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 61 of file FactoryImplTest.php.
65 $this->identification =
new IdentificationFactory(
new NullProviderFactory());
66 $this->provider = $this->getMockBuilder(StaticMainMenuProvider::class)->getMock();
68 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
70 $this->factory =
new MainMenuItemFactory();
◆ testAvailableMethods()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testAvailableMethods |
( |
| ) |
|
Definition at line 74 of file FactoryImplTest.php.
79 foreach ($r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
80 $methods[] = $method->getName();
89 4 =>
'repositoryLink',
◆ testInterchangeableContraints()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testInterchangeableContraints |
( |
| ) |
|
Definition at line 99 of file FactoryImplTest.php.
101 $this->assertInstanceOf(isInterchangeableItem::class, $this->factory->topLinkItem($this->id));
102 $this->assertNotInstanceOf(isInterchangeableItem::class, $this->factory->topParentItem($this->id));
103 $this->assertInstanceOf(isInterchangeableItem::class, $this->factory->complex($this->id));
104 $this->assertInstanceOf(isInterchangeableItem::class, $this->factory->link($this->id));
105 $this->assertInstanceOf(isInterchangeableItem::class, $this->factory->repositoryLink($this->id));
106 $this->assertNotInstanceOf(isInterchangeableItem::class, $this->factory->separator($this->id));
◆ $factory
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::$factory |
|
protected |
◆ $id
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::$id |
|
protected |
◆ $identification
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::$identification |
|
protected |
◆ $provider
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::$provider |
|
protected |
The documentation for this class was generated from the following file: