17 require_once(
'./libs/composer/vendor/autoload.php');
53 $this->provider = \Mockery::mock(StaticMainMenuProvider::class);
54 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
56 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
67 foreach (
$r->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
68 $methods[] = $method->getName();
78 4 =>
'repositoryLink',
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));
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));
Class MainMenuItemFactory.
Class NullProviderFactory.
Class IdentificationFactory.