File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/UrlRewrite Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -326,19 +326,18 @@ public function testResolveSlash()
326
326
{
327
327
/** @var \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfigInterface */
328
328
$ scopeConfigInterface = $ this ->objectManager ->get (ScopeConfigInterface::class);
329
- $ homePageIdentifier = $ scopeConfigInterface ->getValue (PageHelper::XML_PATH_HOME_PAGE , ScopeInterface::SCOPE_STORE );
330
-
329
+ $ homePageIdentifier = $ scopeConfigInterface ->getValue (
330
+ PageHelper::XML_PATH_HOME_PAGE ,
331
+ ScopeInterface::SCOPE_STORE
332
+ );
331
333
/** @var \Magento\Cms\Model\Page $page */
332
334
$ page = $ this ->objectManager ->get (\Magento \Cms \Model \Page::class);
333
335
$ page ->load ($ homePageIdentifier );
334
336
$ homePageId = $ page ->getId ();
335
-
336
337
/** @var \Magento\CmsUrlRewrite\Model\CmsPageUrlPathGenerator $urlPathGenerator */
337
338
$ urlPathGenerator = $ this ->objectManager ->get (\Magento \CmsUrlRewrite \Model \CmsPageUrlPathGenerator::class);
338
-
339
339
/** @param \Magento\Cms\Api\Data\PageInterface $page */
340
340
$ targetPath = $ urlPathGenerator ->getCanonicalUrlPath ($ page );
341
-
342
341
$ query
343
342
= <<<QUERY
344
343
{
@@ -351,7 +350,6 @@ public function testResolveSlash()
351
350
}
352
351
QUERY ;
353
352
$ response = $ this ->graphQlQuery ($ query );
354
-
355
353
$ this ->assertArrayHasKey ('urlResolver ' , $ response );
356
354
$ this ->assertEquals ($ homePageId , $ response ['urlResolver ' ]['id ' ]);
357
355
$ this ->assertEquals ($ targetPath , $ response ['urlResolver ' ]['relative_url ' ]);
You can’t perform that action at this time.
0 commit comments