Skip to content

Commit cd3a8d7

Browse files
committed
ACP2E-860: The attribute values are storing correctly only if it's 'Show Company' property is 'Optional' for 'Main Website' for Multistore
- Added the test coverage.
1 parent f031299 commit cd3a8d7

File tree

1 file changed

+18
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Create

1 file changed

+18
-0
lines changed

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Create/LoadBlockTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,24 @@ public function testUpdateCustomerNote(): void
265265
$this->assertStringContainsString('checked="checked"', $matches['attributes']);
266266
}
267267

268+
/**
269+
* Check that specific store id is setting into the current stores.
270+
*
271+
* @return void
272+
* @magentoDataFixture Magento/Store/_files/second_website_with_store_group_and_store.php
273+
* @magentoAppArea adminhtml
274+
* @magentoDbIsolation disabled
275+
* @magentoAppIsolation enabled
276+
* @throws NoSuchEntityException
277+
*/
278+
public function testSetSpecificStoreIdIntoCurrentStore()
279+
{
280+
$params = [];
281+
$post = ['store_id' => $this->storeManager->getStore('fixture_second_store')->getId()];
282+
$this->dispatchWitParams($params, $post);
283+
$this->assertEquals('fixture_second_store', $this->storeManager->getStore()->getCode());
284+
}
285+
268286
/**
269287
* Check customer quotes
270288
*

0 commit comments

Comments
 (0)