Changeset 51462 for trunk/tests/phpunit/tests/user/wpDropdownUsers.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/wpDropdownUsers.php
r49036 r51462 29 29 $expected = "<option value='$u'>Foo Person</option>"; 30 30 31 $this->assert Contains( $expected, $found );31 $this->assertStringContainsString( $expected, $found ); 32 32 } 33 33 … … 55 55 $expected = "<option value='$u'>Foo Person</option>"; 56 56 57 $this->assert Contains( $expected, $found );57 $this->assertStringContainsString( $expected, $found ); 58 58 } 59 59 … … 81 81 $expected = "<option value='$u'>foo</option>"; 82 82 83 $this->assert Contains( $expected, $found );83 $this->assertStringContainsString( $expected, $found ); 84 84 } 85 85 … … 107 107 $expected = "<option value='$u'>Foo Person (foo)</option>"; 108 108 109 $this->assert Contains( $expected, $found );109 $this->assertStringContainsString( $expected, $found ); 110 110 } 111 111 … … 127 127 128 128 $user1 = get_userdata( $users[1] ); 129 $this->assert Contains( $user1->user_login, $found );129 $this->assertStringContainsString( $user1->user_login, $found ); 130 130 } 131 131 … … 143 143 ); 144 144 145 $this->assert NotContains( (string) PHP_INT_MAX, $found );145 $this->assertStringNotContainsString( (string) PHP_INT_MAX, $found ); 146 146 } 147 147 … … 161 161 ); 162 162 163 $this->assert NotContains( $u1->user_login, $found );164 $this->assert Contains( $u2->user_login, $found );163 $this->assertStringNotContainsString( $u1->user_login, $found ); 164 $this->assertStringContainsString( $u2->user_login, $found ); 165 165 } 166 166 … … 180 180 ); 181 181 182 $this->assert NotContains( $u1->user_login, $found );183 $this->assert Contains( $u2->user_login, $found );182 $this->assertStringNotContainsString( $u1->user_login, $found ); 183 $this->assertStringContainsString( $u2->user_login, $found ); 184 184 } 185 185 … … 199 199 ); 200 200 201 $this->assert NotContains( $u1->user_login, $found );202 $this->assert Contains( $u2->user_login, $found );201 $this->assertStringNotContainsString( $u1->user_login, $found ); 202 $this->assertStringContainsString( $u2->user_login, $found ); 203 203 } 204 204 }
Note: See TracChangeset
for help on using the changeset viewer.