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/topics/template/topic.php

    r5879 r5947  
    5858        $f = $this->factory->forum->create();
    5959        $t = $this->factory->topic->create( array(
     60            'post_title' => 'Topic 1',
    6061            'post_parent' => $f,
    6162            'topic_meta' => array(
     
    7980        $f = $this->factory->forum->create();
    8081        $t = $this->factory->topic->create( array(
     82            'post_title' => 'Topic 1',
    8183            'post_parent' => $f,
    8284            'topic_meta' => array(
     
    108110        $f = $this->factory->forum->create();
    109111        $t = $this->factory->topic->create( array(
     112            'post_content' => 'Content of Topic 1',
    110113            'post_parent' => $f,
    111114            'topic_meta' => array(
Note: See TracChangeset for help on using the changeset viewer.