File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
lib/internal/Magento/Framework/View
Test/Unit/Element/UiComponent Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 1111
1212use Magento \Framework \View \Element \UiComponent \Context ;
1313use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
14+ use Magento \Framework \View \Element \UiComponent \Control \ActionPoolInterface ;
1415
16+ /**
17+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18+ */
1519class 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 );
You can’t perform that action at this time.
0 commit comments