◆ setUp()
JavaScriptBindableTest::setUp |
( |
| ) |
|
◆ test_withAdditionalOnLoadCode()
JavaScriptBindableTest::test_withAdditionalOnLoadCode |
( |
| ) |
|
Definition at line 55 of file JavaScriptBindableTest.php.
References $id, $m, and ILIAS\UI\Implementation\Component\withAdditionalOnLoadCode().
58 ->withOnLoadCode(
function (
$id) {
59 return "Its me, $id!";
62 return "And again, me: $id.";
65 $binder =
$m->getOnLoadCode();
66 $this->assertInstanceOf(\Closure::class, $binder);
67 $this->assertEquals(
"Its me, Mario!\nAnd again, me: Mario.", $binder(
"Mario"));
if(!array_key_exists('StateId', $_REQUEST)) $id
withAdditionalOnLoadCode(\Closure $binder)
◆ test_withAdditionalOnLoadCode_no_previous()
JavaScriptBindableTest::test_withAdditionalOnLoadCode_no_previous |
( |
| ) |
|
Definition at line 70 of file JavaScriptBindableTest.php.
References $id, and $m.
73 ->withAdditionalOnLoadCode(
function (
$id) {
74 return "And again, me: $id.";
77 $binder =
$m->getOnLoadCode();
78 $this->assertInstanceOf(\Closure::class, $binder);
79 $this->assertEquals(
"And again, me: Mario.", $binder(
"Mario"));
if(!array_key_exists('StateId', $_REQUEST)) $id
◆ test_withOnLoadCode()
JavaScriptBindableTest::test_withOnLoadCode |
( |
| ) |
|
Definition at line 22 of file JavaScriptBindableTest.php.
References $id, and $m.
24 $m = $this->mock->withOnLoadCode(
function (
$id) {
25 return "Its me, $id!";
28 $binder =
$m->getOnLoadCode();
29 $this->assertInstanceOf(\Closure::class, $binder);
30 $this->assertEquals(
"Its me, Mario!", $binder(
"Mario"));
if(!array_key_exists('StateId', $_REQUEST)) $id
◆ test_withOnLoadCode_false_closure_1()
JavaScriptBindableTest::test_withOnLoadCode_false_closure_1 |
( |
| ) |
|
Definition at line 33 of file JavaScriptBindableTest.php.
36 $this->mock->withOnLoadCode(
function () {
38 $this->assertFalse(
"This should not happen...");
40 $this->assertTrue(
true);
◆ test_withOnLoadCode_false_closure_2()
JavaScriptBindableTest::test_withOnLoadCode_false_closure_2 |
( |
| ) |
|
Definition at line 44 of file JavaScriptBindableTest.php.
References $id.
47 $this->mock->withOnLoadCode(
function (
$id, $some_arg) {
49 $this->assertFalse(
"This should not happen...");
51 $this->assertTrue(
true);
if(!array_key_exists('StateId', $_REQUEST)) $id
The documentation for this class was generated from the following file: