- Timestamp:
- 11/14/2014 02:01:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-profiledata.php
r8958 r9139 10 10 */ 11 11 public function test_exists_when_doesnt_exist() { 12 $u = $this-> create_user();12 $u = $this->factory->user->create(); 13 13 $g = $this->factory->xprofile_group->create(); 14 14 $f = $this->factory->xprofile_field->create( array( … … 26 26 */ 27 27 public function test_exists_when_exists_uncached() { 28 $u = $this-> create_user();28 $u = $this->factory->user->create(); 29 29 $g = $this->factory->xprofile_group->create(); 30 30 $f = $this->factory->xprofile_field->create( array( … … 46 46 */ 47 47 public function test_exists_when_exists_in_cache() { 48 $u = $this-> create_user();48 $u = $this->factory->user->create(); 49 49 $g = $this->factory->xprofile_group->create(); 50 50 $f = $this->factory->xprofile_field->create( array( … … 66 66 */ 67 67 public function test_get_fielddataid_byid_when_doesnt_exist() { 68 $u = $this-> create_user();68 $u = $this->factory->user->create(); 69 69 $g = $this->factory->xprofile_group->create(); 70 70 $f = $this->factory->xprofile_field->create( array( … … 83 83 */ 84 84 public function test_get_fielddataid_byid_when_exists_uncached() { 85 $u = $this-> create_user();85 $u = $this->factory->user->create(); 86 86 $g = $this->factory->xprofile_group->create(); 87 87 $f = $this->factory->xprofile_field->create( array( … … 106 106 */ 107 107 public function test_get_fielddataid_byid_when_exists_in_cache() { 108 $u = $this-> create_user();108 $u = $this->factory->user->create(); 109 109 $g = $this->factory->xprofile_group->create(); 110 110 $f = $this->factory->xprofile_field->create( array( … … 125 125 */ 126 126 public function test_get_value_byid_singleuser_uncached() { 127 $u = $this-> create_user();127 $u = $this->factory->user->create(); 128 128 $g = $this->factory->xprofile_group->create(); 129 129 $f = $this->factory->xprofile_field->create( array( … … 150 150 $time = date( 'Y-m-d H:i:s', time() - 60*60*24 ); 151 151 152 $u1 = $this-> create_user();153 $u2 = $this-> create_user();152 $u1 = $this->factory->user->create(); 153 $u2 = $this->factory->user->create(); 154 154 $g = $this->factory->xprofile_group->create(); 155 155 $f = $this->factory->xprofile_field->create( array( … … 206 206 */ 207 207 public function test_get_value_byid_singleuser_cached() { 208 $u = $this-> create_user();208 $u = $this->factory->user->create(); 209 209 $g = $this->factory->xprofile_group->create(); 210 210 $f = $this->factory->xprofile_field->create( array( … … 230 230 $time = date( 'Y-m-d H:i:s', time() - 60*60*24 ); 231 231 232 $u1 = $this-> create_user();233 $u2 = $this-> create_user();232 $u1 = $this->factory->user->create(); 233 $u2 = $this->factory->user->create(); 234 234 $g = $this->factory->xprofile_group->create(); 235 235 $f = $this->factory->xprofile_field->create( array( … … 279 279 */ 280 280 public function test_get_all_for_user_uncached() { 281 $u = $this-> create_user();281 $u = $this->factory->user->create(); 282 282 $g1 = $this->factory->xprofile_group->create(); 283 283 $g2 = $this->factory->xprofile_group->create(); … … 358 358 */ 359 359 public function test_get_all_for_user_cached() { 360 $u = $this-> create_user();360 $u = $this->factory->user->create(); 361 361 $g1 = $this->factory->xprofile_group->create(); 362 362 $g2 = $this->factory->xprofile_group->create();
Note: See TracChangeset
for help on using the changeset viewer.