Changeset 13357 for trunk/tests/phpunit/testcases/groups/functions.php
- Timestamp:
- 11/07/2022 08:32:51 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/functions.php
r13355 r13357 363 363 364 364 $this->assertEquals( 1, groups_get_total_member_count( $g1 ) ); 365 } 366 367 /** 368 * @group total_member_count 369 * @ticket BP7614 370 */ 371 public function test_total_member_count_groups_inactive_user_from_admin() { 372 $current_user = get_current_user_id(); 373 $u1 = self::factory()->user->create( 374 array( 375 'role' => 'administrator', 376 ) 377 ); 378 $u2 = wp_insert_user( array( 379 'user_pass' => 'barfoo', 380 'user_login' => 'barfoo', 381 'user_email' => 'barfoo@buddypress.org', 382 ) ); 383 384 $this->set_current_user( $u1 ); 385 $g1 = self::factory()->group->create(); 386 387 groups_join_group( $g1, $u2 ); 388 389 $this->assertEquals( 2, groups_get_total_member_count( $g1 ) ); 390 391 $this->set_current_user( $current_user ); 365 392 } 366 393
Note: See TracChangeset
for help on using the changeset viewer.