File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
setup/src/Magento/Setup/Test/Unit Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class MaintenanceTest extends \PHPUnit_Framework_TestCase
20
20
/**
21
21
* Controller
22
22
*
23
- * @var \Magento\Setup\Controller\CompleteBackup
23
+ * @var \Magento\Setup\Controller\Maintenance
24
24
*/
25
25
private $ controller ;
26
26
Original file line number Diff line number Diff line change @@ -216,6 +216,9 @@ public function testCheckPhpSettings()
216
216
]
217
217
]
218
218
];
219
+ if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
220
+ unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
221
+ }
219
222
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
220
223
}
221
224
@@ -254,6 +257,9 @@ public function testCheckPhpSettingsFailed()
254
257
]
255
258
]
256
259
];
260
+ if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
261
+ unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
262
+ }
257
263
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
258
264
}
259
265
@@ -280,6 +286,9 @@ public function testCheckPhpSettingsNoXDebug()
280
286
]
281
287
]
282
288
];
289
+ if (version_compare (PHP_VERSION , '7.0 ' , '>= ' )) {
290
+ unset($ expected ['data ' ]['always_populate_raw_post_data ' ]);
291
+ }
283
292
$ this ->assertEquals ($ expected , $ this ->phpReadinessCheck ->checkPhpSettings ());
284
293
}
285
294
You can’t perform that action at this time.
0 commit comments