19declare(strict_types=1);
21require_once(
"vendor/composer/vendor/autoload.php");
22require_once(__DIR__ .
"../../../../Base.php");
60 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Tree\\Node\\Node", $node);
65 #[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
73 #[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
81 #[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
89 #[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
92 $sig_gen =
new I\SignalGenerator();
93 $sig = $sig_gen->create();
96 $check = $node->getTriggeredSignals()[0]->getSignal();
97 $this->assertEquals($sig,
$check);
101 #[\PHPUnit\Framework\Attributes\Depends('testWithOnClick')]
104 $sig_gen =
new I\SignalGenerator();
105 $sig = $sig_gen->create();
109 $this->assertEquals($sig,
$check);
112 #[\PHPUnit\Framework\Attributes\Depends('testWithOnClick')]
115 $uri =
new URI(
'http://google.de:8080');
117 $node = $node->withLink($uri);
121 $this->assertEquals(
'http://google.de:8080', $stringTransformation->transform($node->getLink()));
The scope of this class is split ilias-conform URI's into components.
withHighlighted(bool $highlighted)
@inhertidoc
withExpanded(bool $expanded)
withOnClick(Signal $signal)
@inhertidoc
isHighlighted()
@inhertidoc
Provides common functionality for UI tests.
Tests for the (Base-)Node.
testWithURI(Clickable $node)
testWithExpanded(TestingNode $node)
testDefaults(TestingNode $node)
testWithOnClick(TestingNode $node)
testWithHighlighted(TestingNode $node)
testWithAppendOnClick(Clickable $node)
Dummy-implementation for testing.
__construct(string $label, ?URI $link=null)
withLink(URI $link)
Create a new node object with an URI that will be added to the UI.
appendOnClick(Signal $signal)
Get a component like this, triggering a signal of another component on click.
This describes a Tree Node.
getTriggeredSignals()
Get all triggered signals of this component.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.