Changeset 11045 for trunk/tests/phpunit/testcases/members/types.php
- Timestamp:
- 08/30/2016 06:39:57 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/testcases/members/types.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/types.php
r10022 r11045 393 393 $this->assertEqualSets( array( 'bar', 'foo' ), $types ); 394 394 } 395 396 public function test_bp_get_member_type_should_not_return_unregistered_types() { 397 $u1 = $this->factory->user->create(); 398 bp_register_member_type( 'foo' ); 399 bp_set_member_type( $u1, 'foo' ); 400 401 // Directly set a type that hasn't been registered. 402 bp_set_object_terms( $u1, 'ugh', 'bp_member_type', true ); 403 404 $type = bp_get_member_type( $u1, false ); 405 $this->assertEquals( array( 'foo' ), $type ); 406 } 395 407 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)