View | Details | Raw Unified | Return to bug 39007
Collapse All | Expand All

(-)a/t/db_dependent/api/v1/erm_sushi_services.t (-4 / +2 lines)
Lines 104-114 subtest 'get() tests' => sub { Link Here
104
    my @response_fields        = map { $_ } keys %$sushi_service;
104
    my @response_fields        = map { $_ } keys %$sushi_service;
105
    my @new_fields_in_response = array_minus( @response_fields, @expected_fields );
105
    my @new_fields_in_response = array_minus( @response_fields, @expected_fields );
106
106
107
    my $new_fields_string =
107
    is( scalar(@new_fields_in_response), 0, "Compare response from sushi server" )
108
          "This is not a new error within Koha, the following new field(s) have been added to the API response: "
108
        or diag "This is not a new error within Koha, the following new field(s) have been added to the API response: "
109
        . join( ', ', @new_fields_in_response )
109
        . join( ', ', @new_fields_in_response )
110
        . '. They should be added to the API definition';
110
        . '. They should be added to the API definition';
111
    warning_like { scalar(@new_fields_in_response) } 0, $new_fields_string;
112
111
113
    $schema->storage->txn_rollback;
112
    $schema->storage->txn_rollback;
114
};
113
};
115
- 

Return to bug 39007