Changeset 43571 for trunk/tests/phpunit/tests/user/countUsers.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/countUsers.php
r42343 r43571 62 62 'subscriber' => 1, 63 63 'none' => 2, 64 ), $count['avail_roles'] 64 ), 65 $count['avail_roles'] 65 66 ); 66 67 … … 141 142 'subscriber' => 1, 142 143 'none' => 2, 143 ), $count['avail_roles'] 144 ), 145 $count['avail_roles'] 144 146 ); 145 147 … … 155 157 'editor' => 1, 156 158 'none' => 0, 157 ), $count['avail_roles'] 159 ), 160 $count['avail_roles'] 158 161 ); 159 162 … … 169 172 'contributor' => 1, 170 173 'none' => 0, 171 ), $count['avail_roles'] 174 ), 175 $count['avail_roles'] 172 176 ); 173 177 … … 198 202 'tester' => 1, 199 203 'none' => 0, 200 ), $count['avail_roles'] 204 ), 205 $count['avail_roles'] 201 206 ); 202 207 } … … 227 232 'editor', 228 233 'author', 229 ), get_userdata( $editor )->roles 234 ), 235 get_userdata( $editor )->roles 230 236 ); 231 237 … … 240 246 'author' => 1, 241 247 'none' => 0, 242 ), $count['avail_roles'] 248 ), 249 $count['avail_roles'] 243 250 ); 244 251 … … 264 271 // Manually delete the user, but leave the capabilities usermeta. 265 272 $wpdb->delete( 266 $wpdb->users, array( 273 $wpdb->users, 274 array( 267 275 'ID' => $u, 268 276 )
Note: See TracChangeset
for help on using the changeset viewer.