Changeset 54710 for trunk/tests/phpunit/tests/wp/addQueryVar.php
- Timestamp:
- 10/28/2022 02:08:20 PM (2 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/wp/addQueryVar.php
r54642 r54710 3 3 /** 4 4 * @group wp 5 * 6 * @covers WP::add_query_var 5 7 */ 6 class Tests_WP extends WP_UnitTestCase { 8 class Tests_WP_AddQueryVar extends WP_UnitTestCase { 9 7 10 /** 8 11 * @var WP … … 26 29 $this->assertContains( 'test2', $this->wp->public_query_vars ); 27 30 } 28 29 public function test_remove_query_var() {30 $public_qv_count = count( $this->wp->public_query_vars );31 32 $this->wp->add_query_var( 'test' );33 $this->assertContains( 'test', $this->wp->public_query_vars );34 $this->wp->remove_query_var( 'test' );35 36 $this->assertCount( $public_qv_count, $this->wp->public_query_vars );37 }38 31 }
Note: See TracChangeset
for help on using the changeset viewer.