diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 8ea523d18b..7dd7b3e996 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -3235,7 +3235,10 @@ public function help($text) } $ret = ''; - $ret .= ''; + // $ret .= ''; + + $ret .= $this->tp->toGlyph('far-question-circle', ['class'=>'admin-ui-help-tip', 'placeholder'=>'']); + $ret .= ''; // display:none to prevent visibility during page load. return $ret; diff --git a/e107_tests/tests/unit/e107Test.php b/e107_tests/tests/unit/e107Test.php index 3efcee2e0d..ede78cdf94 100644 --- a/e107_tests/tests/unit/e107Test.php +++ b/e107_tests/tests/unit/e107Test.php @@ -1562,7 +1562,7 @@ public function testUrl() echo $result . "\n"; continue; } - $this->assertEquals($var['_expected_'], $result); + self::assertEquals($var['_expected_'], $result, 'Failed on test #'.$index); // $this->assertEquals("https://localhost/e107/news", $result); } diff --git a/e107_tests/tests/unit/e_formTest.php b/e107_tests/tests/unit/e_formTest.php index 685c5e935c..c85b09aa92 100644 --- a/e107_tests/tests/unit/e_formTest.php +++ b/e107_tests/tests/unit/e_formTest.php @@ -288,7 +288,7 @@ public function testGetCountry() public function testHelp() { $result = $this->_frm->help('my tip'); - $this->assertSame('', $result); + self::assertSame("
my tip
", $result); } /* public function testGetRequiredString() @@ -435,9 +435,9 @@ public function testDatepicker() $this->assertEquals($expected, $actual); // test timezone change... - date_default_timezone_set('America/Los_Angeles'); + date_default_timezone_set('America/Phoenix'); $actual = $this->_frm->datepicker('date_field',$time,'type=datetime&format=MM, dd, yyyy hh:ii'); - $expected = ""; + $expected = ""; $this->assertEquals($expected, $actual); date_default_timezone_set($prevTimeZone); @@ -1108,7 +1108,7 @@ public function testRenderInline() */ public function testRenderValue() { - date_default_timezone_set('America/Los_Angeles'); + date_default_timezone_set('America/Phoenix'); $frm = $this->_frm; @@ -1144,7 +1144,7 @@ public function testRenderValue() 'file_001' => '{e_MEDIA_FILE}test.zip', 'files_001' => '
  1. {e_MEDIA_FILE}test.zip
', - 'datestamp_001' => '03 Nov 2023 : 13:47', + 'datestamp_001' => '03 Nov 2023 : 14:47', 'date_001' => '2018-08-23', 'userclass_001' => 'Everyone (public)', 'userclasses_001' => 'Everyone (public)
PRIVATEMENU',