Skip to content

Commit cfc65f5

Browse files
committed
#27500 Code Review adjustments to Authorization module
1 parent 0b2a685 commit cfc65f5

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

app/code/Magento/Authorization/Test/Unit/Model/Acl/AclRetrieverTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

77
namespace Magento\Authorization\Test\Unit\Model\Acl;
88

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;
159
use Magento\Authorization\Model\Acl\AclRetriever;
16-
1710
use Magento\Authorization\Model\ResourceModel\Role\Collection as RoleCollection;
1811
use Magento\Authorization\Model\ResourceModel\Role\CollectionFactory as RoleCollectionFactory;
1912
use Magento\Authorization\Model\ResourceModel\Rules\Collection as RulesCollection;
2013
use Magento\Authorization\Model\ResourceModel\Rules\CollectionFactory as RulesCollectionFactory;
2114
use Magento\Authorization\Model\Role;
15+
use Magento\Authorization\Model\Rules;
16+
2217
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;
2323

2424
/**
2525
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)

app/code/Magento/Authorization/Test/Unit/Model/CompositeUserContextTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<?php
1+
<?php declare(strict_types=1);
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

77
namespace Magento\Authorization\Test\Unit\Model;
88

9-
use PHPUnit\Framework\TestCase;
10-
use PHPUnit\Framework\MockObject\MockObject;
11-
use \Magento\Authorization\Model\CompositeUserContext;
12-
9+
use Magento\Authorization\Model\CompositeUserContext;
1310
use Magento\Framework\ObjectManager\Helper\Composite as CompositeHelper;
1411
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
1512

13+
use PHPUnit\Framework\MockObject\MockObject;
14+
use PHPUnit\Framework\TestCase;
15+
1616
class CompositeUserContextTest extends TestCase
1717
{
1818
/**

app/code/Magento/Authorization/Test/Unit/Model/ResourceModel/RulesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
namespace Magento\Authorization\Test\Unit\Model\ResourceModel;
99

10-
use Magento\Framework\Exception\LocalizedException;
1110
use Magento\Authorization\Model\ResourceModel\Rules;
1211
use Magento\Framework\Acl\Builder;
1312
use Magento\Framework\Acl\Data\CacheInterface;
1413
use Magento\Framework\Acl\RootResource;
1514
use Magento\Framework\App\ResourceConnection;
1615
use Magento\Framework\DB\Adapter\AdapterInterface;
16+
use Magento\Framework\Exception\LocalizedException;
1717
use Magento\Framework\Model\ResourceModel\Db\Context;
1818
use Magento\Framework\Phrase;
1919
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;

0 commit comments

Comments
 (0)