Skip to content

Commit 7c0b846

Browse files
author
Mohan Ahuja
committed
ACP2E-356: Cannot create a new customer from Admin if Customer Sharing setting is set to Global
- Fixing unit test issues.
1 parent b48caa0 commit 7c0b846

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Customer/Test/Unit/ViewModel/Customer/WebsiteTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ protected function setUp(): void
5656
$storeMock1 = $this->createPartialMock(Store::class, ['getId']);
5757
$storeMock2 = $this->createPartialMock(Store::class, ['getId']);
5858

59-
$websiteMock1->method('getId')->willReturn(1);
59+
$storeMock1->method('getId')->willReturn('1');
60+
$websiteMock1->method('getId')->willReturn('1');
6061
$websiteMock1->method('getDefaultStore')->willReturn($storeMock1);
61-
$storeMock1->method('getId')->willReturn(1);
6262

63-
$websiteMock2->method('getId')->willReturn(2);
63+
$storeMock2->method('getId')->willReturn('2');
64+
$websiteMock2->method('getId')->willReturn('2');
6465
$websiteMock2->method('getDefaultStore')->willReturn($storeMock2);
65-
$storeMock2->method('getId')->willReturn(2);
6666

6767
$this->systemStore->method('getWebsiteCollection')->willReturn([$websiteMock1, $websiteMock2]);
6868
}

0 commit comments

Comments
 (0)