From ce933b238c3756a74fd857ddbdc0c90f64e22504 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 --- 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 761de9f12b..bca0ea6abc 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.11.0