Changeset 30277 for trunk/tests/phpunit/tests/canonical/customRules.php
- Timestamp:
- 11/08/2014 07:28:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/customRules.php
r25002 r30277 1 1 <?php 2 3 require_once dirname( dirname( __FILE__ ) ) . '/canonical.php';4 2 5 3 /** … … 8 6 * @group query 9 7 */ 10 class Tests_Canonical_CustomRules extends Tests_Canonical { 8 class Tests_Canonical_CustomRules extends WP_Canonical_UnitTestCase { 9 11 10 function setUp() { 12 11 parent::setUp(); … … 15 14 $wp_rewrite->add_rule('ccr/(.+?)/sort/(asc|desc)', 'index.php?category_name=$matches[1]&order=$matches[2]', 'top'); // ccr = Custom_Cat_Rule 16 15 $wp_rewrite->flush_rules(); 16 } 17 18 /** 19 * @dataProvider data 20 */ 21 function test( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) { 22 $this->assertCanonical( $test_url, $expected, $ticket, $expected_doing_it_wrong ); 17 23 } 18 24
Note: See TracChangeset
for help on using the changeset viewer.