Changeset 47122 for trunk/tests/phpunit/tests/user/countUsers.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user/countUsers.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/countUsers.php
r46586 r47122 13 13 */ 14 14 public function test_count_users_is_accurate( $strategy ) { 15 // Setup users 15 // Setup users. 16 16 $admin = self::factory()->user->create( 17 17 array( … … 50 50 ); 51 51 52 // Test user counts 52 // Test user counts. 53 53 $count = count_users( $strategy ); 54 54 … … 77 77 */ 78 78 public function test_count_users_multisite_is_accurate( $strategy ) { 79 // Setup users 79 // Setup users. 80 80 $admin = self::factory()->user->create( 81 81 array( … … 114 114 ); 115 115 116 // Setup blogs 116 // Setup blogs. 117 117 $blog_1 = (int) self::factory()->blog->create( 118 118 array( … … 126 126 ); 127 127 128 // Add users to blogs 128 // Add users to blogs. 129 129 add_user_to_blog( $blog_1, $subscriber, 'editor' ); 130 130 add_user_to_blog( $blog_2, $none, 'contributor' ); 131 131 132 // Test users counts on root site 132 // Test users counts on root site. 133 133 $count = count_users( $strategy ); 134 134 … … 146 146 ); 147 147 148 // Test users counts on blog 1 148 // Test users counts on blog 1. 149 149 switch_to_blog( $blog_1 ); 150 150 $count = count_users( $strategy ); … … 161 161 ); 162 162 163 // Test users counts on blog 2 163 // Test users counts on blog 2. 164 164 switch_to_blog( $blog_2 ); 165 165 $count = count_users( $strategy ); … … 214 214 public function test_count_users_is_accurate_with_multiple_roles( $strategy ) { 215 215 216 // Setup users 216 // Setup users. 217 217 $admin = self::factory()->user->create( 218 218 array( … … 236 236 ); 237 237 238 // Test user counts 238 // Test user counts. 239 239 $count = count_users( $strategy ); 240 240
Note: See TracChangeset
for help on using the changeset viewer.