File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
app/code/Magento/Catalog/view/adminhtml/web/js
dev/tests/integration/testsuite/Magento/UrlRewrite/Block/Catalog/Category Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ define([
15
15
element ,
16
16
x ;
17
17
18
- decodeEntities = ( function ( ) {
18
+ // noinspection JSUnusedAssignment
19
+ decodeEntities = function ( ) {
19
20
//create a new html document (doesn't execute script tags in child elements)
20
21
21
22
doc = document . implementation . createHTMLDocument ( '' ) ;
@@ -25,6 +26,7 @@ define([
25
26
* Get Text Content
26
27
* @param {* } str
27
28
* @return {* }
29
+ * @public
28
30
*/
29
31
function getText ( str ) {
30
32
element . innerHTML = str ;
@@ -38,6 +40,7 @@ define([
38
40
* Get HTML decoded Entities
39
41
* @param {* } str
40
42
* @return {* }
43
+ * @public
41
44
*/
42
45
function decodeHTMLEntities ( str ) {
43
46
if ( str && typeof str === 'string' ) {
@@ -53,7 +56,7 @@ define([
53
56
}
54
57
55
58
return decodeHTMLEntities ;
56
- } ) ( ) ;
59
+ } ( decodeEntities || { } ) ;
57
60
58
61
$ . widget ( 'mage.categoryTree' , {
59
62
options : {
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \UrlRewrite \Block \Catalog \Category ;
7
8
8
9
/**
@@ -56,7 +57,10 @@ public function testGetTreeArrayApostropheReplaced()
56
57
$ tree = $ this ->_treeBlock ->getTreeArray ();
57
58
58
59
$ this ->assertNotContains ('\'' , $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]);
59
- $ this ->assertEquals (''Category 6&#039 ' , $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]);
60
+ $ this ->assertEquals (
61
+ ''Category 6' ' ,
62
+ $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]
63
+ );
60
64
}
61
65
62
66
/**
You can’t perform that action at this time.
0 commit comments