@@ -109,7 +109,6 @@ public function testCollectCurrentViewMobileCanUseTablet(): void
109
109
'action ' => RequestResponseListener::REDIRECT ,
110
110
];
111
111
$ this ->request ->query = new ParameterBag (['param1 ' => 'value1 ' ]);
112
- $ this ->request ->expects (static ::any ())->method ('getHost ' )->willReturn ('testsite.com ' );
113
112
$ this ->request ->expects (static ::any ())->method ('getSchemeAndHttpHost ' )->willReturn ('http://t.testsite.com ' );
114
113
$ this ->request ->expects (static ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
115
114
$ this ->request ->expects (static ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
@@ -157,7 +156,8 @@ public function testCollectCurrentViewMobileCanUseTablet(): void
157
156
'http://t.testsite.com/base-url/path-info?%s=%s¶m1=value1 ' ,
158
157
$ deviceView ->getSwitchParam (),
159
158
DeviceView::VIEW_TABLET
160
- ), $ view ['link ' ]
159
+ ),
160
+ $ view ['link ' ]
161
161
);
162
162
}
163
163
}
@@ -172,7 +172,6 @@ public function testCollectCurrentViewFullCanUseMobile(): void
172
172
'action ' => RequestResponseListener::REDIRECT ,
173
173
];
174
174
$ this ->request ->query = new ParameterBag (['param1 ' => 'value1 ' ]);
175
- $ this ->request ->expects (static ::any ())->method ('getHost ' )->willReturn ('testsite.com ' );
176
175
$ this ->request ->expects (static ::any ())->method ('getSchemeAndHttpHost ' )->willReturn ('http://t.testsite.com ' );
177
176
$ this ->request ->expects (static ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
178
177
$ this ->request ->expects (static ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
@@ -220,7 +219,8 @@ public function testCollectCurrentViewFullCanUseMobile(): void
220
219
'http://t.testsite.com/base-url/path-info?%s=%s¶m1=value1 ' ,
221
220
$ deviceView ->getSwitchParam (),
222
221
DeviceView::VIEW_MOBILE
223
- ), $ view ['link ' ]
222
+ ),
223
+ $ view ['link ' ]
224
224
);
225
225
}
226
226
}
@@ -235,8 +235,7 @@ public function testCollectCurrentViewFullCantUseMobile(): void
235
235
'action ' => RequestResponseListener::REDIRECT ,
236
236
];
237
237
$ this ->request ->query = new ParameterBag (['param1 ' => 'value1 ' ]);
238
- $ this ->request ->expects (static ::any ())->method ('getHost ' )->willReturn ('testsite.com ' );
239
- $ this ->request ->expects (static ::any ())->method ('getSchemeAndHttpHost ' )->willReturn ('http://m.testsite.com ' );
238
+ $ this ->request ->expects (static ::any ())->method ('getSchemeAndHttpHost ' )->willReturn ('http://testsite.com ' );
240
239
$ this ->request ->expects (static ::any ())->method ('getBaseUrl ' )->willReturn ('/base-url ' );
241
240
$ this ->request ->expects (static ::any ())->method ('getPathInfo ' )->willReturn ('/path-info ' );
242
241
$ test = $ this ;
@@ -280,10 +279,11 @@ public function testCollectCurrentViewFullCantUseMobile(): void
280
279
static ::assertFalse ($ view ['enabled ' ]);
281
280
static ::assertSame (
282
281
sprintf (
283
- 'http://m. testsite.com/base-url/path-info?%s=%s¶m1=value1 ' ,
282
+ 'http://testsite.com/base-url/path-info?%s=%s¶m1=value1 ' ,
284
283
$ deviceView ->getSwitchParam (),
285
284
DeviceView::VIEW_MOBILE
286
- ), $ view ['link ' ]
285
+ ),
286
+ $ view ['link ' ]
287
287
);
288
288
}
289
289
}
0 commit comments