From eef4065daf42117e180607072d95d0857be49f82 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 12 Sep 2018 21:10:13 +0000 Subject: [PATCH] Bug 17602: (QA follow-up) Fix tests Signed-off-by: Jonathan Druart --- t/Koha_ExternalContent_RecordedBooks.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/Koha_ExternalContent_RecordedBooks.t b/t/Koha_ExternalContent_RecordedBooks.t index cccf41c489..5e3a4cc916 100755 --- a/t/Koha_ExternalContent_RecordedBooks.t +++ b/t/Koha_ExternalContent_RecordedBooks.t @@ -8,7 +8,7 @@ use Test::MockModule; use Module::Load::Conditional qw( can_load ); -plan tests => 5; +plan tests => 3; SKIP: { skip "cannot find WebService::ILS::RecordedBooks::Partner", 5 @@ -25,7 +25,8 @@ SKIP: { my $client = Koha::ExternalContent::RecordedBooks->new(); local $@; eval { $client->search({query => "art"}) }; - ok($@ =~ /not authorized/, "Invalid RecordedBooks partner credentials"); + + ok($@ =~ /This endpoint can be called by authorized trusted app or trusted partner only/, "Invalid RecordedBooks partner credentials"); SKIP: { skip "no RecordedBooks partner credentials", 1 unless $ENV{RECORDEDBOOKS_TEST_LIBRARY_ID}; -- 2.11.0