Changeset 38654
- Timestamp:
- 09/26/2016 05:01:48 PM (8 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r38398 r38654 31 31 update_option( 'posts_per_page', 5 ); 32 32 33 global $wp_rewrite; 34 $wp_rewrite->init(); 35 $wp_rewrite->set_permalink_structure( $this->structure ); 36 33 $this->set_permalink_structure( $this->structure ); 37 34 create_initial_taxonomies(); 38 39 $wp_rewrite->flush_rules();40 35 } 41 36 -
trunk/tests/phpunit/tests/canonical/https.php
r30277 r38654 8 8 class Tests_Canonical_HTTPS extends WP_Canonical_UnitTestCase { 9 9 function setUp() { 10 global $wp_rewrite;11 12 10 parent::setUp(); 13 11 14 $ wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );12 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 15 13 create_initial_taxonomies(); 16 $wp_rewrite->flush_rules();17 $wp_rewrite->init();18 14 19 15 $this->http = set_url_scheme( home_url( 'sample-page/' ), 'http' ); -
trunk/tests/phpunit/tests/query.php
r38585 r38654 6 6 parent::setUp(); 7 7 8 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 8 9 create_initial_taxonomies(); 9 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );10 10 } 11 11 -
trunk/tests/phpunit/tests/query/verboseRewriteRules.php
r34810 r38654 11 11 parent::setUp(); 12 12 13 $this->set_permalink_structure( '/%category%/%year%/%postname%/' ); 13 14 create_initial_taxonomies(); 14 15 $this->set_permalink_structure( '/%category%/%year%/%postname%/' );16 15 } 17 16 } -
trunk/tests/phpunit/tests/rewrite.php
r36750 r38654 12 12 parent::setUp(); 13 13 14 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 14 15 create_initial_taxonomies(); 15 16 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' );17 16 18 17 $this->home_url = get_option( 'home' ); … … 349 348 350 349 $this->assertEquals( $post_id, url_to_postid( get_permalink( $post_id ) ) ); 351 352 $this->set_permalink_structure();353 350 } 354 351 … … 386 383 $this->assertTrue( is_single() ); 387 384 $this->assertFalse( is_404() ); 388 389 $this->set_permalink_structure();390 385 } 391 386 … … 394 389 */ 395 390 public function test_flush_rules_does_not_delete_option() { 396 $this->set_permalink_structure( );391 $this->set_permalink_structure( '' ); 397 392 398 393 $rewrite_rules = get_option( 'rewrite_rules' );
Note: See TracChangeset
for help on using the changeset viewer.