WP_UnitTest_Factory::__construct PHP Method

__construct() public method

public __construct ( )
    function __construct()
    {
        $this->post = new WP_UnitTest_Factory_For_Post($this);
        $this->attachment = new WP_UnitTest_Factory_For_Attachment($this);
        $this->comment = new WP_UnitTest_Factory_For_Comment($this);
        $this->user = new WP_UnitTest_Factory_For_User($this);
        $this->term = new WP_UnitTest_Factory_For_Term($this);
        $this->category = new WP_UnitTest_Factory_For_Term($this, 'category');
        $this->tag = new WP_UnitTest_Factory_For_Term($this, 'post_tag');
        if (is_multisite()) {
            $this->blog = new WP_UnitTest_Factory_For_Blog($this);
            $this->network = new WP_UnitTest_Factory_For_Network($this);
        }
    }

Usage Example

示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->relationship = new PF_UnitTest_Factory_For_Relationship($this);
     $this->feed = new PF_UnitTest_Factory_For_Feed($this);
     $this->feed_item = new PF_UnitTest_Factory_For_Feed_Item($this);
 }
All Usage Examples Of WP_UnitTest_Factory::__construct
WP_UnitTest_Factory