Changeset 45607 for trunk/tests/phpunit/tests/wp.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/wp.php
r44577 r45607 23 23 24 24 $this->assertSame( $public_qv_count + 2, count( $this->wp->public_query_vars ) ); 25 $this->assertTrue( in_array( 'test', $this->wp->public_query_vars ) );26 $this->assertTrue( in_array( 'test2', $this->wp->public_query_vars ) );25 $this->assertTrue( in_array( 'test', $this->wp->public_query_vars, true ) ); 26 $this->assertTrue( in_array( 'test2', $this->wp->public_query_vars, true ) ); 27 27 } 28 28 … … 31 31 32 32 $this->wp->add_query_var( 'test' ); 33 $this->assertTrue( in_array( 'test', $this->wp->public_query_vars ) );33 $this->assertTrue( in_array( 'test', $this->wp->public_query_vars, true ) ); 34 34 $this->wp->remove_query_var( 'test' ); 35 35
Note: See TracChangeset
for help on using the changeset viewer.