11 use \ILIAS\UI\Component as
C;
14 use \ILIAS\UI\Implementation\Component as
I;
16 require_once(
'./libs/composer/vendor/autoload.php');
17 require_once(__DIR__ .
"/../../UI/Base.php");
49 protected function setUp() : void
54 $this->provider = \Mockery::mock(NotificationProvider::class);
55 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
57 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
64 $factory =
new class extends NoUIFactory {
65 public function item()
67 return new I\Item\Factory();
71 return new I\Symbol\Factory(
72 new I\Symbol\Icon\Factory(),
73 new I\Symbol\Glyph\Factory(),
74 new I\Symbol\Avatar\Factory()
77 public function mainControls() : C\MainControls\Factory
79 return new I\MainControls\Factory(
81 new I\MainControls\Slate\Factory(
85 new I\Symbol\Icon\Factory(),
86 new I\Symbol\Glyph\Factory(),
87 new I\Symbol\Avatar\Factory()
94 $factory->sig_gen = Mockery::mock(
I\SignalGeneratorInterface::class);
95 $factory->sig_gen->shouldReceive(
"create")->andReturn(
new I\Signal(
"id"));
101 $dic =
new class extends ILIAS\DI\Container {
102 public function globalScreen()
104 return new Services(Mockery::mock(ProviderFactory::class));
114 public function getNotifications() : array
116 return $this->notifications;
119 $provider->notifications = $notifications;
Interface AbstractNotificationProvider.
Class BaseNotificationSetUp.
Class ChatMainBarProvider .
Class NotificationFactory.
getDummyNotificationsProviderWithNotifications($notifications)
Class NullProviderFactory.
Class IdentificationFactory.
Class ilAsqQuestionAuthoringFactory.