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 {
125 public function globalScreen() :
Services 127 return new Services($this[
'provider_factory']);
136 public function getNotifications() : array
138 return $this->notifications;
141 $provider->notifications = $notifications;
Interface AbstractNotificationProvider.
Class BaseNotificationSetUp.
Class ChatMainBarProvider .
Class NotificationFactory.
getDummyNotificationsProviderWithNotifications($notifications)
Class NullProviderFactory.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
This is how a factory for Items looks like.
Class ilAsqQuestionAuthoringFactory.