WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2015 06:02:16 PM (6 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/link/getNextCommentsLink.php

    r35225 r35242  
    99
    1010    public function test_page_should_respect_value_of_cpage_query_var() {
    11         $p = self::$factory->post->create();
     11        $p = self::factory()->post->create();
    1212        $this->go_to( get_permalink( $p ) );
    1313
     
    2626     */
    2727    public function test_page_should_default_to_1_when_no_cpage_query_var_is_found() {
    28         $p = self::$factory->post->create();
     28        $p = self::factory()->post->create();
    2929        $this->go_to( get_permalink( $p ) );
    3030
Note: See TracChangeset for help on using the changeset viewer.