Changeset 30277 for trunk/tests/phpunit/tests/canonical/pageOnFront.php
- Timestamp:
- 11/08/2014 07:28:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/pageOnFront.php
r28966 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_PageOnFront extends Tests_Canonical { 8 class Tests_Canonical_PageOnFront extends WP_Canonical_UnitTestCase { 9 public static function setUpBeforeClass() { 10 self::generate_shared_fixtures(); 11 } 12 13 public static function tearDownAfterClass() { 14 self::delete_shared_fixtures(); 15 } 16 11 17 function setUp() { 12 18 parent::setUp(); … … 23 29 parent::tearDown(); 24 30 $wp_rewrite->init(); 31 } 32 33 /** 34 * @dataProvider data 35 */ 36 function test( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) { 37 $this->assertCanonical( $test_url, $expected, $ticket, $expected_doing_it_wrong ); 25 38 } 26 39
Note: See TracChangeset
for help on using the changeset viewer.