File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Automattic \Test \Constant_Mocker ;
4
-
5
4
class VIP_Go_Security_Test extends WP_UnitTestCase {
6
5
private $ original_post ;
7
6
private $ test_username = 'iamgroot ' ;
@@ -280,11 +279,10 @@ public function test_create_admin_user() {
280
279
281
280
/**
282
281
* Test that vipgo username is restricted in non-local environments.
283
- *
284
282
* @runInSeparateProcess
283
+ * @preserveGlobalState disabled
285
284
*/
286
285
public function test__vipgo_username_restricted_in_non_local () {
287
- Constant_Mocker::define ( 'WP_ENVIRONMENT_TYPE ' , 'production ' );
288
286
define ( 'WP_ENVIRONMENT_TYPE ' , 'production ' );
289
287
290
288
$ this ->factory ()->user ->create ( [
@@ -301,11 +299,10 @@ public function test__vipgo_username_restricted_in_non_local() {
301
299
302
300
/**
303
301
* Test that vipgo username is not restricted in local environment.
304
- *
305
302
* @runInSeparateProcess
303
+ * @preserveGlobalState disabled
306
304
*/
307
305
public function test__vipgo_username_not_restricted_in_local () {
308
- Constant_Mocker::define ( 'WP_ENVIRONMENT_TYPE ' , 'local ' );
309
306
define ( 'WP_ENVIRONMENT_TYPE ' , 'local ' );
310
307
311
308
$ user_id = $ this ->factory ()->user ->create ( [
You can’t perform that action at this time.
0 commit comments