1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 22:25:31 +02:00

Admin area tool tips simplified to a single location. Pref simplified to Enable/Disable. Fixed flip-switch 'e-expandit' failures in Admin > Prefs.

This commit is contained in:
Cameron
2021-02-12 12:19:58 -08:00
parent b7b2a02509
commit 2bf5ee3909
15 changed files with 147 additions and 263 deletions

View File

@@ -280,32 +280,8 @@ class e_formTest extends \Codeception\Test\Unit
public function testHelp()
{
// disabled
$this->_frm->setHelpLocation('none');
$result = $this->_frm->help('my tip', 'before');
$this->assertEmpty($result);
$result = $this->_frm->help('my tip', 'after');
$this->assertEmpty($result);
// display after only.
$this->_frm->setHelpLocation('after');
$result = $this->_frm->help('my tip', 'before');
$this->assertEmpty($result);
$result = $this->_frm->help('my tip', 'after');
$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');
$result = $this->_frm->help('my tip');
$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);
$this->_frm->setHelpLocation('after');
}
/*