Code Duplication    Length = 26-27 lines in 2 locations

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

@@ 1042-1067 (lines=26) @@
1039
    /**
1040
     * @ticket 36624
1041
     */
1042
    public function test_nicename__in_returns_users_with_included_nicenames() 
1043
    {
1044
        wp_update_user(
1045
            array(
1046
            'ID' => self::$author_ids[0],
1047
            'user_nicename' => 'peter'
1048
            ) 
1049
        );
1050
1051
        wp_update_user(
1052
            array(
1053
            'ID' => self::$author_ids[1],
1054
            'user_nicename' => 'paul'
1055
            ) 
1056
        );
1057
1058
        wp_update_user(
1059
            array(
1060
            'ID' => self::$author_ids[2],
1061
            'user_nicename' => 'mary'
1062
            ) 
1063
        );
1064
1065
        $q = new WP_User_Query(
1066
            array (
1067
            'nicename__in' => array( 'peter', 'paul', 'mary' )
1068
            ) 
1069
        );
1070
@@ 1120-1146 (lines=27) @@
1117
    /**
1118
     * @ticket 36624
1119
     */
1120
    public function test_orderby_nicename__in() 
1121
    {
1122
        wp_update_user(
1123
            array(
1124
            'ID' => self::$author_ids[0],
1125
            'user_nicename' => 'peter'
1126
            ) 
1127
        );
1128
1129
        wp_update_user(
1130
            array(
1131
            'ID' => self::$author_ids[1],
1132
            'user_nicename' => 'paul'
1133
            ) 
1134
        );
1135
1136
        wp_update_user(
1137
            array(
1138
            'ID' => self::$author_ids[2],
1139
            'user_nicename' => 'mary'
1140
            ) 
1141
        );
1142
1143
        $q = new WP_User_Query(
1144
            array (
1145
            'nicename__in' => array( 'mary', 'peter', 'paul' ),
1146
            'orderby' => 'nicename__in'
1147
            ) 
1148
        );
1149