Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
User
Test
TestCase
LockAdminUserEntityTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Test\TestCase
;
8
9
use
Magento\Backend\Test\Page\AdminAuthLogin
;
10
use
Magento\Config\Test\Fixture\ConfigData
;
11
use Magento\Mtf\Fixture\FixtureFactory;
12
use Magento\Mtf\TestCase\Injectable;
13
use
Magento\User\Test\Constraint\AssertUserFailedLoginMessage
;
14
use
Magento\User\Test\Fixture\User
;
15
31
class
LockAdminUserEntityTest
extends
Injectable
32
{
33
/* tags */
34
const
MVP
=
'no'
;
35
/* end tags */
36
49
public
function
testUpdateAdminUser(
50
ConfigData
$config
,
51
User $customAdmin,
52
$incorrectPassword,
53
$attempts,
54
AdminAuthLogin
$adminAuth,
55
FixtureFactory $fixtureFactory,
56
AssertUserFailedLoginMessage
$assertUserFailedLoginMessage
57
) {
58
// Preconditions
59
$config
->persist();
60
$customAdmin->persist();
62
$incorrectUser = $fixtureFactory->createByCode(
63
'user'
,
64
[
'data'
=> [
'username'
=> $customAdmin->getUsername(),
'password'
=> $incorrectPassword]]
65
);
66
67
// Steps and assertions
68
for
(
$i
= 0;
$i
< $attempts;
$i
++) {
69
$assertUserFailedLoginMessage->
processAssert
($adminAuth, $incorrectUser);
70
}
71
}
72
}
Magento\User\Test\TestCase
Definition:
CreateAdminUserEntityTest.php:7
$config
$config
Definition:
fraud_order.php:17
Magento\User\Test\TestCase\LockAdminUserEntityTest\MVP
const MVP
Definition:
LockAdminUserEntityTest.php:34
Magento\Config\Test\Fixture\ConfigData
Definition:
Section.php:7
Magento\User\Test\TestCase\LockAdminUserEntityTest
Definition:
LockAdminUserEntityTest.php:31
Magento\User\Test\Constraint\AssertUserFailedLoginMessage\processAssert
processAssert(AdminAuthLogin $adminAuth, User $customAdmin)
Definition:
AssertUserFailedLoginMessage.php:28
Magento\Backend\Test\Page\AdminAuthLogin
Definition:
AdminAuthLogin.php:15
Magento\User\Test\Constraint\AssertUserFailedLoginMessage
Definition:
AssertUserFailedLoginMessage.php:16
Magento\User\Test\Fixture\User
Definition:
CurrentPassword.php:7
$i
$i
Definition:
gallery.phtml:31
Magento\Framework\Config\Data
Definition:
ConfigData.php:7