3declare(strict_types=1);
21require_once(
"libs/composer/vendor/autoload.php");
22require_once(__DIR__ .
"/../../../Base.php");
56 $this->button_factory =
new I\Button\Factory();
57 $this->icon_factory =
new I\Symbol\Icon\Factory();
63 $icon = $this->icon_factory->custom(
'',
'');
66 $this->assertInstanceOf(
67 "ILIAS\\UI\\Component\\MainControls\\Slate\\Slate",
70 $this->assertEquals(
$name, $slate->getName());
71 $this->assertEquals($icon, $slate->getSymbol());
72 $this->assertFalse($slate->getEngaged());
93 }
catch (InvalidArgumentException
$e) {
94 $this->assertFalse(
"This should not happen");
105 $this->assertFalse(
"This should not happen");
106 }
catch (InvalidArgumentException
$e) {
107 $this->assertTrue(
true);
121 foreach ($signals as $signal) {
122 $this->assertInstanceOf(Signal::class, $signal);
134 array_unique($signals)
getAriaRole()
Get the ARIA role on the slate.
withAriaRole(string $aria_role)
Get a slate like this, but with an additional ARIA role.
Provides common functionality for UI tests.
testWithEngaged(Slate $slate)
@depends testConstruction
testSignals(Slate $slate)
@depends testConstruction
testWithAriaRole(Slate $slate)
@depends testConstruction
I Symbol Icon Factory $icon_factory
testDifferentSignals(array $signals)
@depends testSignals
I SignalGenerator $sig_gen
I Button Factory $button_factory
testWithAriaRoleIncorrect(Slate $slate)
@depends testConstruction
withMappedSubNodes(callable $f)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...