File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
dev/tests/integration/testsuite/Magento/Framework/View
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \App \State ;
9
9
use Magento \Framework \Phrase ;
10
+ use Magento \Framework \View \Layout \LayoutCacheKeyInterface ;
10
11
11
12
/**
12
13
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -66,7 +67,7 @@ class MergeTest extends \PHPUnit\Framework\TestCase
66
67
protected $ pageConfig ;
67
68
68
69
/**
69
- * @var \Magento\Framework\View\Layout\ LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
70
+ * @var LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
70
71
*/
71
72
protected $ layoutCacheKeyMock ;
72
73
@@ -124,7 +125,7 @@ function ($filename) use ($fileDriver) {
124
125
)
125
126
);
126
127
127
- $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (\ Magento \ Framework \ View \ Layout \ LayoutCacheKeyInterface::class);
128
+ $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (LayoutCacheKeyInterface::class);
128
129
$ this ->layoutCacheKeyMock ->expects ($ this ->any ())
129
130
->method ('getCacheKeys ' )
130
131
->willReturn ([]);
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \View \Model \Layout ;
7
7
8
+ use Magento \Framework \View \Layout \LayoutCacheKeyInterface ;
9
+
8
10
class MergeTest extends \PHPUnit \Framework \TestCase
9
11
{
10
12
/**
@@ -19,7 +21,7 @@ class MergeTest extends \PHPUnit\Framework\TestCase
19
21
protected $ model ;
20
22
21
23
/**
22
- * @var \Magento\Framework\View\Layout\ LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
24
+ * @var LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
23
25
*/
24
26
protected $ layoutCacheKeyMock ;
25
27
@@ -67,7 +69,7 @@ protected function setUp()
67
69
$ link2 ->setLayoutUpdateId ($ layoutUpdate2 ->getId ());
68
70
$ link2 ->save ();
69
71
70
- $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (\ Magento \ Framework \ View \ Layout \ LayoutCacheKeyInterface::class);
72
+ $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (LayoutCacheKeyInterface::class);
71
73
$ this ->layoutCacheKeyMock ->expects ($ this ->any ())
72
74
->method ('getCacheKeys ' )
73
75
->willReturn ([]);
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ public function addCacheKeys($cacheKeys)
36
36
*
37
37
* @return array
38
38
*/
39
- public function getCacheKeys () {
39
+ public function getCacheKeys ()
40
+ {
40
41
return $ this ->cacheKeys ;
41
42
}
42
43
}
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \Config \Dom \ValidationSchemaException ;
10
10
use Magento \Framework \Phrase ;
11
11
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
12
+ use Magento \Framework \View \Layout \LayoutCacheKeyInterface ;
12
13
13
14
class MergeTest extends \PHPUnit \Framework \TestCase
14
15
{
@@ -43,7 +44,7 @@ class MergeTest extends \PHPUnit\Framework\TestCase
43
44
private $ appState ;
44
45
45
46
/**
46
- * @var \Magento\Framework\View\Layout\ LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
47
+ * @var LayoutCacheKeyInterface|\PHPUnit_Framework_MockObject_MockObject
47
48
*/
48
49
protected $ layoutCacheKeyMock ;
49
50
@@ -60,7 +61,7 @@ protected function setUp()
60
61
->disableOriginalConstructor ()
61
62
->getMock ();
62
63
63
- $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (\ Magento \ Framework \ View \ Layout \ LayoutCacheKeyInterface::class);
64
+ $ this ->layoutCacheKeyMock = $ this ->getMockForAbstractClass (LayoutCacheKeyInterface::class);
64
65
$ this ->layoutCacheKeyMock ->expects ($ this ->any ())
65
66
->method ('getCacheKeys ' )
66
67
->willReturn ([]);
You can’t perform that action at this time.
0 commit comments