Changeset 38405
- Timestamp:
- 08/27/2016 03:27:35 PM (9 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r38398 r38405 578 578 'is_embed', 579 579 'is_feed', 580 'is_front_page', 580 581 'is_home', 581 582 'is_month', … … 597 598 $true = func_get_args(); 598 599 600 foreach ( $true as $true_thing ) { 601 $this->assertContains( $true_thing, $all, "{$true_thing}() is not handled by assertQueryTrue()." ); 602 } 603 599 604 $passed = true; 600 605 $not_false = $not_true = array(); // properties that were not set to expected values -
trunk/tests/phpunit/tests/query/conditionals.php
r36625 r38405 30 30 function test_home() { 31 31 $this->go_to('/'); 32 $this->assertQueryTrue( 'is_home');32 $this->assertQueryTrue( 'is_home', 'is_front_page' ); 33 33 } 34 34 … … 256 256 for ( $i = 2; $i <= 3; $i++ ) { 257 257 $this->go_to("/page/{$i}/"); 258 $this->assertQueryTrue( 'is_home', 'is_paged');258 $this->assertQueryTrue( 'is_home', 'is_front_page', 'is_paged' ); 259 259 } 260 260 }
Note: See TracChangeset
for help on using the changeset viewer.