Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/27/2015 01:07:53 PM (11 years ago)
Author:
netweb
Message:

Tests: Updated bbPress PHPUnit test suite compatibility with upstream WordPress changes.

  • ​[WP35244] WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static), updated bbPress unit tests where explicitly set content and titles are required.

Props thebrandonallen. Fixes #2883

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/forums/template/feeds.php

    r5914 r5947  
    2020                }
    2121
    22                 $f = $this->factory->forum->create();
     22                $f = $this->factory->forum->create( array(
     23                        'post_title' => 'Forum 1',
     24                ) );
    2325
    2426                $feed_link = bbp_get_forum_topics_feed_link( $f );
    … …  
    4042                }
    4143
    42                 $f = $this->factory->forum->create();
     44                $f = $this->factory->forum->create( array(
     45                        'post_title' => 'Forum 1',
     46                ) );
    4347
    4448                $feed_link = bbp_get_forum_replies_feed_link( $f );
Note: See TracChangeset for help on using the changeset viewer.