Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/27/2015 01:07:53 PM (6 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/functions/forum.php

    r5925 r5947  
    1616    public function test_bbp_insert_forum() {
    1717
    18         $f = $this->factory->forum->create();
     18        $f = $this->factory->forum->create( array(
     19            'post_title' => 'Forum 1',
     20            'post_content' => 'Content of Forum 1',
     21        ) );
    1922
    2023        $now = time();
Note: See TracChangeset for help on using the changeset viewer.