Skip to content

Commit d9de3bd

Browse files
committed
MAGETWO-86325: Create functional tests
- clean up
1 parent 9567e02 commit d9de3bd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/UrlRewrite/UrlResolverTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@ class UrlResolverTest extends GraphQlAbstract
2020
/** @var ObjectManager */
2121
private $objectManager;
2222

23-
/**
24-
* @var \Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator
25-
*/
26-
private $urlPathGenerator;
27-
2823
protected function setUp()
2924
{
3025
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
3126
}
3227

3328
/**
34-
* Tests if the target_path(canonical_url) when a Product entity with a valid url_key (request_path) is provided
29+
* Tests if target_path(canonical_url) is resolved for Product entity
3530
*
3631
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
3732
*/
@@ -74,7 +69,9 @@ public function testProductUrlResolver()
7469
}
7570

7671
/**
77-
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
72+
* Tests the use case where canonical_url is provided as resolver input in the Query
73+
*
74+
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
7875
*/
7976
public function testProductUrlWithCanonicalUrlInput()
8077
{
@@ -117,7 +114,8 @@ public function testProductUrlWithCanonicalUrlInput()
117114
}
118115

119116
/**
120-
*Test the
117+
* Test for category entity
118+
*
121119
* @magentoApiDataFixture Magento/CatalogUrlRewrite/_files/product_with_category.php
122120
*/
123121
public function testCategoryUrlResolver()

0 commit comments

Comments
 (0)