Changeset 30277 for trunk/tests/phpunit/tests/canonical/noRewrite.php
- Timestamp:
- 11/08/2014 07:28:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/noRewrite.php
r25002 r30277 8 8 * @group query 9 9 */ 10 class Tests_Canonical_NoRewrite extends Tests_Canonical { 11 12 var $structure = ''; 10 class Tests_Canonical_NoRewrite extends WP_Canonical_UnitTestCase { 13 11 14 12 // These test cases are run against the test handler in WP_Canonical 13 public static function setUpBeforeClass() { 14 self::generate_shared_fixtures(); 15 } 16 17 public static function tearDownAfterClass() { 18 self::delete_shared_fixtures(); 19 } 20 21 public function setUp() { 22 global $wp_rewrite; 23 24 parent::setUp(); 25 26 $wp_rewrite->init(); 27 $wp_rewrite->set_permalink_structure( '' ); 28 $wp_rewrite->flush_rules(); 29 $wp_rewrite->init(); 30 } 31 32 /** 33 * @dataProvider data 34 */ 35 function test( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) { 36 $this->assertCanonical( $test_url, $expected, $ticket, $expected_doing_it_wrong ); 37 } 15 38 16 39 function data() {
Note: See TracChangeset
for help on using the changeset viewer.