Skip to content

Commit e2387e3

Browse files
committed
Fixed Integration Test
1 parent cdaab3c commit e2387e3

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

dev/tests/integration/testsuite/Magento/Store/Model/StoreTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,13 @@ public function testIsUseStoreInUrl($storeInUrl, $disableStoreInUrl, $singleStor
460460
$params['context'] = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
461461
->create(\Magento\Framework\Model\Context::class, ['appState' => $appStateMock]);
462462

463-
$configMock->expects($this->any())
463+
$configMock
464464
->method('getValue')
465-
->with($this->stringContains(Store::XML_PATH_STORE_IN_URL))
466-
->willReturn($storeInUrl);
467-
468-
$configMock->expects($this->any())
469-
->method('getValue')
470-
->with($this->stringContains(StoreManager::XML_PATH_SINGLE_STORE_MODE_ENABLED))
471-
->willReturn($singleStoreModeEnabled);
465+
->withConsecutive(
466+
[$this->stringContains(StoreManager::XML_PATH_SINGLE_STORE_MODE_ENABLED)],
467+
[$this->stringContains(Store::XML_PATH_STORE_IN_URL)]
468+
)
469+
->willReturnOnConsecutiveCalls($singleStoreModeEnabled, $storeInUrl);
472470

473471
$params['config'] = $configMock;
474472
$model = $objectManager->create(\Magento\Store\Model\Store::class, $params);

0 commit comments

Comments
 (0)