We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f14e00 commit 8820171Copy full SHA for 8820171
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/CategoryTest.php
@@ -590,7 +590,13 @@ public function testCategoryImage()
590
$this->assertNotEmpty($response['category']);
591
$category = $response['category'];
592
$storeBaseUrl = $this->objectManager->get(StoreManagerInterface::class)->getStore()->getBaseUrl();
593
- $expectedImageUrl = rtrim($storeBaseUrl, '/') . '/' . ltrim($categoryModel->getImage(), '/');
+ $expectedImageUrl = str_replace(
594
+ 'index.php',
595
+ 'pub/media',
596
+ rtrim($storeBaseUrl, '/')
597
+ )
598
+ . '/'
599
+ . ltrim($categoryModel->getImage(), '/');
600
601
$this->assertEquals($categoryId, $category['id']);
602
$this->assertEquals('Parent Image Category', $category['name']);
0 commit comments