25use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
30use PHPUnit\Framework\TestCase;
34require_once(
'./libs/composer/vendor/autoload.php');
35require_once(__DIR__ .
"/../../UI/Base.php");
44 use MockeryPHPUnitIntegration;
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;
Class BaseNotificationSetUp.
getDummyNotificationsProviderWithNotifications($notifications)
Builds a Color from either hex- or rgb values.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Class NullProviderFactory.
Class NotificationFactory.
Interface AbstractNotificationProvider.
Interface IdentificationInterface.
Interface ProviderFactory.
Interface NotificationProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.