Skip to content

Commit

Permalink
ContextForText simply return url
Browse files Browse the repository at this point in the history
  • Loading branch information
nworr authored and github-actions[bot] committed Dec 2, 2024
1 parent ff1800a commit a7df46b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/units/testslib/ContextForTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ public function createJelixForm($formSel, $formId = null)
{
}

public function getUrl($selector)
public function getUrl($selector, $params = array())
{
// simple url build
$keyWithVal4QueryString = array();
array_walk($params, function($v ,$key) use (&$keyWithVal4QueryString) {$keyWithVal4QueryString[]=$key.'='.$v;});
return $selector.'?'.implode("&", $keyWithVal4QueryString);
}

public function getFullUrl($selector, $params = array())
Expand Down

0 comments on commit a7df46b

Please sign in to comment.