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 {
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;
Class BaseNotificationSetUp.
getDummyNotificationsProviderWithNotifications($notifications)
An exception for terminatinating execution or to throw for unit testing.
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.
Class ChatMainBarProvider \MainMenu\Provider.
Class ilAsqQuestionAuthoringFactory.