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
327327 public function testViewWithRedirect (): void
328328 {
329329 $ 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 ), ' / ' );
331331 $ this ->getRequest ()
332332 ->setParams ([
333333 ActionInterface::PARAM_NAME_URL_ENCODED => $ this ->urlEncoder ->encode ($ url ),
334334 ])
335335 ->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 ()));
337337 $ this ->assertRedirect ($ this ->stringContains ($ url ));
338338 }
339339
You can’t perform that action at this time.
0 commit comments