@@ -144,24 +144,10 @@ public function testReportNewRelicCronModuleDisabledFromConfig()
144
144
*/
145
145
public function testReportNewRelicCron ()
146
146
{
147
- $ testModuleData = [
148
- 'changes ' => [
149
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'enabled ' ],
150
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'disabled ' ],
151
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'installed ' ],
152
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'uninstalled ' ],
153
- ],
154
- 'enabled ' => 1 ,
155
- 'disabled ' => 1 ,
156
- 'installed ' => 1 ,
157
- ];
158
147
159
148
$ this ->config ->expects ($ this ->once ())
160
149
->method ('isNewRelicEnabled ' )
161
150
->willReturn (true );
162
- $ this ->collect ->expects ($ this ->once ())
163
- ->method ('getModuleData ' )
164
- ->willReturn ($ testModuleData );
165
151
$ this ->counter ->expects ($ this ->once ())
166
152
->method ('getAllProductsCount ' );
167
153
$ this ->counter ->expects ($ this ->once ())
@@ -198,24 +184,10 @@ public function testReportNewRelicCron()
198
184
*/
199
185
public function testReportNewRelicCronRequestFailed ()
200
186
{
201
- $ testModuleData = [
202
- 'changes ' => [
203
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'enabled ' ],
204
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'disabled ' ],
205
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'installed ' ],
206
- ['name ' => 'name ' , 'setup_version ' => '2.0.0 ' , 'type ' => 'uninstalled ' ],
207
- ],
208
- 'enabled ' => 1 ,
209
- 'disabled ' => 1 ,
210
- 'installed ' => 1 ,
211
- ];
212
187
213
188
$ this ->config ->expects ($ this ->once ())
214
189
->method ('isNewRelicEnabled ' )
215
190
->willReturn (true );
216
- $ this ->collect ->expects ($ this ->once ())
217
- ->method ('getModuleData ' )
218
- ->willReturn ($ testModuleData );
219
191
$ this ->counter ->expects ($ this ->once ())
220
192
->method ('getAllProductsCount ' );
221
193
$ this ->counter ->expects ($ this ->once ())
0 commit comments