Skip to content

Commit fef7ae6

Browse files
committed
DEVOPS-2174: Fix integration tests
1 parent 54076cc commit fef7ae6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/GroupManagementTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,21 @@ public function testGetDefaultGroupWithStoreId($testGroup, $storeId)
4242
}
4343

4444
/**
45-
* @magentoDataFixture Magento/Store/_files/core_second_third_fixturestore.php
45+
* @magentoDataFixture Magento/Store/_files/core_fixturestore.php
4646
*/
4747
public function testGetDefaultGroupWithNonDefaultStoreId()
4848
{
49-
$this->objectManager->removeSharedInstance('Magento\TestFramework\App\Config');
50-
$this->objectManager->removeSharedInstance('Magento\Framework\App\Config\ScopeConfigInterface');
51-
5249
/** @var \Magento\Store\Model\StoreManagerInterface $storeManager */
5350
$storeManager = Bootstrap::getObjectManager()->get('Magento\Store\Model\StoreManagerInterface');
54-
$nonDefaultStore = $storeManager->getStore('secondstore');
51+
$nonDefaultStore = $storeManager->getStore('fixturestore');
5552
$nonDefaultStoreId = $nonDefaultStore->getId();
5653
/** @var \Magento\Framework\App\MutableScopeConfig $scopeConfig */
5754
$scopeConfig = $this->objectManager->get('Magento\Framework\App\MutableScopeConfig');
5855
$scopeConfig->setValue(
5956
\Magento\Customer\Model\GroupManagement::XML_PATH_DEFAULT_ID,
6057
2,
6158
ScopeInterface::SCOPE_STORE,
62-
'secondstore'
59+
'fixturestore'
6360
);
6461
$testGroup = ['id' => 2, 'code' => 'Wholesale', 'tax_class_id' => 3, 'tax_class_name' => 'Retail Customer'];
6562
$this->assertDefaultGroupMatches($testGroup, $nonDefaultStoreId);

0 commit comments

Comments
 (0)