Code Duplication    Length = 7-7 lines in 2 locations

tests/phpunit/tests/query/conditionals.php 2 locations

@@ 1170-1176 (lines=7) @@
1167
    /**
1168
     * @ticket 31271
1169
     */
1170
    function test_is_page_template_array() 
1171
    {
1172
        $post_id = self::factory()->post->create(array( 'post_type' => 'page' ));
1173
        update_post_meta($post_id, '_wp_page_template', 'example.php');
1174
        $this->go_to("/?page_id=$post_id");
1175
        $this->assertFalse(is_page_template(array( 'test.php' )));
1176
        $this->assertTrue(is_page_template(array('test.php', 'example.php')));
1177
    }
1178
1179
    /**
@@ 1182-1188 (lines=7) @@
1179
    /**
1180
     * @ticket 18375
1181
     */
1182
    function test_is_page_template_other_post_type() 
1183
    {
1184
        $post_id = self::factory()->post->create(array( 'post_type' => 'post' ));
1185
        update_post_meta($post_id, '_wp_page_template', 'example.php');
1186
        $this->go_to(get_post_permalink($post_id));
1187
        $this->assertFalse(is_page_template(array( 'test.php' )));
1188
        $this->assertTrue(is_page_template(array( 'test.php', 'example.php' )));
1189
    }
1190
1191
    /**