Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testResetPasswordSuccess () | |
testResetPasswordWithPost () | |
testResetPasswordMinTimeError () | |
testResetPasswordLimitError () | |
testResetPasswordWithSecurityViolationException () | |
![]() | |
assertSessionMessages (\PHPUnit\Framework\Constraint\Constraint $constraint, $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class) | |
testAclHasAccess () | |
testAclNoAccess () | |
![]() | |
getRequest () | |
getResponse () | |
assert404NotFound () | |
assertHeaderPcre ($headerName, $valueRegex) | |
assertRedirect (\PHPUnit\Framework\Constraint\Constraint $urlConstraint=null) | |
Protected Attributes | |
$baseControllerUrl = 'http://localhost/index.php/backend/customer/index/' | |
![]() | |
$_session | |
$_auth | |
$resource = null | |
$uri = null | |
$httpMethod | |
![]() | |
$_runCode = '' | |
$_runScope = 'store' | |
$_runOptions = [] | |
$_request | |
$_response | |
$_objectManager | |
$_assertSessionErrors = false | |
Additional Inherited Members | |
![]() | |
setUp () | |
_getAdminCredentials () | |
tearDown () | |
![]() | |
_getBootstrap () | |
setUp () | |
tearDown () | |
assertPostConditions () | |
getMessages ( $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class) | |
ResetPassword controller test.
@magentoAppArea adminhtml
Definition at line 15 of file ResetPasswordTest.php.
testResetPasswordLimitError | ( | ) |
Checks reset password functionality with default restrictive limited number password reset requests and customer reset request event. Admin is not affected by this security check, so reset password email must be sent.
@magentoConfigFixture current_store customer/password/max_number_password_reset_requests 1 @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0 @magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 95 of file ResetPasswordTest.php.
testResetPasswordMinTimeError | ( | ) |
Checks reset password functionality with default restrictive min time between password reset requests and customer reset request event. Admin is not affected by this security check, so reset password email must be sent.
@magentoConfigFixture current_store customer/password/max_number_password_reset_requests 0 @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 10 @magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 72 of file ResetPasswordTest.php.
testResetPasswordSuccess | ( | ) |
Checks reset password functionality with no restrictive settings and customer reset request event. Admin is not affected by this security check, so reset password email must be sent.
@magentoConfigFixture current_store customer/password/limit_password_reset_requests_method 0 @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0 @magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 32 of file ResetPasswordTest.php.
testResetPasswordWithPost | ( | ) |
Checks reset password functionality cannot be performed with POST request
@magentoConfigFixture current_store customer/password/limit_password_reset_requests_method 0 @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0 @magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 53 of file ResetPasswordTest.php.
testResetPasswordWithSecurityViolationException | ( | ) |
Checks reset password functionality with default settings, customer and admin reset request events.
@magentoConfigFixture current_store customer/password/limit_password_reset_requests_method 1 @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 10 @magentoConfigFixture current_store contact/email/recipient_email hello @magentoDataFixture @exa mple. comMagento/Customer/_files/customer.php
Definition at line 117 of file ResetPasswordTest.php.
|
protected |
Definition at line 22 of file ResetPasswordTest.php.