Changeset 45588 for trunk/tests/phpunit/tests/query/setupPostdata.php
- Timestamp:
- 07/02/2019 04:43:01 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/setupPostdata.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/setupPostdata.php
r45285 r45588 404 404 function test_setup_postdata_loop() { 405 405 $post_id = self::factory()->post->create( array( 'post_content' => 'global post' ) ); 406 $GLOBALS['wp_query']->post = $GLOBALS['post'] = get_post( $post_id ); 406 $GLOBALS['post'] = get_post( $post_id ); 407 $GLOBALS['wp_query']->post = $GLOBALS['post']; 407 408 408 409 $ids = self::factory()->post->create_many( 5 );
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)