ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ToastServicesTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\DI\UIServices
;
22
use
ILIAS\GlobalScreen\Scope\Toast\ToastServices
;
23
use PHPUnit\Framework\TestCase;
24
use
ILIAS\GlobalScreen\Scope\Toast\Factory\ToastFactory
;
25
26
require_once(
'./vendor/composer/vendor/autoload.php'
);
27
28
class
ToastServicesTest
extends
TestCase
29
{
30
public
function
testFactory
(): void
31
{
32
$ui_mock = $this->createMock(UIServices::class);
33
34
$services =
new
ToastServices
($ui_mock);
35
$this->assertInstanceOf(ToastFactory::class, $services->factory());
36
}
37
}
ILIAS\DI\UIServices
Provides fluid interface to RBAC services.
Definition:
UIServices.php:25
ILIAS\GlobalScreen\Scope\Toast\Factory\ToastFactory
Definition:
ToastFactory.php:31
ILIAS\GlobalScreen\Scope\Toast\ToastServices
Definition:
ToastServices.php:28
ToastServicesTest
Definition:
ToastServicesTest.php:29
ToastServicesTest\testFactory
testFactory()
Definition:
ToastServicesTest.php:30
components
ILIAS
GlobalScreen
tests
Toast
ToastServicesTest.php
Generated on Sun Oct 19 2025 23:03:00 for ILIAS by
1.9.4 (using
Doxyfile
)