19 declare(strict_types=1);
    21 require_once(
"vendor/composer/vendor/autoload.php");
    22 require_once(__DIR__ . 
"/../../../Base.php");
    55         $this->sig_gen = 
new I\SignalGenerator();
    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());
    94             $this->assertFalse(
"This should not happen");
   105             $this->assertFalse(
"This should not happen");
   107             $this->assertTrue(
true);
   121         foreach ($signals as $signal) {
   122             $this->assertInstanceOf(Signal::class, $signal);
   134             array_unique($signals)
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getReplaceSignal()
Signal to replace the contents of the slate. 
 
withMappedSubNodes(callable $f)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testWithAriaRoleIncorrect(Slate $slate)
testConstruction 
 
getEngaged()
Should the slate be rendered as engaged? 
 
testDifferentSignals(array $signals)
testSignals 
 
withEngaged(bool $state)
Configures the slate to be rendered as engaged (or not). 
 
testWithAriaRole(Slate $slate)
testConstruction 
 
I Symbol Icon Factory $icon_factory
 
getAriaRole()
Get the ARIA role on the slate. 
 
I Button Factory $button_factory
 
getEngageSignal()
Signal that engages the slate when triggered. 
 
testSignals(Slate $slate)
testConstruction 
 
I SignalGenerator $sig_gen
 
testWithEngaged(Slate $slate)
testConstruction 
 
withAriaRole(string $aria_role)
Get a slate like this, but with an additional ARIA role. 
 
getToggleSignal()
Signal that toggles the slate when triggered.