Make WordPress Core


Ignore:
Timestamp:
10/17/2015 06:02:16 PM (10 years ago)
Author:
wonderboymusic
Message:

Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop.

Props nerrad, wonderboymusic.
See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/updateBlogDetails.php

    r35225 r35242  
    2626
    2727    function test_update_blog_details() {
    28         $blog_id = self::$factory->blog->create();
     28        $blog_id = self::factory()->blog->create();
    2929
    3030        $result = update_blog_details( $blog_id, array( 'domain' => 'example.com', 'path' => 'my_path/' ) );
     
    5454        $test_action_counter = 0;
    5555
    56         $blog_id = self::$factory->blog->create();
     56        $blog_id = self::factory()->blog->create();
    5757
    5858        // Set an initial value of '1' for the flag when '0' is the flag value being tested.
Note: See TracChangeset for help on using the changeset viewer.