Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CaseCheckUnsuccessfulMessageWhenCaptchaFailedTest.php
Go to the documentation of this file.
1 <?php
7 
14 {
23  {
25  \Magento\Backend\Model\UrlInterface::class
26  )->turnOffSecretKey();
27  $this->getRequest()->setPostValue(['email' => '[email protected]', 'captcha' => '1234']);
28  $this->dispatch('backend/admin/auth/forgotpassword');
29  $this->assertSessionMessages(
30  $this->equalTo(['Incorrect CAPTCHA']),
31  \Magento\Framework\Message\MessageInterface::TYPE_ERROR
32  );
33  }
34 }