Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/07/2015 12:35:06 PM (11 years ago)
Author:
netweb
Message:

Add support for BuddyPress PHPUnit test integration

  • Bootstrap and load /src/bbpress.php when loading the test environment
  • Detect and load BuddyPress when running the BuddyPress PHPUnit tests
  • Setup BP_UnitTest_Factory in BBP_UnitTestCase during new BuddyPress PHPUnit test integration
  • Bootstrap and load new factory class BBP_UnitTest_Factory_For_Forum for creating forums

Props boonebgorges. See #2782

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r5671 r5673  
    3030
    3131        $this->factory = new BBP_UnitTest_Factory;
     32
     33        if ( class_exists( 'BP_UnitTest_Factory' ) ) {
     34            $this->bp_factory = new BP_UnitTest_Factory();
     35        }
    3236    }
    3337
Note: See TracChangeset for help on using the changeset viewer.