Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 6c04a04

Browse files
Correct failing test, use urlModel no more
1 parent 94fb609 commit 6c04a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductViewTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ public function testQueryAllFieldsSimpleProduct()
273273
'Filter category',
274274
$responseObject->getData('products/items/0/categories/2/name')
275275
);
276+
$storeManager = ObjectManager::getInstance()->get(\Magento\Store\Model\StoreManagerInterface::class);
276277
self::assertEquals(
277-
$product->getUrlModel()->getUrl($product, ['_ignore_category' => true, '_nosid' => true]),
278+
$storeManager->getStore()->getBaseUrl() . 'simple-product.html',
278279
$responseObject->getData('products/items/0/canonical_url')
279280
);
280281
}

0 commit comments

Comments
 (0)