Make WordPress Core

Changeset 1259 in tests


Ignore:
Timestamp:
04/14/2013 03:46:04 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Add phpdoc for WP_UnitTest_Factory public variables. props bobbravo2. fixes #24079.

Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/factory.php

    r1241 r1259  
    22
    33class WP_UnitTest_Factory {
     4
     5    /**
     6     * @var WP_UnitTest_Factory_For_Post
     7     */
     8    public $post;
     9
     10    /**
     11     * @var WP_UnitTest_Factory_For_Attachment
     12     */
     13    public $attachment;
     14
     15    /**
     16     * @var WP_UnitTest_Factory_For_Comment
     17     */
     18    public $comment;
     19
     20    /**
     21     * @var WP_UnitTest_Factory_For_User
     22     */
     23    public $user;
     24
     25    /**
     26     * @var WP_UnitTest_Factory_For_Term
     27     */
     28    public $term;
     29
     30    /**
     31     * @var WP_UnitTest_Factory_For_Term
     32     */
     33    public $category;
     34
     35    /**
     36     * @var WP_UnitTest_Factory_For_Term
     37     */
     38    public $tag;
     39
     40    /**
     41     * @var WP_UnitTest_Factory_For_Blog
     42     */
     43    public $blog;
     44
    445    function __construct() {
    546        $this->post = new WP_UnitTest_Factory_For_Post( $this );
  • trunk/includes/testcase.php

    r1221 r1259  
    77
    88    protected static $forced_tickets = array();
     9
     10    /**
     11     * @var WP_UnitTest_Factory
     12     */
     13    protected $factory;
    914
    1015    function setUp() {
Note: See TracChangeset for help on using the changeset viewer.