3 declare(strict_types=1);
23 require_once(__DIR__ .
'/ModalBase.php');
35 $this->assertEquals(
true, $modal->getCloseWithKeyboard());
36 $modal = $modal->withCloseWithKeyboard(
false);
37 $this->assertEquals(
false, $modal->getCloseWithKeyboard());
42 $modal = $this->
getModal()->withAsyncRenderUrl(
'/fake/async/url');
43 $this->assertEquals(
'/fake/async/url', $modal->getAsyncRenderUrl());
49 $show = $modal->getShowSignal();
50 $close = $modal->getCloseSignal();
51 $this->assertEquals(
'signal_1',
"$show");
52 $this->assertEquals(
'signal_2',
"$close");
53 $modal2 = $modal->withAsyncRenderUrl(
'blub');
54 $show = $modal2->getShowSignal();
55 $close = $modal2->getCloseSignal();
56 $this->assertEquals(
'signal_1',
"$show");
57 $this->assertEquals(
'signal_2',
"$close");
63 $modal2 = $modal->withResetSignals();
64 $show = $modal2->getShowSignal();
65 $close = $modal2->getCloseSignal();
66 $this->assertEquals(
'signal_3',
"$show");
67 $this->assertEquals(
'signal_4',
"$close");
test_with_reset_signals()
Tests on abstract base class for modals.
test_with_close_with_keyboard()
Base class for modal tests.
test_with_async_rendered_url()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...