Skip to content

Commit ebbf23a

Browse files
committed
added tests for seo disabled
1 parent 87d9368 commit ebbf23a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)