File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Product Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,13 @@ public function testViewUnexistedProduct(): void
327
327
public function testViewWithRedirect (): void
328
328
{
329
329
$ product = $ this ->productRepository ->get ('simple2 ' );
330
- $ url = $ this ->config ->getValue (Store::XML_PATH_UNSECURE_BASE_LINK_URL );
330
+ $ url = rtrim ( $ this ->config ->getValue (Store::XML_PATH_UNSECURE_BASE_LINK_URL ), ' / ' );
331
331
$ this ->getRequest ()
332
332
->setParams ([
333
333
ActionInterface::PARAM_NAME_URL_ENCODED => $ this ->urlEncoder ->encode ($ url ),
334
334
])
335
335
->setMethod (HttpRequest::METHOD_POST );
336
- $ this ->dispatch (sprintf ('catalog/product/view/id/%s/ ' , $ product ->getId ()));
336
+ $ this ->dispatch (sprintf ('/ catalog/product/view/id/%s/ ' , $ product ->getId ()));
337
337
$ this ->assertRedirect ($ this ->stringContains ($ url ));
338
338
}
339
339
You can’t perform that action at this time.
0 commit comments