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()
395395 * Test category image full name is returned
396396 *
397397 * @magentoApiDataFixture Magento/Catalog/_files/catalog_category_with_long_image_name.php
398+ * @magentoConfigFixture default_store web/seo/use_rewrites 0
398399 */
399- public function testCategoryImageName ()
400+ public function testCategoryImageNameAndSeoDisabled ()
400401 {
401402 /** @var CategoryCollection $categoryCollection */
402403 $ categoryCollection = Bootstrap::getObjectManager ()->get (CategoryCollection::class);
@@ -427,14 +428,13 @@ public function testCategoryImageName()
427428 $ categories = $ response ['categories ' ];
428429 $ this ->assertArrayNotHasKey ('errors ' , $ response );
429430 $ 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 ' ]);
432431 $ this ->assertEquals ('Parent Image Category ' , $ categories ['items ' ][0 ]['name ' ]);
433432 $ this ->assertEquals ($ expectedImageUrl , $ categories ['items ' ][0 ]['image ' ]);
434433 }
435434
436435 /**
437436 * @magentoApiDataFixture Magento/Catalog/_files/categories.php
437+ * @magentoConfigFixture default_store web/seo/use_rewrites 1
438438 */
439439 public function testFilterByUrlPathTopLevelCategory ()
440440 {
You can’t perform that action at this time.
0 commit comments