Make WordPress Core


Ignore:
Timestamp:
08/27/2016 03:27:35 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Add support for is_front_page() to assertQueryTrue() and assert that all the tested conditions are supported by the method.

Fixes #37849

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r38398 r38405  
    578578            'is_embed',
    579579            'is_feed',
     580            'is_front_page',
    580581            'is_home',
    581582            'is_month',
     
    597598        $true = func_get_args();
    598599
     600        foreach ( $true as $true_thing ) {
     601            $this->assertContains( $true_thing, $all, "{$true_thing}() is not handled by assertQueryTrue()." );
     602        }
     603
    599604        $passed = true;
    600605        $not_false = $not_true = array(); // properties that were not set to expected values
Note: See TracChangeset for help on using the changeset viewer.