File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,8 @@ protected function tearDown()
84
84
85
85
public function testSendVary ()
86
86
{
87
- $ data = ['some-vary-key ' => 'some-vary-value ' ];
88
87
$ expectedCookieName = Http::COOKIE_VARY_STRING ;
89
- $ expectedCookieValue = sha1 ( serialize ( $ data )) ;
88
+ $ expectedCookieValue = ' SHA1 Serialized String ' ;
90
89
$ sensitiveCookieMetadataMock = $ this ->getMockBuilder (
91
90
\Magento \Framework \Stdlib \Cookie \SensitiveCookieMetadata::class)
92
91
->disableOriginalConstructor ()
Original file line number Diff line number Diff line change @@ -149,9 +149,7 @@ public function varDirectiveDataProvider()
149
149
150
150
$ stub ->expects ($ this ->once ())
151
151
->method ('bar ' )
152
- ->will ($ this ->returnCallback (function ($ arg ) {
153
- return serialize ($ arg );
154
- }));
152
+ ->willReturn ('Mocked Method Return ' );
155
153
156
154
return [
157
155
'no variables ' => [
@@ -177,14 +175,7 @@ public function varDirectiveDataProvider()
177
175
'b ' => 'bee ' ,
178
176
'd ' => 'dee ' ,
179
177
],
180
- serialize ([
181
- 'param_1 ' => 'value_1 ' ,
182
- 'param_2 ' => 'lorem ' ,
183
- 'param_3 ' => [
184
- 'a ' => 'bee ' ,
185
- 'c ' => 'dee ' ,
186
- ],
187
- ]),
178
+ 'Mocked Method Return '
188
179
],
189
180
];
190
181
}
You can’t perform that action at this time.
0 commit comments