Skip to content

Commit 4c50949

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
*/
2727
class IsAllowedGuestCheckoutObserverTest extends TestCase
2828
{
29+
private const XML_PATH_DISABLE_GUEST_CHECKOUT = 'catalog/downloadable/disable_guest_checkout';
30+
2931
/** @var IsAllowedGuestCheckoutObserver */
3032
private $isAllowedGuestCheckoutObserver;
3133

@@ -149,7 +151,7 @@ public function testIsAllowedGuestCheckoutConfigSetToTrue($productType, $isAllow
149151
$this->scopeConfigMock->expects($this->any())
150152
->method('isSetFlag')
151153
->with(
152-
IsAllowedGuestCheckoutObserver::XML_PATH_DISABLE_GUEST_CHECKOUT,
154+
self::XML_PATH_DISABLE_GUEST_CHECKOUT,
153155
ScopeInterface::SCOPE_STORE,
154156
$this->storeMock
155157
)
@@ -222,7 +224,7 @@ public function testIsAllowedGuestCheckoutConfigSetToFalse(): void
222224
$this->scopeConfigMock->expects($this->once())
223225
->method('isSetFlag')
224226
->with(
225-
IsAllowedGuestCheckoutObserver::XML_PATH_DISABLE_GUEST_CHECKOUT,
227+
self::XML_PATH_DISABLE_GUEST_CHECKOUT,
226228
ScopeInterface::SCOPE_STORE,
227229
$this->storeMock
228230
)

0 commit comments

Comments
 (0)