Changeset 38654 for trunk/tests/phpunit/tests/rewrite.php
- Timestamp:
- 09/26/2016 05:01:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.