File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ public function getWidgetsArray($filters = [])
277
277
*/
278
278
public function getWidgetDeclaration ($ type , $ params = [], $ asIs = true )
279
279
{
280
- $ directive = '{{widget type=" ' . preg_quote ( $ type) . '" ' ;
280
+ $ directive = '{{widget type=" ' . $ type . '" ' ;
281
281
282
282
foreach ($ params as $ name => $ value ) {
283
283
// Retrieve default option value if pre-configured
Original file line number Diff line number Diff line change @@ -75,14 +75,6 @@ public function testGetWidgetByClassType()
75
75
$ this ->assertNull ($ this ->widget ->getWidgetByClassType ('type2 ' ));
76
76
}
77
77
78
- public function testGetWidgetDeclarationTypeWithBackslashes ()
79
- {
80
- $ this ->assertContains (
81
- 'Magento \\\\Widget \\\\Backslashed \\\\ClassName ' ,
82
- $ this ->widget ->getWidgetDeclaration ('Magento\Widget\Backslashed\ClassName ' )
83
- );
84
- }
85
-
86
78
public function testGetConfigAsObject ()
87
79
{
88
80
$ configFile = __DIR__ . '/_files/mappedConfigArrayAll.php ' ;
You can’t perform that action at this time.
0 commit comments