Skip to content

Commit 5a929e6

Browse files
committed
Merge pull request #95 from matej21/test/component_link_syntax
tests: added test for the alternative component signal syntax
2 parents 439c03a + 5063fa0 commit 5a929e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Application/Presenter.link().phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ class TestPresenter extends Application\UI\Presenter
144144
Assert::same('/index.php?mycontrol-x=1&mycontrol-round=1&action=default&presenter=Test', $this['mycontrol']->link('this?x=1&round=1'));
145145
Assert::same('/index.php?mycontrol-x=1&mycontrol-round=1&action=default&presenter=Test#frag', $this['mycontrol']->link('this?x=1&round=1#frag'));
146146
Assert::same('http://localhost/index.php?mycontrol-x=1&mycontrol-round=1&action=default&presenter=Test#frag', $this['mycontrol']->link('//this?x=1&round=1#frag'));
147+
Assert::same('/index.php?mycontrol-x=1&mycontrol-y=2&action=default&do=mycontrol-click&presenter=Test', $this->link('mycontrol:click!', ['x' => 1, 'y' => 2, 'round' => 0]));
147148

148149
// Component link type checking
149150
Assert::same("#error: Value passed to persistent parameter 'order' in component 'mycontrol' must be array, integer given.", $this['mycontrol']->link('click', ['order' => 1]));

0 commit comments

Comments
 (0)