- Timestamp:
- 07/27/2024 04:30:23 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/groups/functions/get-group.php
r13335 r13980 36 36 */ 37 37 public function test_bp_get_group_with_id() { 38 $g = $this->factory->group->create();38 $g = self::factory()->group->create(); 39 39 40 40 $this->assertSame( $g, bp_get_group( $g )->id ); … … 48 48 public function test_bp_get_group_with_slug() { 49 49 $slug = 'test-group'; 50 $g = $this->factory->group->create( array( 'slug' => $slug ) );50 $g = self::factory()->group->create( array( 'slug' => $slug ) ); 51 51 $g1 = bp_get_group( $slug ); 52 52 … … 64 64 */ 65 65 public function test_bp_get_group_with_object() { 66 $g = $this->factory->group->create_and_get();66 $g = self::factory()->group->create_and_get(); 67 67 68 68 $this->assertSame( $g->id, bp_get_group( $g )->id ); … … 73 73 */ 74 74 public function test_bp_get_group_from_groups_template() { 75 $g = $this->factory->group->create( array( 'status' => 'private' ) );75 $g = self::factory()->group->create( array( 'status' => 'private' ) ); 76 76 77 77 if ( bp_has_groups( array( 'include' => array( $g ) ) ) ) { … … 90 90 public function test_bp_get_group_from_current_group() { 91 91 $bp = buddypress(); 92 $g = $this->factory->group->create_and_get( array( 'name' => 'foo' ) );92 $g = self::factory()->group->create_and_get( array( 'name' => 'foo' ) ); 93 93 94 94 // Set the current group.
Note: See TracChangeset
for help on using the changeset viewer.