- Timestamp:
- 06/13/2014 03:40:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-core-user.php
r8332 r8506 125 125 } 126 126 127 /** 128 * @group get_users_by_letter 129 */ 130 public function test_get_users_by_letter() { 131 $u1 = $this->create_user( array( 132 'display_name' => 'foo', 133 ) ); 134 $u2 = $this->create_user( array( 135 'display_name' => 'bar', 136 ) ); 137 138 $q = BP_Core_User::get_users_by_letter( 'b' ); 139 $found = array_map( 'intval', wp_list_pluck( $q['users'], 'id' ) ); 140 141 $this->assertEquals( array( $u2 ), $found ); 142 } 143 144 /** 145 * @group search_users 146 */ 147 public function test_search_users() { 148 $u1 = $this->create_user( array( 149 'display_name' => 'foo', 150 ) ); 151 $u2 = $this->create_user( array( 152 'display_name' => 'bar', 153 ) ); 154 155 $q = BP_Core_User::search_users( 'ar' ); 156 $found = array_map( 'intval', wp_list_pluck( $q['users'], 'id' ) ); 157 158 $this->assertEquals( array( $u2 ), $found ); 159 } 160 127 161 public function test_get_specific_users() { 128 162 $u1 = $this->create_user();
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)