34 require_once(
'./libs/composer/vendor/autoload.php');
35 require_once(__DIR__ .
"/../../UI/Base.php");
67 protected function setUp(): void
72 $this->provider = \Mockery::mock(NotificationProvider::class);
73 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
75 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
85 return new I\Item\Factory();
89 return new I\Symbol\Factory(
95 public function mainControls(): C\MainControls\Factory
97 return new I\MainControls\Factory(
112 $factory->sig_gen = Mockery::mock(
I\SignalGeneratorInterface::class);
113 $factory->sig_gen->shouldReceive(
"create")->andReturn(
new I\Signal(
"id"));
120 'ui' => $this->createMock(\
ILIAS\
DI\UIServices::class),
121 'ui.factory' => $this->createMock(\
ILIAS\
UI\Factory::class),
122 'provider_factory'=> $this->createMock(ProviderFactory::class),
124 return new class ($mocks) extends
ILIAS\
DI\Container {
127 return new Services($this[
'provider_factory'], $this[
'ui']);
136 public function getNotifications(): array
138 return $this->notifications;
141 $provider->notifications = $notifications;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface AbstractNotificationProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class BaseNotificationSetUp.
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class NotificationFactory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDummyNotificationsProviderWithNotifications($notifications)
Class NullProviderFactory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
This is how a factory for Items looks like.