mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 11:04:18 +02:00
@@ -289,13 +289,13 @@ class e_formTest extends \Codeception\Test\Unit
|
|||||||
$this->assertEmpty($result);
|
$this->assertEmpty($result);
|
||||||
|
|
||||||
$result = $this->_frm->help('my tip', 'after');
|
$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.
|
// display as icon before field only.
|
||||||
$this->_frm->setHelpLocation('before');
|
$this->_frm->setHelpLocation('before');
|
||||||
$result = $this->_frm->help('my tip', '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');
|
$result = $this->_frm->help('my tip', 'after');
|
||||||
$this->assertEmpty($result);
|
$this->assertEmpty($result);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user