- Timestamp:
- 11/03/2017 07:44:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/class-bp-signup.php
r11639 r11737 102 102 */ 103 103 public function test_get_with_offset() { 104 $s1 = $this->factory->signup->create();105 $s2 = $this->factory->signup->create();106 $s3 = $this->factory->signup->create();104 $s1 = self::factory()->signup->create(); 105 $s2 = self::factory()->signup->create(); 106 $s3 = self::factory()->signup->create(); 107 107 108 108 $ss = BP_Signup::get( array( … … 117 117 */ 118 118 public function test_get_with_number() { 119 $s1 = $this->factory->signup->create();120 $s2 = $this->factory->signup->create();121 $s3 = $this->factory->signup->create();119 $s1 = self::factory()->signup->create(); 120 $s2 = self::factory()->signup->create(); 121 $s3 = self::factory()->signup->create(); 122 122 123 123 $ss = BP_Signup::get( array( … … 132 132 */ 133 133 public function test_get_with_usersearch() { 134 $s1 = $this->factory->signup->create( array(134 $s1 = self::factory()->signup->create( array( 135 135 'user_email' => 'fghij@example.com', 136 136 ) ); 137 $s2 = $this->factory->signup->create();138 $s3 = $this->factory->signup->create();137 $s2 = self::factory()->signup->create(); 138 $s3 = self::factory()->signup->create(); 139 139 140 140 $ss = BP_Signup::get( array( … … 149 149 */ 150 150 public function test_get_with_orderby_email() { 151 $s1 = $this->factory->signup->create( array(151 $s1 = self::factory()->signup->create( array( 152 152 'user_email' => 'fghij@example.com', 153 153 ) ); 154 $s2 = $this->factory->signup->create( array(154 $s2 = self::factory()->signup->create( array( 155 155 'user_email' => 'abcde@example.com', 156 156 ) ); 157 $s3 = $this->factory->signup->create( array(157 $s3 = self::factory()->signup->create( array( 158 158 'user_email' => 'zzzzz@example.com', 159 159 ) ); … … 172 172 */ 173 173 public function test_get_with_orderby_email_asc() { 174 $s1 = $this->factory->signup->create( array(174 $s1 = self::factory()->signup->create( array( 175 175 'user_email' => 'fghij@example.com', 176 176 ) ); 177 $s2 = $this->factory->signup->create( array(177 $s2 = self::factory()->signup->create( array( 178 178 'user_email' => 'abcde@example.com', 179 179 ) ); 180 $s3 = $this->factory->signup->create( array(180 $s3 = self::factory()->signup->create( array( 181 181 'user_email' => 'zzzzz@example.com', 182 182 ) ); … … 195 195 */ 196 196 public function test_get_with_include() { 197 $s1 = $this->factory->signup->create();198 $s2 = $this->factory->signup->create();199 $s3 = $this->factory->signup->create();197 $s1 = self::factory()->signup->create(); 198 $s2 = self::factory()->signup->create(); 199 $s3 = self::factory()->signup->create(); 200 200 201 201 $ss = BP_Signup::get( array( … … 210 210 */ 211 211 public function test_get_with_activation_key() { 212 $s1 = $this->factory->signup->create( array(212 $s1 = self::factory()->signup->create( array( 213 213 'activation_key' => 'foo', 214 214 ) ); 215 $s2 = $this->factory->signup->create( array(215 $s2 = self::factory()->signup->create( array( 216 216 'activation_key' => 'bar', 217 217 ) ); 218 $s3 = $this->factory->signup->create( array(218 $s3 = self::factory()->signup->create( array( 219 219 'activation_key' => 'baz', 220 220 ) ); … … 231 231 */ 232 232 public function test_get_with_user_login() { 233 $s1 = $this->factory->signup->create( array(233 $s1 = self::factory()->signup->create( array( 234 234 'user_login' => 'aaaafoo', 235 235 ) ); 236 $s2 = $this->factory->signup->create( array(236 $s2 = self::factory()->signup->create( array( 237 237 'user_login' => 'zzzzfoo', 238 238 ) ); 239 $s3 = $this->factory->signup->create( array(239 $s3 = self::factory()->signup->create( array( 240 240 'user_login' => 'jjjjfoo', 241 241 ) ); … … 254 254 $signups = array(); 255 255 256 $signups['accountone'] = $this->factory->signup->create( array(256 $signups['accountone'] = self::factory()->signup->create( array( 257 257 'user_login' => 'accountone', 258 258 'user_email' => 'accountone@example.com', … … 260 260 ) ); 261 261 262 $signups['accounttwo'] = $this->factory->signup->create( array(262 $signups['accounttwo'] = self::factory()->signup->create( array( 263 263 'user_login' => 'accounttwo', 264 264 'user_email' => 'accounttwo@example.com', … … 266 266 ) ); 267 267 268 $signups['accountthree'] = $this->factory->signup->create( array(268 $signups['accountthree'] = self::factory()->signup->create( array( 269 269 'user_login' => 'accountthree', 270 270 'user_email' => 'accountthree@example.com', … … 297 297 298 298 // Can't trust this first signup :( 299 $signups['testpath1'] = $this->factory->signup->create( array(299 $signups['testpath1'] = self::factory()->signup->create( array( 300 300 'user_login' => 'testpath1', 301 301 'user_email' => 'blogone@example.com', … … 306 306 ) ); 307 307 308 $signups['blogtwo'] = $this->factory->signup->create( array(308 $signups['blogtwo'] = self::factory()->signup->create( array( 309 309 'user_login' => 'blogtwo', 310 310 'user_email' => 'blogtwo@example.com', … … 315 315 ) ); 316 316 317 $signups['blogthree'] = $this->factory->signup->create( array(317 $signups['blogthree'] = self::factory()->signup->create( array( 318 318 'user_login' => 'blogthree', 319 319 'user_email' => 'blogthree@example.com', … … 324 324 ) ); 325 325 326 $signups['blogfour'] = $this->factory->signup->create( array(326 $signups['blogfour'] = self::factory()->signup->create( array( 327 327 'user_login' => 'blogfour', 328 328 'user_email' => 'blogfour@example.com',
Note: See TracChangeset
for help on using the changeset viewer.