1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-01 17:57:56 +02:00

Update help tooltip unit test so it passes

Changed in 5842e51f15
This commit is contained in:
Moc 2021-02-10 19:27:24 +01:00
parent a1faa5d08b
commit 853cd70b88
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2

@ -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);