@@ -638,16 +638,16 @@ public function testCategoryImage(?string $imagePrefix)
638
638
$ categoryList = $ response ['categoryList ' ];
639
639
$ storeBaseUrl = $ this ->objectManager ->get (StoreManagerInterface::class)->getStore ()->getBaseUrl ('media ' );
640
640
$ expectedImageUrl = rtrim ($ storeBaseUrl , '/ ' ) . '/ ' . ltrim ($ categoryModel ->getImage (), '/ ' );
641
- $ expectedImageUrl = str_replace ('index.php ' , '' , $ expectedImageUrl );
641
+ $ expectedImageUrl = str_replace ('index.php/ ' , '' , $ expectedImageUrl );
642
642
643
643
$ this ->assertEquals ($ categoryId , $ categoryList [0 ]['id ' ]);
644
644
$ this ->assertEquals ('Parent Image Category ' , $ categoryList [0 ]['name ' ]);
645
- $ categoryList [0 ]['image ' ] = str_replace ('index.php ' , '' , $ categoryList [0 ]['image ' ]);
645
+ $ categoryList [0 ]['image ' ] = str_replace ('index.php/ ' , '' , $ categoryList [0 ]['image ' ]);
646
646
$ this ->assertEquals ($ expectedImageUrl , $ categoryList [0 ]['image ' ]);
647
647
648
648
$ childCategory = $ categoryList [0 ]['children ' ][0 ];
649
649
$ this ->assertEquals ('Child Image Category ' , $ childCategory ['name ' ]);
650
- $ childCategory ['image ' ] = str_replace ('index.php ' , '' , $ childCategory ['image ' ]);
650
+ $ childCategory ['image ' ] = str_replace ('index.php/ ' , '' , $ childCategory ['image ' ]);
651
651
$ this ->assertEquals ($ expectedImageUrl , $ childCategory ['image ' ]);
652
652
}
653
653
0 commit comments