From 5e3f428ade0a20062df1fd2852cb4cb99ae06f7b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Nov 2018 14:25:02 -0300 Subject: [PATCH] Bug 20996: Remove warning 'Un-mocked method' t/db_dependent/api/v1/illrequests.t .. Un-mocked method 'status_graph()' called at /home/vagrant/kohaclone/Koha/Illrequest.pm line 439. Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- t/db_dependent/api/v1/illrequests.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/api/v1/illrequests.t b/t/db_dependent/api/v1/illrequests.t index ec471830fb..44fcd9a292 100644 --- a/t/db_dependent/api/v1/illrequests.t +++ b/t/db_dependent/api/v1/illrequests.t @@ -56,6 +56,9 @@ subtest 'list() tests' => sub { } } ); + $backend->mock( + 'status_graph', sub {}, + ); # Mock Koha::Illrequest::load_backend (to load Mocked Backend) my $illreqmodule = Test::MockModule->new('Koha::Illrequest'); -- 2.39.5