mirror of
https://github.com/e107inc/e107.git
synced 2025-05-01 17:57:56 +02:00
parent
a1faa5d08b
commit
853cd70b88
@ -289,13 +289,13 @@ class e_formTest extends \Codeception\Test\Unit
|
||||
$this->assertEmpty($result);
|
||||
|
||||
$result = $this->_frm->help('my tip', 'after');
|
||||
$this->assertSame('<div class="field-help" data-placement="left">my tip</div>', $result);
|
||||
$this->assertSame('<div class="field-help" data-placement="left" style="display:none">my tip</div>', $result);
|
||||
|
||||
|
||||
// display as icon before field only.
|
||||
$this->_frm->setHelpLocation('before');
|
||||
$result = $this->_frm->help('my tip', 'before');
|
||||
$this->assertSame('<i class="admin-ui-help-tip far fa-question-circle"><!-- --></i><div class="field-help" data-placement="left">my tip</div>', $result);
|
||||
$this->assertSame('<i class="admin-ui-help-tip far fa-question-circle"><!-- --></i><div class="field-help" data-placement="left" style="display:none">my tip</div>', $result);
|
||||
$result = $this->_frm->help('my tip', 'after');
|
||||
$this->assertEmpty($result);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user