Class FactoryImplTest.
More...
◆ setUp()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 48 of file FactoryImplTest.php.
52 $this->identification =
new IdentificationFactory(
new NullProviderFactory());
53 $this->provider = \Mockery::mock(StaticMainMenuProvider::class);
54 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
56 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
58 $this->factory =
new MainMenuItemFactory();
◆ testAvailableMethods()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testAvailableMethods |
( |
| ) |
|
Definition at line 62 of file FactoryImplTest.php.
References $r.
67 foreach (
$r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
68 $methods[] = $method->getName();
78 4 =>
'repositoryLink',
◆ testChildConstraints()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testChildConstraints |
( |
| ) |
|
Definition at line 98 of file FactoryImplTest.php.
100 $this->assertNotInstanceOf(isChild::class, $this->factory->topLinkItem($this->id));
101 $this->assertNotInstanceOf(isChild::class, $this->factory->topParentItem($this->id));
102 $this->assertInstanceOf(isChild::class, $this->factory->complex($this->id));
103 $this->assertInstanceOf(isChild::class, $this->factory->link($this->id));
104 $this->assertInstanceOf(isChild::class, $this->factory->repositoryLink($this->id));
105 $this->assertInstanceOf(isChild::class, $this->factory->separator($this->id));
◆ testTopItemConstraints()
ILIAS\GlobalScreen\MainMenu\FactoryImplTest::testTopItemConstraints |
( |
| ) |
|
Definition at line 87 of file FactoryImplTest.php.
89 $this->assertInstanceOf(isTopItem::class, $this->factory->topLinkItem($this->id));
90 $this->assertInstanceOf(isTopItem::class, $this->factory->topParentItem($this->id));
91 $this->assertNotInstanceOf(isTopItem::class, $this->factory->complex($this->id));
92 $this->assertNotInstanceOf(isTopItem::class, $this->factory->link($this->id));
93 $this->assertNotInstanceOf(isTopItem::class, $this->factory->repositoryLink($this->id));
94 $this->assertNotInstanceOf(isTopItem::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: