- Timestamp:
- 08/26/2014 11:20:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/members/class-bp-signup.php
r8965 r8966 252 252 */ 253 253 public function test_activate_user_accounts_with_blogs() { 254 global $wpdb, $current_site ;254 global $wpdb, $current_site, $base; 255 255 256 256 if ( ! is_multisite() ) { … … 260 260 $signups = array(); 261 261 262 $signups['blogone'] = $this->factory->signup->create( array( 263 'user_login' => 'blogone', 262 // Can't trust this first signup :( 263 $signups['testpath1'] = $this->factory->signup->create( array( 264 'user_login' => 'testpath1', 264 265 'user_email' => 'blogone@example.com', 265 'domain' => $current_site->domain,266 'path' => ' /blogone/',267 'title' => ' Blog One',266 'domain' => '', 267 'path' => '', 268 'title' => '', 268 269 'activation_key' => 'activationkeyblogone', 269 270 ) ); … … 272 273 'user_login' => 'blogtwo', 273 274 'user_email' => 'blogtwo@example.com', 275 'domain' => $current_site->domain, 276 'path' => $base . 'blogtwo', 277 'title' => 'Blog Two', 278 'activation_key' => 'activationkeyblogtwo', 279 ) ); 280 281 $signups['blogthree'] = $this->factory->signup->create( array( 282 'user_login' => 'blogthree', 283 'user_email' => 'blogthree@example.com', 274 284 'domain' => '', 275 285 'path' => '', 276 286 'title' => '', 277 'activation_key' => 'activationkeyblogt wo',278 ) ); 279 280 $signups['blog three'] = $this->factory->signup->create( array(281 'user_login' => 'blog three',282 'user_email' => 'blog three@example.com',287 'activation_key' => 'activationkeyblogthree', 288 ) ); 289 290 $signups['blogfour'] = $this->factory->signup->create( array( 291 'user_login' => 'blogfour', 292 'user_email' => 'blogfour@example.com', 283 293 'domain' => $current_site->domain, 284 'path' => '/blogthree/',285 'title' => 'Blog Three',286 'activation_key' => 'activationkeyblog three',294 'path' => $base . 'blogfour', 295 'title' => 'Blog Four', 296 'activation_key' => 'activationkeyblogfour', 287 297 ) ); 288 298 … … 307 317 308 318 foreach ( $users as $path => $user ) { 319 // Can't trust this first signup :( 320 if ( 'testpath1' == $path ) { 321 continue; 322 } 323 309 324 $blogs[ $path ] = get_active_blog_for_user( $user->ID ); 310 325 }
Note: See TracChangeset
for help on using the changeset viewer.