From 9723475a17021ab0f5b54767aa0eb2c9e79f672c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 3 Feb 2025 09:50:18 +0100 Subject: [PATCH] Bug 39007: [24.05] Replace warning_like with is --- t/db_dependent/api/v1/erm_sushi_services.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/api/v1/erm_sushi_services.t b/t/db_dependent/api/v1/erm_sushi_services.t index 7d8a242454d..ac32ee29a49 100755 --- a/t/db_dependent/api/v1/erm_sushi_services.t +++ b/t/db_dependent/api/v1/erm_sushi_services.t @@ -104,11 +104,10 @@ subtest 'get() tests' => sub { my @response_fields = map { $_ } keys %$sushi_service; my @new_fields_in_response = array_minus( @response_fields, @expected_fields ); - my $new_fields_string = - "This is not a new error within Koha, the following new field(s) have been added to the API response: " + is( scalar(@new_fields_in_response), 0, "Compare response from sushi server" ) + or diag "This is not a new error within Koha, the following new field(s) have been added to the API response: " . join( ', ', @new_fields_in_response ) . '. They should be added to the API definition'; - warning_like { scalar(@new_fields_in_response) } 0, $new_fields_string; $schema->storage->txn_rollback; }; -- 2.34.1