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
CustomAclPermissionTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Test\TestCase
;
8
9
use
Magento\User\Test\Fixture\User
;
10
use Magento\Mtf\TestCase\Injectable;
11
use Magento\Mtf\TestStep\TestStepFactory;
12
23
class
CustomAclPermissionTest
extends
Injectable
24
{
25
/* tags */
26
const
MVP
=
'no'
;
27
/* end tags */
28
34
protected
$testStepFactory
;
35
42
public
function
__inject
(
43
TestStepFactory
$testStepFactory
44
) {
45
$this->testStepFactory =
$testStepFactory
;
46
}
47
54
public
function
test
(User
$user
)
55
{
56
$user
->persist();
57
$this->testStepFactory->create(
58
\
Magento
\User\Test\TestStep\LoginUserOnBackendStep::class,
59
[
'user'
=>
$user
]
60
)->run();
61
}
62
}
Magento\User\Test\TestCase\CustomAclPermissionTest
Definition:
CustomAclPermissionTest.php:23
Magento\User\Test\TestCase
Definition:
CreateAdminUserEntityTest.php:7
Magento\User\Test\TestCase\CustomAclPermissionTest\test
test(User $user)
Definition:
CustomAclPermissionTest.php:54
Magento\User\Test\TestCase\CustomAclPermissionTest\$testStepFactory
$testStepFactory
Definition:
CustomAclPermissionTest.php:34
Magento\User\Test\TestCase\CustomAclPermissionTest\MVP
const MVP
Definition:
CustomAclPermissionTest.php:26
$user
$user
Definition:
dummy_user.php:13
Magento
Magento\User\Test\Fixture\User
Definition:
CurrentPassword.php:7
Magento\User\Test\TestCase\CustomAclPermissionTest\__inject
__inject(TestStepFactory $testStepFactory)
Definition:
CustomAclPermissionTest.php:42