Skip to content

Commit 50b006e

Browse files
committed
refactor code
1 parent 78ba905 commit 50b006e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Persistent/Test/Unit/CustomerData/PersistentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testGetSectionDataCustomerLoginAndEnablePersistent()
107107
$this->persistentSessionHelperMock->method('getSession')->willReturn($persistentSessionMock);
108108

109109
$customerMock = $this->createMock(CustomerInterface::class);
110-
$this->customerRepositoryMock->method('getById')->with(1)->willReturn($customerMock);
110+
$this->customerRepositoryMock->method('getById')->with(self::STUB_CUSTOMER_ID)->willReturn($customerMock);
111111
$this->customerViewHelperMock->method('getCustomerName')->with($customerMock)
112112
->willReturn(self::STUB_CUSTOMER_NAME);
113113

0 commit comments

Comments
 (0)