Skip to content

Commit bdc9d54

Browse files
committed
Fix test
1 parent 2dcacc4 commit bdc9d54

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test-security.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22

33
use Automattic\Test\Constant_Mocker;
4-
54
class VIP_Go_Security_Test extends WP_UnitTestCase {
65
private $original_post;
76
private $test_username = 'iamgroot';
@@ -280,11 +279,10 @@ public function test_create_admin_user() {
280279

281280
/**
282281
* Test that vipgo username is restricted in non-local environments.
283-
*
284282
* @runInSeparateProcess
283+
* @preserveGlobalState disabled
285284
*/
286285
public function test__vipgo_username_restricted_in_non_local() {
287-
Constant_Mocker::define( 'WP_ENVIRONMENT_TYPE', 'production' );
288286
define( 'WP_ENVIRONMENT_TYPE', 'production' );
289287

290288
$this->factory()->user->create( [
@@ -301,11 +299,10 @@ public function test__vipgo_username_restricted_in_non_local() {
301299

302300
/**
303301
* Test that vipgo username is not restricted in local environment.
304-
*
305302
* @runInSeparateProcess
303+
* @preserveGlobalState disabled
306304
*/
307305
public function test__vipgo_username_not_restricted_in_local() {
308-
Constant_Mocker::define( 'WP_ENVIRONMENT_TYPE', 'local' );
309306
define( 'WP_ENVIRONMENT_TYPE', 'local' );
310307

311308
$user_id = $this->factory()->user->create( [

0 commit comments

Comments
 (0)