19 declare(strict_types=1);
21 require_once(
"vendor/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../../Base.php");
43 new Implementation\Factory(),
51 $target = $df->uri(
'http://wwww.ilias.de?ref_id=1');
54 list($builder,
$token) = array_values(
55 $url_builder->acquireParameter([
'namespace'],
'rowids')
59 $this->link_target = $target;
60 $this->link_action =
$f->standard($label, $builder,
$token);
61 $this->signal_target =
new Signal(
'sig_id');
62 $this->signal_action = $this->link_action->withAsync(
true);
68 $this->assertEquals(
'label', $act->getLabel());
69 $this->assertEquals($this->link_target .
"&namespace_rowids=", $act->getTarget());
70 $this->assertFalse($this->link_action->isAsync());
71 $this->assertTrue($this->signal_action->isAsync());
72 $this->assertIsString($this->signal_action->getURLBuilderJS());
73 $this->assertIsString($this->signal_action->getURLBuilderTokensJS());
78 $act = $this->signal_action->withSignalTarget($this->signal_target);
79 $this->assertEquals($this->signal_target, $act->getTarget());
84 $this->expectException(\TypeError::class);
86 $act =
$f->standard(
'',
'',
'');
91 $act = $this->link_action->withRowId(
'test-id');
93 'ref_id=1&namespace_rowids[]=test-id',
94 urldecode($act->getTarget()->getQuery())
Implementation Standard $signal_action
Basic Tests for Table-Actions.
Implementation Standard $link_action
testDataTableActionRowIdOnURI()
testDataTableActionStringTarget()
testDataTableActionSignalTarget()
testDataTableActionAttributes()