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:
@@ -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');
|
||||
|
||||
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user