From b28c71a7145435a38f69361d0b0bedb718240a58 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 7 Nov 2019 07:54:53 +0000 Subject: [PATCH] Bug 23075: (RM follow-up) Update mock in tests To prevent GET request redirects we switched from ->request to ->simple_request. This patch updates the mock in the corresponding test to mock simple_request rather than request. Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/SharedContent.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/SharedContent.t b/t/db_dependent/Koha/SharedContent.t index c9b7e25c6a..462a27223f 100644 --- a/t/db_dependent/Koha/SharedContent.t +++ b/t/db_dependent/Koha/SharedContent.t @@ -50,7 +50,7 @@ ok($result->{msg} =~ /Can\'t connect to foo.bar:443/, 'Unable to connect'); is($result->{code}, 500, 'Code is 500'); my $ua = Test::MockModule->new('LWP::UserAgent'); -$ua->mock('request', sub { +$ua->mock('simple_request', sub { return mock_response(); }); -- 2.39.5