Skip to content

Commit 2e147c7

Browse files
ENGCOM-3918: aclResource for UIComponent buttons #20408
- Merge Pull Request #20408 from kassner/magento2:patch-12 - Merged commits: 1. ba9f4f8 2. 40d65a7 3. a051e8a 4. d0e5afc
2 parents 7a4cbab + d0e5afc commit 2e147c7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/internal/Magento/Framework/View/Element/UiComponent/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ class Context implements ContextInterface
110110
* @param UrlInterface $urlBuilder
111111
* @param Processor $processor
112112
* @param UiComponentFactory $uiComponentFactory
113-
* @param AuthorizationInterface $authorization
114113
* @param DataProviderInterface|null $dataProvider
115-
* @param string|null $namespace
114+
* @param string $namespace
115+
* @param AuthorizationInterface|null $authorization
116116
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
117117
*/
118118
public function __construct(

lib/internal/Magento/Framework/View/Test/Unit/Element/UiComponent/ContextTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111

1212
use Magento\Framework\View\Element\UiComponent\Context;
1313
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
14+
use Magento\Framework\View\Element\UiComponent\Control\ActionPoolInterface;
1415

16+
/**
17+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+
*/
1519
class ContextTest extends \PHPUnit\Framework\TestCase
1620
{
1721
/**
@@ -20,7 +24,7 @@ class ContextTest extends \PHPUnit\Framework\TestCase
2024
protected $context;
2125

2226
/**
23-
* @var \Magento\Framework\View\Element\UiComponent\Control\ActionPoolInterface
27+
* @var ActionPoolInterface
2428
*/
2529
private $actionPool;
2630

@@ -43,7 +47,7 @@ protected function setUp()
4347
$this->getMockBuilder(\Magento\Framework\View\Element\UiComponent\Control\ActionPoolFactory::class)
4448
->disableOriginalConstructor()
4549
->getMock();
46-
$this->actionPool = $this->getMockBuilder(\Magento\Framework\View\Element\UiComponent\Control\ActionPoolInterface::class)
50+
$this->actionPool = $this->getMockBuilder(ActionPoolInterface::class)
4751
->disableOriginalConstructor()
4852
->getMock();
4953
$actionPoolFactory->method('create')->willReturn($this->actionPool);

0 commit comments

Comments
 (0)