File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function match(\Magento\Framework\App\RequestInterface $request)
96
96
$ condition = new \Magento \Framework \DataObject (['identifier ' => $ identifier , 'continue ' => true ]);
97
97
$ this ->_eventManager ->dispatch (
98
98
'cms_controller_router_match_before ' ,
99
- ['router ' => $ this , 'condition ' => $ condition, ' request ' => $ request ]
99
+ ['router ' => $ this , 'condition ' => $ condition ]
100
100
);
101
101
$ identifier = $ condition ->getIdentifier ();
102
102
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © 2017 Magento. All rights reserved.
3
+ * Copyright © 2013- 2017 Magento, Inc . All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Cms \Test \Unit \Controller ;
7
7
8
+ /**
9
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
10
+ */
8
11
class RouterTest extends \PHPUnit_Framework_TestCase
9
12
{
10
13
/**
@@ -123,7 +126,6 @@ public function testMatchCmsControllerRouterMatchBeforeEventParams()
123
126
[
124
127
'router ' => $ this ->router ,
125
128
'condition ' => $ condition ,
126
- 'request ' => $ requestMock ,
127
129
]
128
130
)
129
131
->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments