File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
app/code/Magento/Authorization/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php declare (strict_types= 1 );
2
2
/**
3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
7
namespace Magento \Authorization \Test \Unit \Model \Acl ;
8
8
9
- use PHPUnit \Framework \TestCase ;
10
- use PHPUnit \Framework \MockObject \MockObject ;
11
- use Magento \Authorization \Model \Rules ;
12
- use Magento \Framework \Acl ;
13
- use Magento \Framework \Acl \Builder ;
14
- use Psr \Log \LoggerInterface ;
15
9
use Magento \Authorization \Model \Acl \AclRetriever ;
16
-
17
10
use Magento \Authorization \Model \ResourceModel \Role \Collection as RoleCollection ;
18
11
use Magento \Authorization \Model \ResourceModel \Role \CollectionFactory as RoleCollectionFactory ;
19
12
use Magento \Authorization \Model \ResourceModel \Rules \Collection as RulesCollection ;
20
13
use Magento \Authorization \Model \ResourceModel \Rules \CollectionFactory as RulesCollectionFactory ;
21
14
use Magento \Authorization \Model \Role ;
15
+ use Magento \Authorization \Model \Rules ;
16
+
22
17
use Magento \Authorization \Model \UserContextInterface ;
18
+ use Magento \Framework \Acl ;
19
+ use Magento \Framework \Acl \Builder ;
20
+ use PHPUnit \Framework \MockObject \MockObject ;
21
+ use PHPUnit \Framework \TestCase ;
22
+ use Psr \Log \LoggerInterface ;
23
23
24
24
/**
25
25
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php declare (strict_types= 1 );
2
2
/**
3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
7
namespace Magento \Authorization \Test \Unit \Model ;
8
8
9
- use PHPUnit \Framework \TestCase ;
10
- use PHPUnit \Framework \MockObject \MockObject ;
11
- use \Magento \Authorization \Model \CompositeUserContext ;
12
-
9
+ use Magento \Authorization \Model \CompositeUserContext ;
13
10
use Magento \Framework \ObjectManager \Helper \Composite as CompositeHelper ;
14
11
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
15
12
13
+ use PHPUnit \Framework \MockObject \MockObject ;
14
+ use PHPUnit \Framework \TestCase ;
15
+
16
16
class CompositeUserContextTest extends TestCase
17
17
{
18
18
/**
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Authorization \Test \Unit \Model \ResourceModel ;
9
9
10
- use Magento \Framework \Exception \LocalizedException ;
11
10
use Magento \Authorization \Model \ResourceModel \Rules ;
12
11
use Magento \Framework \Acl \Builder ;
13
12
use Magento \Framework \Acl \Data \CacheInterface ;
14
13
use Magento \Framework \Acl \RootResource ;
15
14
use Magento \Framework \App \ResourceConnection ;
16
15
use Magento \Framework \DB \Adapter \AdapterInterface ;
16
+ use Magento \Framework \Exception \LocalizedException ;
17
17
use Magento \Framework \Model \ResourceModel \Db \Context ;
18
18
use Magento \Framework \Phrase ;
19
19
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
You can’t perform that action at this time.
0 commit comments