18 declare(strict_types=1);
29 require_once(
'./libs/composer/vendor/autoload.php');
30 require_once(__DIR__ .
"/../../UI/Base.php");
43 protected function setUp(): void
47 $this->ui_mock = $this->createMock(\
ILIAS\
DI\UIServices::class);
48 $this->provider = $this->createMock(ToastProvider::class);
49 $this->provider->expects($this->any())->method(
'getProviderNameForPresentation')->willReturn(
'Provider');
50 $this->factory = (
new ToastServices($this->ui_mock))->factory();
56 'ui' => $this->createMock(\
ILIAS\
DI\UIServices::class),
57 'ui.factory' => $this->createMock(\
ILIAS\
UI\Factory::class),
58 'provider_factory'=> $this->createMock(ProviderFactory::class),
63 return new Services($this[
'provider_factory'], $this[
'ui']);
73 public function getToasts(): array
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS DI UIServices $ui_mock
getDummyToastProviderWithToasts(array $toasts)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...