Skip to content

Commit 08e3875

Browse files
authored
#23972 fixed disabled guest checkout issue
Fix unit tests
1 parent 938a68c commit 08e3875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Downloadable/Test/Unit/Observer/IsAllowedGuestCheckoutObserverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllow
149149
$this->scopeConfigMock->expects($this->any())
150150
->method('isSetFlag')
151151
->with(
152-
'catalog/downloadable/disable_guest_checkout',
152+
IsAllowedGuestCheckoutObserver::XML_PATH_DISABLE_GUEST_CHECKOUT,
153153
ScopeInterface::SCOPE_STORE,
154154
$this->storeMock
155155
)
@@ -222,7 +222,7 @@ public function testIsAllowedGuestCheckoutConfigSetToFalse(): void
222222
$this->scopeConfigMock->expects($this->once())
223223
->method('isSetFlag')
224224
->with(
225-
'catalog/downloadable/disable_guest_checkout',
225+
IsAllowedGuestCheckoutObserver::XML_PATH_DISABLE_GUEST_CHECKOUT,
226226
ScopeInterface::SCOPE_STORE,
227227
$this->storeMock
228228
)

0 commit comments

Comments
 (0)