mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@38405 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -29,7 +29,7 @@ class Tests_Query_Conditionals extends WP_UnitTestCase {
|
||||
|
||||
function test_home() {
|
||||
$this->go_to('/');
|
||||
$this->assertQueryTrue('is_home');
|
||||
$this->assertQueryTrue( 'is_home', 'is_front_page' );
|
||||
}
|
||||
|
||||
function test_404() {
|
||||
@@ -255,7 +255,7 @@ class Tests_Query_Conditionals extends WP_UnitTestCase {
|
||||
self::factory()->post->create_many( 5 );
|
||||
for ( $i = 2; $i <= 3; $i++ ) {
|
||||
$this->go_to("/page/{$i}/");
|
||||
$this->assertQueryTrue('is_home', 'is_paged');
|
||||
$this->assertQueryTrue( 'is_home', 'is_front_page', 'is_paged' );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user