WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/27/2016 03:26:15 AM (5 years ago)
Author:
ericlewis
Message:

Build/Test Tools: Move class WP_UnitTest_Factory into its own file.

In [36347] we moved all PHP factory classes into their own files except the main class. The main class is now in its own file, and factory.php is solely an include manifest for all factory classes.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory.php

    r36407 r36409  
    11<?php
    2 
    3 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-thing.php' );
    4 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-post.php' );
    5 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-attachment.php' );
    6 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-user.php' );
    7 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-comment.php' );
    8 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-blog.php' );
    9 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-network.php' );
    10 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-term.php' );
    11 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-generator-sequence.php' );
    12 require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-callback-after-create.php' );
    132
    143class WP_UnitTest_Factory {
Note: See TracChangeset for help on using the changeset viewer.