Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 303-310 (lines=8) @@
300
    }
301
302
    // 'page/?([0-9]{1,})/?$' => 'index.php?&paged=$matches[1]',
303
    function test_paged() 
304
    {
305
        update_option('posts_per_page', 2);
306
        self::factory()->post->create_many(5);
307
        for ( $i = 2; $i <= 3; $i++ ) {
308
            $this->go_to("/page/{$i}/");
309
            $this->assertQueryTrue('is_home', 'is_front_page', 'is_paged');
310
        }
311
    }
312
313
    // 'comments/feed/(feed|rdf|rss|rss2|atom)/?$' => 'index.php?&feed=$matches[1]&withcomments=1',
@@ 443-451 (lines=9) @@
440
    }
441
442
    // 'tag/(.+?)/page/?([0-9]{1,})/?$' => 'index.php?tag=$matches[1]&paged=$matches[2]',
443
    function test_tag_paged() 
444
    {
445
        update_option('posts_per_page', 2);
446
        $post_ids = self::factory()->post->create_many(3);
447
        foreach ( $post_ids as $post_id ) {
448
              self::factory()->term->add_post_terms($post_id, 'tag-a', 'post_tag');
449
        }
450
        $this->go_to('/tag/tag-a/page/2/');
451
        $this->assertQueryTrue('is_archive', 'is_tag', 'is_paged');
452
    }
453
454
    // 'tag/(.+?)/?$' => 'index.php?tag=$matches[1]',