18 declare(strict_types=1);
31 require_once(
'./vendor/composer/vendor/autoload.php');
32 require_once(__DIR__ .
"/../../../UI/tests/Base.php");
45 protected function setUp(): void
49 $this->ui_mock = $this->createMock(UIServices::class);
50 $this->provider = $this->createMock(ToastProvider::class);
51 $this->provider->expects($this->any())->method(
'getProviderNameForPresentation')->willReturn(
'Provider');
58 'ui' => $this->createMock(UIServices::class),
59 'ui.factory' => $this->createMock(Factory::class),
60 'provider_factory' => $this->createMock(ProviderFactory::class),
62 return new class ($mocks) extends
Container {
65 return new Services($this[
'provider_factory'], $this[
'ui']);
75 public function getToasts(): array
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Customizing of pimple-DIC for ILIAS.
Provides fluid interface to RBAC services.
getDummyToastProviderWithToasts(array $toasts)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...