6 declare(strict_types=1);
11 use Magento\Captcha\Model\ResourceModel\LogFactory;
13 use Magento\Customer\Model\CustomerFactory;
27 private $objectManager;
37 public function testSuccesfulLoginRemovesFailedAttempts()
41 $captchaLogFactory = $this->objectManager->get(LogFactory::class);
42 $eventManager = $this->objectManager->get(ManagerInterface::class);
48 $eventManager->dispatch(
49 'customer_customer_authenticated',
50 [
'model' =>
$customer,
'password' =>
'some_password']
static getObjectManager()