3 require_once(__DIR__ .
'/ModalBase.php');
5 use \ILIAS\UI\Component as
C;
17 $this->assertEquals(
true, $modal->getCloseWithKeyboard());
18 $modal = $modal->withCloseWithKeyboard(
false);
19 $this->assertEquals(
false, $modal->getCloseWithKeyboard());
24 $modal = $this->
getModal()->withAsyncRenderUrl(
'/fake/async/url');
25 $this->assertEquals(
'/fake/async/url', $modal->getAsyncRenderUrl());
31 $show = $modal->getShowSignal();
32 $close = $modal->getCloseSignal();
33 $this->assertEquals(
'signal_1',
"$show");
34 $this->assertEquals(
'signal_2',
"$close");
35 $modal2 = $modal->withAsyncRenderUrl(
'blub');
36 $show = $modal2->getShowSignal();
37 $close = $modal2->getCloseSignal();
38 $this->assertEquals(
'signal_1',
"$show");
39 $this->assertEquals(
'signal_2',
"$close");
45 $modal2 = $modal->withResetSignals();
46 $show = $modal2->getShowSignal();
47 $close = $modal2->getCloseSignal();
48 $this->assertEquals(
'signal_3',
"$show");
49 $this->assertEquals(
'signal_4',
"$close");
test_with_reset_signals()
Tests on abstract base class for modals.
test_with_close_with_keyboard()
getCanonicalName()
Get the canonical name of the component.
Base class for modal tests.
test_with_async_rendered_url()