Changeset 51404 for trunk/tests/phpunit/tests/wp.php
- Timestamp:
- 07/12/2021 10:35:44 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/wp.php
r51367 r51404 23 23 24 24 $this->assertCount( $public_qv_count + 2, $this->wp->public_query_vars ); 25 $this->assert True( in_array( 'test', $this->wp->public_query_vars, true ));26 $this->assert True( in_array( 'test2', $this->wp->public_query_vars, true ));25 $this->assertContains( 'test', $this->wp->public_query_vars ); 26 $this->assertContains( 'test2', $this->wp->public_query_vars ); 27 27 } 28 28 … … 31 31 32 32 $this->wp->add_query_var( 'test' ); 33 $this->assert True( in_array( 'test', $this->wp->public_query_vars, true ));33 $this->assertContains( 'test', $this->wp->public_query_vars ); 34 34 $this->wp->remove_query_var( 'test' ); 35 35
Note: See TracChangeset
for help on using the changeset viewer.