From ee12e1085aaaa831d34d868672434e0958696b20 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Mon, 8 Oct 2018 17:48:39 +0100 Subject: [PATCH] Bug 20772: (follow-up) Add unit test Add unit test for price_paid Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Illrequests.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index 76de8fa1fb..36ecc89a42 100644 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -37,7 +37,7 @@ use_ok('Koha::Illrequests'); subtest 'Basic object tests' => sub { - plan tests => 21; + plan tests => 22; $schema->storage->txn_begin; @@ -74,6 +74,8 @@ subtest 'Basic object tests' => sub { "Accessurl getter works."); is($illrq_obj->cost, $illrq->{cost}, "Cost getter works."); + is($illrq_obj->price_paid, $illrq->{price_paid}, + "Price_paid getter works."); is($illrq_obj->notesopac, $illrq->{notesopac}, "Notesopac getter works."); is($illrq_obj->notesstaff, $illrq->{notesstaff}, -- 2.19.1