Skip to:
Content

BuddyPress.org

Changeset 8596


Ignore:
Timestamp:
07/11/2014 08:33:57 PM (12 years ago)
Author:
boonebgorges
Message:

Declare paths explicitly when using the blogs factory in the unit tests

Location:
trunk/tests/phpunit/testcases
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/avatars.php

    r8406 r8596  
    7070                $blog_id = $this->factory->blog->create( array(
    7171                        'user_id' => $this->administrator,
    72                         'title'   => 'Test Title'
     72                        'title'   => 'Test Title',
     73                        'path'    => '/path' . time() . '/',
    7374                ) );
    7475
  • trunk/tests/phpunit/testcases/url/url.php

    r8114 r8596  
    4949                if ( is_multisite() ) {
    5050                        $original_root_blog = bp_get_root_blog_id();
    51                         $blog_id = $this->factory->blog->create();
     51                        $blog_id = $this->factory->blog->create( array(
     52                                'path' => '/path' . time() . '/',
     53                        ) );
    5254                        buddypress()->root_blog_id = $blog_id;
    5355
Note: See TracChangeset for help on using the changeset viewer.