19 declare(strict_types=1);
21 require_once(
"vendor/composer/vendor/autoload.php");
22 require_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()));
withExpanded(bool $expanded)
Tests for the (Base-)Node.
Interface Observer Contains several chained tasks and infos about them.
testWithHighlighted(TestingNode $node)
withOnClick(Signal $signal)
testWithURI(Clickable $node)
withHighlighted(bool $highlighted)
testWithAppendOnClick(Clickable $node)
testDefaults(TestingNode $node)
withLink(URI $link)
Create a new node object with an URI that will be added to the UI.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Dummy-implementation for testing.
testWithExpanded(TestingNode $node)
__construct(Container $dic, ilPlugin $plugin)
getTriggeredSignals()
Get all triggered signals of this component.
testWithOnClick(TestingNode $node)
appendOnClick(Signal $signal)
Get a component like this, triggering a signal of another component on click.
__construct(string $label, ?URI $link=null)