Changeset 45588 for trunk/tests/phpunit/tests/user/slashes.php
- Timestamp:
- 07/02/2019 04:43:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/slashes.php
r42343 r45588 28 28 */ 29 29 function test_add_user() { 30 $_POST = $_GET = $_REQUEST = array(); 30 $_POST = array(); 31 $_GET = array(); 32 $_REQUEST = array(); 31 33 $_POST['user_login'] = 'slash_example_user_1'; 32 34 $_POST['pass1'] = 'password'; … … 50 52 $this->assertEquals( $this->slash_3, $user->description ); 51 53 52 $_POST = $_GET = $_REQUEST = array(); 54 $_POST = array(); 55 $_GET = array(); 56 $_REQUEST = array(); 53 57 $_POST['user_login'] = 'slash_example_user_2'; 54 58 $_POST['pass1'] = 'password'; … … 79 83 $id = self::factory()->user->create(); 80 84 81 $_POST = $_GET = $_REQUEST = array(); 85 $_POST = array(); 86 $_GET = array(); 87 $_REQUEST = array(); 82 88 $_POST['role'] = 'subscriber'; 83 89 $_POST['email'] = 'user1@example.com'; … … 98 104 $this->assertEquals( $this->slash_3, $user->description ); 99 105 100 $_POST = $_GET = $_REQUEST = array(); 106 $_POST = array(); 107 $_GET = array(); 108 $_REQUEST = array(); 101 109 $_POST['role'] = 'subscriber'; 102 110 $_POST['email'] = 'user2@example.com';
Note: See TracChangeset
for help on using the changeset viewer.