3 use \ILIAS\UI\Implementation as
I;
5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
21 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Popover\\Standard", $standard);
23 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Popover\\Listing", $listing);
30 $this->assertEquals(Popover::POS_AUTO, $popover->getPosition());
37 $popover2 = $popover1->withVerticalPosition();
38 $popover3 = $popover2->withHorizontalPosition();
39 $this->assertEquals(Popover::POS_AUTO, $popover1->getPosition());
40 $this->assertEquals(Popover::POS_VERTICAL, $popover2->getPosition());
41 $this->assertEquals(Popover::POS_HORIZONTAL, $popover3->getPosition());
42 $this->assertEquals($popover1->getContent(), $popover2->getContent());
43 $this->assertEquals($popover1->getContent(), $popover3->getContent());
52 $this->assertEquals($expected, $actual);
58 $this->assertTrue(
true);
64 $popover =
$factory->standard(
new I\
Component\Legacy\Legacy(
'myContent'))->withAsyncContentUrl(
'/blub/');
74 return '<div class="il-standard-popover-content" style="display:none;" id="id_1">' . $content .
'</div>';
getExpectedStandardHTML($content)
getDefaultRenderer(JavaScriptBinding $js_binding=null)
test_implements_interface()
Provides common functionality for UI tests.
test_that_position_is_auto_by_default()