Ticket #29785: phpunit_test_countUsers.patch
File phpunit_test_countUsers.patch, 1.2 KB (added by , 7 years ago) |
---|
-
countUsers.php
32 32 $subscriber = self::factory()->user->create( array( 33 33 'role' => 'subscriber', 34 34 ) ); 35 $spam = self::factory()->user->create( array( 36 'role' => 'spam', 37 ) ); 35 38 $none = self::factory()->user->create( array( 36 39 'role' => '', 37 40 ) ); … … 49 52 'author' => 1, 50 53 'contributor' => 1, 51 54 'subscriber' => 1, 55 'spam' => 1, 52 56 'none' => 2, 53 57 ), $count['avail_roles'] ); 54 58 … … 82 86 $subscriber = self::factory()->user->create( array( 83 87 'role' => 'subscriber', 84 88 ) ); 89 $spam = self::factory()->user->create( array( 90 'role' => 'spam', 91 ) ); 85 92 $none = self::factory()->user->create( array( 86 93 'role' => '', 87 94 ) ); -
multisite.php
199 199 function test_is_user_spammy() { 200 200 $user_id = self::factory()->user->create( array( 201 201 'role' => 'author', 202 'user_login' => ' testuser1',202 'user_login' => 'spam', 203 203 ) ); 204 204 205 205 $spam_username = (string) $user_id;