Skip to content

Commit c9bfda4

Browse files
committed
Document shared fixtures.
1 parent 6d8d797 commit c9bfda4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/phpunit/tests/general/paginateLinks.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@ class Tests_General_PaginateLinks extends WP_UnitTestCase {
99

1010
private $i18n_count = 0;
1111

12+
/**
13+
* Post IDs created for shared fixtures.
14+
*
15+
* @var int[]
16+
*/
1217
public static $post_ids = array();
1318

19+
/**
20+
* Category ID created for shared fixtures.
21+
*
22+
* @var int
23+
*/
1424
public static $category_id = 0;
1525

26+
/**
27+
* Set up shared fixtures.
28+
*
29+
* @param WP_UnitTest_Factory $factory Factory instance.
30+
*/
1631
public static function wpSetUpBeforeClass( $factory ) {
1732
self::$category_id = $factory->term->create(
1833
array(

0 commit comments

Comments
 (0)