8use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
11use \ILIAS\UI\Component as
C;
13use PHPUnit\Framework\TestCase;
14use \ILIAS\UI\Implementation\Component as I;
16require_once(
'./libs/composer/vendor/autoload.php');
17require_once(__DIR__ .
"/../../UI/Base.php");
26 use MockeryPHPUnitIntegration;
49 protected function setUp() : void
54 $this->provider = \Mockery::mock(NotificationProvider::class);
55 $this->provider->shouldReceive(
'getProviderNameForPresentation')->andReturn(
'Provider');
57 $this->
id = $this->identification->core($this->provider)->identifier(
'dummy');
65 public function item()
67 return new I\Item\Factory();
71 return new I\Symbol\Factory(
72 new I\Symbol\Icon\Factory(),
73 new I\Symbol\Glyph\Factory(),
74 new I\Symbol\Avatar\Factory()
77 public function mainControls() : C\MainControls\Factory
79 return new I\MainControls\Factory(
81 new I\MainControls\Slate\Factory(
83 new \
ILIAS\
UI\Implementation\Component\Counter\Factory(),
85 new I\Symbol\Icon\Factory(),
86 new I\Symbol\Glyph\Factory(),
87 new I\Symbol\Avatar\Factory()
94 $factory->sig_gen = Mockery::mock(I\SignalGeneratorInterface::class);
95 $factory->sig_gen->shouldReceive(
"create")->andReturn(
new I\Signal(
"id"));
102 public function globalScreen()
104 return new Services(Mockery::mock(ProviderFactory::class));
114 public function getNotifications() : array
116 return $this->notifications;
119 $provider->notifications = $notifications;
Class BaseNotificationSetUp.
getDummyNotificationsProviderWithNotifications($notifications)
An exception for terminatinating execution or to throw for unit testing.
Class IdentificationFactory.
Class NullProviderFactory.
Class NotificationFactory.
Interface AbstractNotificationProvider.
Interface IdentificationInterface.
Interface ProviderFactory.
Interface NotificationProvider.
Class ChatMainBarProvider \MainMenu\Provider.
Class ilAsqQuestionAuthoringFactory.