diff --git a/dev/tests/integration/testsuite/Magento/Ui/Component/Listing/Column/Store/OptionsTest.php b/dev/tests/integration/testsuite/Magento/Ui/Component/Listing/Column/Store/OptionsTest.php new file mode 100644 index 0000000000000..71f40caf512ad --- /dev/null +++ b/dev/tests/integration/testsuite/Magento/Ui/Component/Listing/Column/Store/OptionsTest.php @@ -0,0 +1,68 @@ +fixtures = DataFixtureStorageManager::getStorage(); + $this->storesList = $objectManager->get(Options::class); + } + + #[ + DataFixture(StoreFixture::class, ["name" =>"Default's Store"], 'store'), + ] + public function testStoreLabeleWithSingleQuote() + { + $storeName = $this->fixtures->get('store')->getName(); + $storeStructure = $this->storesList->toOptionArray(); + self::assertNotEmpty($storeStructure); + $storeGroups = $storeStructure[0]['value']; + foreach ($storeGroups as $storeGroup) { + $storeViews = $storeGroup['value']; + $storeLabels = array_column($storeViews, 'label'); + $expectedLabel = str_repeat(' ', 8) . $storeName; + self::assertContainsEquals($expectedLabel, $storeLabels); + } + } +}