Changeset 54710 for trunk/tests/phpunit/tests/wp/removeQueryVar.php
- Timestamp:
- 10/28/2022 02:08:20 PM (17 months ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/wp/removeQueryVar.php
r54642 r54710 3 3 /** 4 4 * @group wp 5 * 6 * @covers WP::remove_query_var 5 7 */ 6 class Tests_WP extends WP_UnitTestCase { 8 class Tests_WP_RemoveQueryVar extends WP_UnitTestCase { 9 7 10 /** 8 11 * @var WP … … 13 16 parent::set_up(); 14 17 $this->wp = new WP(); 15 }16 17 public function test_add_query_var() {18 $public_qv_count = count( $this->wp->public_query_vars );19 20 $this->wp->add_query_var( 'test' );21 $this->wp->add_query_var( 'test2' );22 $this->wp->add_query_var( 'test' );23 24 $this->assertCount( $public_qv_count + 2, $this->wp->public_query_vars );25 $this->assertContains( 'test', $this->wp->public_query_vars );26 $this->assertContains( 'test2', $this->wp->public_query_vars );27 18 } 28 19
Note: See TracChangeset
for help on using the changeset viewer.