Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 413-420 (lines=8) @@
410
    /**
411
     * @ticket 31265
412
     */
413
    public function test_orderby_space_separated() 
414
    {
415
        $q = new WP_User_Query(
416
            array(
417
            'orderby' => 'login nicename',
418
            'order' => 'ASC',
419
            ) 
420
        );
421
422
        $this->assertContains("ORDER BY user_login ASC, user_nicename ASC", $q->query_orderby);
423
    }
@@ 456-462 (lines=7) @@
453
    /**
454
     * @ticket 31265
455
     */
456
    public function test_orderby_array_contains_all_invalid_items() 
457
    {
458
        $q = new WP_User_Query(
459
            array(
460
            'orderby' => array( 'foo', 'bar', 'baz' ),
461
            ) 
462
        );
463
464
        $this->assertContains("ORDER BY user_login", $q->query_orderby);
465
    }