@@ -28,15 +28,6 @@ protected function setUp()
28
28
$ this ->contentProviderMock = $ this ->getMockBuilder (HttpContentProvider::class)
29
29
->disableOriginalConstructor ()
30
30
->getMock ();
31
- $ this ->contentProviderMock ->expects ($ this ->any ())
32
- ->method ('getTargetVersion ' )
33
- ->willReturn ('version ' );
34
- $ this ->contentProviderMock ->expects ($ this ->any ())
35
- ->method ('getEdition ' )
36
- ->willReturn ('edition ' );
37
- $ this ->contentProviderMock ->expects ($ this ->any ())
38
- ->method ('getLocale ' )
39
- ->willReturn ('locale ' );
40
31
$ this ->objectManager ->addSharedInstance ($ this ->contentProviderMock , HttpContentProvider::class);
41
32
}
42
33
@@ -56,6 +47,7 @@ public function testExecute()
56
47
CacheCleaner::cleanAll ();
57
48
$ this ->contentProviderMock ->expects ($ this ->any ())
58
49
->method ('getContent ' )
50
+ ->with ('2.3.0 ' , 'Community ' , 'en_US ' )
59
51
->willReturn ($ content );
60
52
61
53
$ this ->dispatch ('backend/admin/dashboard/index/ ' );
@@ -74,6 +66,7 @@ public function testExecuteEmptyContent()
74
66
CacheCleaner::cleanAll ();
75
67
$ this ->contentProviderMock ->expects ($ this ->any ())
76
68
->method ('getContent ' )
69
+ ->with ('2.3.0 ' , 'Community ' , 'en_US ' )
77
70
->willReturn ('[] ' );
78
71
79
72
$ this ->dispatch ('backend/admin/dashboard/index/ ' );
@@ -89,6 +82,7 @@ public function testExecuteFalseContent()
89
82
CacheCleaner::cleanAll ();
90
83
$ this ->contentProviderMock ->expects ($ this ->any ())
91
84
->method ('getContent ' )
85
+ ->with ('2.3.0 ' , 'Community ' , 'en_US ' )
92
86
->willReturn (false );
93
87
94
88
$ this ->dispatch ('backend/admin/dashboard/index/ ' );
0 commit comments