@@ -60,8 +60,12 @@ protected function setUp()
60
60
* @return void
61
61
* @dataProvider afterCreateActiveDataProvider
62
62
*/
63
- public function testAfterCreateActive ($ debugHintsPath , $ showBlockHints )
64
- {
63
+ public function testAfterCreateActive (
64
+ $ debugHintsPath ,
65
+ $ showBlockHints ,
66
+ $ debugHintsShowWithParameter ,
67
+ $ debugHintsParameter
68
+ ) {
65
69
$ this ->devHelperMock ->expects ($ this ->once ())
66
70
->method ('isDevAllowed ' )
67
71
->willReturn (true );
@@ -88,12 +92,17 @@ public function testAfterCreateActive($debugHintsPath, $showBlockHints)
88
92
->disableOriginalConstructor ()
89
93
->getMock ();
90
94
95
+ $ this ->httpMock = $ this ->createMock (\Magento \Framework \App \Request \Http::class);
96
+
91
97
$ debugHints = new DebugHints (
92
98
$ this ->scopeConfigMock ,
93
99
$ this ->storeManager ,
94
100
$ this ->devHelperMock ,
95
101
$ this ->debugHintsFactory ,
96
- $ debugHintsPath
102
+ $ debugHintsPath ,
103
+ $ this ->httpMock ,
104
+ $ debugHintsShowWithParameter ,
105
+ $ debugHintsParameter
97
106
);
98
107
99
108
$ this ->assertEquals ($ debugHintsDecorator , $ debugHints ->afterCreate ($ subjectMock , $ engine ));
@@ -105,10 +114,10 @@ public function testAfterCreateActive($debugHintsPath, $showBlockHints)
105
114
public function afterCreateActiveDataProvider ()
106
115
{
107
116
return [
108
- ['dev/debug/template_hints_storefront ' , false ],
109
- ['dev/debug/template_hints_storefront ' , true ],
110
- ['dev/debug/template_hints_admin ' , false ],
111
- ['dev/debug/template_hints_admin ' , true ],
117
+ ['dev/debug/template_hints_storefront ' , false , false , null ],
118
+ ['dev/debug/template_hints_storefront ' , true , false , null ],
119
+ ['dev/debug/template_hints_admin ' , false , false , null ],
120
+ ['dev/debug/template_hints_admin ' , true , false , null ],
112
121
];
113
122
}
114
123
@@ -119,8 +128,13 @@ public function afterCreateActiveDataProvider()
119
128
* @return void
120
129
* @dataProvider afterCreateInactiveDataProvider
121
130
*/
122
- public function testAfterCreateInactive ($ debugHintsPath , $ isDevAllowed , $ showTemplateHints )
123
- {
131
+ public function testAfterCreateInactive (
132
+ $ debugHintsPath ,
133
+ $ isDevAllowed ,
134
+ $ showTemplateHints ,
135
+ $ debugHintsShowWithParameter ,
136
+ $ debugHintsParameter
137
+ ) {
124
138
$ this ->devHelperMock ->expects ($ this ->any ())
125
139
->method ('isDevAllowed ' )
126
140
->willReturn ($ isDevAllowed );
@@ -133,12 +147,17 @@ public function testAfterCreateInactive($debugHintsPath, $isDevAllowed, $showTem
133
147
->disableOriginalConstructor ()
134
148
->getMock ();
135
149
150
+ $ this ->httpMock = $ this ->createMock (\Magento \Framework \App \Request \Http::class);
151
+
136
152
$ debugHints = new DebugHints (
137
153
$ this ->scopeConfigMock ,
138
154
$ this ->storeManager ,
139
155
$ this ->devHelperMock ,
140
156
$ this ->debugHintsFactory ,
141
- $ debugHintsPath
157
+ $ debugHintsPath ,
158
+ $ this ->httpMock ,
159
+ $ debugHintsShowWithParameter ,
160
+ $ debugHintsParameter
142
161
);
143
162
144
163
$ this ->assertSame ($ engine , $ debugHints ->afterCreate ($ subjectMock , $ engine ));
@@ -150,12 +169,12 @@ public function testAfterCreateInactive($debugHintsPath, $isDevAllowed, $showTem
150
169
public function afterCreateInactiveDataProvider ()
151
170
{
152
171
return [
153
- ['dev/debug/template_hints_storefront ' , false , false ],
154
- ['dev/debug/template_hints_storefront ' , false , true ],
155
- ['dev/debug/template_hints_storefront ' , true , false ],
156
- ['dev/debug/template_hints_admin ' , false , false ],
157
- ['dev/debug/template_hints_admin ' , false , true ],
158
- ['dev/debug/template_hints_admin ' , true , false ],
172
+ ['dev/debug/template_hints_storefront ' , false , false , false , null ],
173
+ ['dev/debug/template_hints_storefront ' , false , true , false , null ],
174
+ ['dev/debug/template_hints_storefront ' , true , false , false , null ],
175
+ ['dev/debug/template_hints_admin ' , false , false , false , null ],
176
+ ['dev/debug/template_hints_admin ' , false , true , false , null ],
177
+ ['dev/debug/template_hints_admin ' , true , false , false , null ],
159
178
];
160
179
}
161
180
0 commit comments