Skip to:
Content

BuddyPress.org


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.

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.