From e06592d096fb950e11bdc237418a2e8d866fd377 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 --- 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.11.0