Changeset 64016
- Timestamp:
- 09/30/2026 03:39:47 PM (13 hours ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 3 edited
-
includes/testcase-canonical.php (modified) (1 diff)
-
tests/query/stickies.php (modified) (2 diffs)
-
tests/query/thePost.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r61136 r64016 33 33 $this->set_permalink_structure( $this->structure ); 34 34 create_initial_taxonomies(); 35 flush_rewrite_rules( false ); 35 36 } 36 37 -
trunk/tests/phpunit/tests/query/stickies.php
r55822 r64016 9 9 class Tests_Query_Stickies extends WP_UnitTestCase { 10 10 public static $posts = array(); 11 private static $original_sticky_posts; 11 12 12 13 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 14 self::$original_sticky_posts = get_option( 'sticky_posts' ); 15 update_option( 'sticky_posts', array() ); 16 13 17 // Set post times to get a reliable order. 14 18 $now = time(); … … 25 29 stick_post( self::$posts[14] ); 26 30 stick_post( self::$posts[8] ); 31 } 32 33 public static function wpTearDownAfterClass() { 34 update_option( 'sticky_posts', self::$original_sticky_posts ); 27 35 } 28 36 -
trunk/tests/phpunit/tests/query/thePost.php
r61038 r64016 111 111 'post_type' => 'page', 112 112 'post__in' => self::$page_child_ids, 113 'orderby' => ' id',113 'orderby' => 'ID', 114 114 'order' => 'ASC', 115 115 )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)