We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0081368 commit c55bf60Copy full SHA for c55bf60
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductViewTest.php
@@ -292,11 +292,8 @@ public function testQueryAllFieldsSimpleProduct()
292
'Filter category',
293
$responseObject->getData('products/items/0/categories/1/name')
294
);
295
- $storeManager = ObjectManager::getInstance()->get(\Magento\Store\Model\StoreManagerInterface::class);
296
- self::assertEquals(
297
- $storeManager->getStore()->getBaseUrl() . 'simple-product.html',
298
- $responseObject->getData('products/items/0/canonical_url')
299
- );
+ //canonical_url will be null unless the admin setting catalog/seo/product_canonical_tag is turned ON
+ self::assertNull($responseObject->getData('products/items/0/canonical_url'));
300
}
301
302
/**
0 commit comments