21 private $accountConfirmation;
35 $this->scopeConfig = $this->createMock(ScopeConfigInterface::class);
36 $this->registry = $this->createMock(Registry::class);
55 $skipConfirmationIfEmail,
56 $isConfirmationEnabled,
61 $this->scopeConfig->expects($this->any())
64 $this->accountConfirmation::XML_PATH_IS_CONFIRM,
65 ScopeInterface::SCOPE_WEBSITES,
67 )->willReturn($isConfirmationEnabled);
69 $this->registry->expects($this->any())
71 ->with(
'skip_confirmation_if_email')
72 ->willReturn($skipConfirmationIfEmail);
dataProviderIsConfirmationRequired()
testIsConfirmationRequired( $customerId, $customerEmail, $skipConfirmationIfEmail, $isConfirmationEnabled, $expected)