diff --git a/administrator/components/com_media/views/imageslist/tmpl/default.php b/administrator/components/com_media/views/imageslist/tmpl/default.php index 3c57623633fab..87b35908186ee 100644 --- a/administrator/components/com_media/views/imageslist/tmpl/default.php +++ b/administrator/components/com_media/views/imageslist/tmpl/default.php @@ -48,7 +48,7 @@ } ?> images) > 0 || count($this->folders) > 0) : ?> -
tags - "Joe_fontsize8", + // This is out expected output - note the comment in above for the reason it doesnt have the surrounding
tags + "Joe_fontsize8", - "
JLIB_HTML_CLOAKING
- " - ), + " + ), - # 3 - array( - '', + # 3 + array( + '', - 'Joe_subject_ fontsize13', + 'Joe_subject_ fontsize13', - " -JLIB_HTML_CLOAKING
- " - ), + " + ), // [ @@ -209,134 +209,134 @@ public function dataTestOnContentPrepare() // 'email@example.org', // 'email@example.org' // ], - ); - } - - /** - * Tests PlgContentEmailcloakTest::_cloak() - * - * @param string $input The text to test. - * @param string $expected The expectation of the filtering. - * - * @return void - * - * @dataProvider dataTestOnContentPrepare - * @since 3.6.2 - */ - public function testOnContentPrepareWithRowNoFinder($input, $expectedHTML = NULL, $expectedJs) - { - $row = new \stdClass; - $row->text = $input; - $params = new JRegistry; - - // assert we have the correct event - $this->assertInstanceOf('PlgContentEmailcloak', $this->class); - - // assert that we are getting a clean process - $res = $this->class->onContentPrepare('com_content.article', $row, $params); - $this->assertEquals(1, $res); - - - // Get the md5 hash - preg_match("/addy_text([0-9a-z]{32})/", $row->text, $output_array); - - // If we did some cloaking then test the JS - if (count($output_array)) { - $hash = $output_array[1]; - - // assert the JLIB_HTML_CLOAKING span is intact - $this->assertRegExp('/\JLIB_HTML_CLOAKING\<\/span\>/', $row->text); - $cloakHTML = 'JLIB_HTML_CLOAKING'; - $this->assertContains($cloakHTML, $row->text); - - - if ($expectedJs) { - // need to do this to overcome whitespace comparison issue in phpunit for some reason... - preg_match_all("/\