Skip to:
Content

BuddyPress.org

Changeset 8597


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

More improvements to path generation in blog-related unit tests

Again, we're trying to avoid duplicate paths, so that WP doesn't throw a
hissy fit when trying to use the blog factory.

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

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/blogs/class-bp-blogs-blog.php

    r8594 r8597  
    5252            'title' => 'The Foo Bar Blog',
    5353            'user_id' => $u,
    54             'path' => __METHOD__ . time(),
     54            'path' => '/path' . rand() . time() . '/',
    5555        ) );
    5656        bp_blogs_record_existing_blogs();
     
    8282            'title' => 'Foo Bar Blog',
    8383            'user_id' => $u,
    84             'path' => __METHOD__ . time(),
     84            'path' => '/path' . rand() . time() . '/',
    8585        ) );
    8686        bp_blogs_record_existing_blogs();
  • trunk/tests/phpunit/testcases/core/avatars.php

    r8596 r8597  
    7171            'user_id' => $this->administrator,
    7272            'title'   => 'Test Title',
    73             'path'    => '/path' . time() . '/',
     73            'path'    => '/path' . rand() . time() . '/',
    7474        ) );
    7575
  • trunk/tests/phpunit/testcases/url/url.php

    r8596 r8597  
    5050            $original_root_blog = bp_get_root_blog_id();
    5151            $blog_id = $this->factory->blog->create( array(
    52                 'path' => '/path' . time() . '/',
     52                'path' => '/path' . rand() . time() . '/',
    5353            ) );
    5454            buddypress()->root_blog_id = $blog_id;
Note: See TracChangeset for help on using the changeset viewer.