Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 1502-1520 (lines=19) @@
1499
    /**
1500
     * @ticket 22212
1501
     */
1502
    public function test_role__in_role__not_in_combined() 
1503
    {
1504
        foreach ( self::$sub_ids as $subscriber ) {
1505
            $subscriber = get_user_by('ID', $subscriber);
1506
            $subscriber->add_role('editor');
1507
        }
1508
1509
        $users = get_users(
1510
            array(
1511
            'role__in'     => 'editor',
1512
            ) 
1513
        );
1514
1515
        $this->assertEquals(5, count($users));
1516
1517
        $users = get_users(
1518
            array(
1519
            'role__in'     => 'editor',
1520
            'role__not_in' => 'subscriber',
1521
            ) 
1522
        );
1523
@@ 1548-1566 (lines=19) @@
1545
    /**
1546
     * @ticket 22212
1547
     */
1548
    public function test_role__not_in_user_without_role() 
1549
    {
1550
        $user_without_rule = get_user_by('ID', self::$sub_ids[0]);
1551
1552
        $user_without_rule->remove_role('subscriber');
1553
1554
        $users = get_users(
1555
            array(
1556
            'role__not_in' => 'subscriber',
1557
            ) 
1558
        );
1559
1560
        // +1 for the default user created during installation.
1561
        $this->assertEquals(12, count($users));
1562
1563
        $users = get_users(
1564
            array(
1565
            'role__not_in' => 'editor',
1566
            ) 
1567
        );
1568
1569
        // +1 for the default user created during installation.