27use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
30use PHPUnit\Framework\TestCase;
34require_once(
'./vendor/composer/vendor/autoload.php');
35require_once(__DIR__ .
"/../../../UI/tests/Base.php");
44 use MockeryPHPUnitIntegration;
66 protected function setUp(): void
71 $this->provider = \Mockery::mock(NotificationProvider::class);
72 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
74 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
82 public function item(): I\Item\Factory
84 return new I\Item\Factory();
87 public function symbol(): I\Symbol\Factory
89 return new I\Symbol\Factory(
96 public function mainControls(): I\MainControls\Factory
98 return new I\MainControls\Factory(
113 $factory->sig_gen = Mockery::mock(
I\SignalGeneratorInterface::class);
114 $factory->sig_gen->shouldReceive(
"create")->andReturn(
new I\Signal(
"id"));
121 'ui' => $this->createMock(UIServices::class),
122 'ui.factory' => $this->createMock(\
ILIAS\UI\Factory::class),
123 'provider_factory' => $this->createMock(ProviderFactory::class),
125 return new class ($mocks) extends
Container {
128 return new Services($this[
'provider_factory'], $this[
'ui']);
137 public array $notifications = [];
139 public function getNotifications(): array
141 return $this->notifications;
144 $provider->notifications = $notifications;
Class BaseNotificationSetUp.
getDummyNotificationsProviderWithNotifications($notifications)
Customizing of pimple-DIC for ILIAS.
Provides fluid interface to RBAC services.
Class IdentificationFactory All elements in the GlobalScreen service must be identifiable for the sup...
Class NullProviderFactory.
Class NotificationFactory.
Interface AbstractNotificationProvider.
Interface IdentificationInterface.
Interface NotificationProvider.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.