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/tests/query/conditionals.php

    r36625 r38405  
    3030    function test_home() {
    3131        $this->go_to('/');
    32         $this->assertQueryTrue('is_home');
     32        $this->assertQueryTrue( 'is_home', 'is_front_page' );
    3333    }
    3434
     
    256256        for ( $i = 2; $i <= 3; $i++ ) {
    257257            $this->go_to("/page/{$i}/");
    258             $this->assertQueryTrue('is_home', 'is_paged');
     258            $this->assertQueryTrue( 'is_home', 'is_front_page', 'is_paged' );
    259259        }
    260260    }
Note: See TracChangeset for help on using the changeset viewer.