File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoriesQuery Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,9 @@ public function testMinimumMatchQueryLength()
395
395
* Test category image full name is returned
396
396
*
397
397
* @magentoApiDataFixture Magento/Catalog/_files/catalog_category_with_long_image_name.php
398
+ * @magentoConfigFixture default_store web/seo/use_rewrites 0
398
399
*/
399
- public function testCategoryImageName ()
400
+ public function testCategoryImageNameAndSeoDisabled ()
400
401
{
401
402
/** @var CategoryCollection $categoryCollection */
402
403
$ categoryCollection = Bootstrap::getObjectManager ()->get (CategoryCollection::class);
@@ -427,14 +428,13 @@ public function testCategoryImageName()
427
428
$ categories = $ response ['categories ' ];
428
429
$ this ->assertArrayNotHasKey ('errors ' , $ response );
429
430
$ this ->assertNotEmpty ($ response ['categories ' ]['items ' ]);
430
- $ expectedImageUrl = str_replace ('index.php/ ' , '' , $ expectedImageUrl );
431
- $ categories ['items ' ][0 ]['image ' ] = str_replace ('index.php/ ' , '' , $ categories ['items ' ][0 ]['image ' ]);
432
431
$ this ->assertEquals ('Parent Image Category ' , $ categories ['items ' ][0 ]['name ' ]);
433
432
$ this ->assertEquals ($ expectedImageUrl , $ categories ['items ' ][0 ]['image ' ]);
434
433
}
435
434
436
435
/**
437
436
* @magentoApiDataFixture Magento/Catalog/_files/categories.php
437
+ * @magentoConfigFixture default_store web/seo/use_rewrites 1
438
438
*/
439
439
public function testFilterByUrlPathTopLevelCategory ()
440
440
{
You can’t perform that action at this time.
0 commit comments