From 43f4c1ef4997ade0b733294be2974b54e3eaf5e8 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 14 Feb 2019 13:32:02 +0000 Subject: [PATCH] Bug 20750: (follow-up) Remove status_alias test As per item 8) here: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20750#c64 This test is now redundant. We can't test the return of $req->status_alias against the value of $req->{status_alias} any more since we've overloaded the status_alias method and it won't always return the value of the object's property. We test the functionality of the status_alias method elsewhere so we're still covered. --- t/db_dependent/Illrequests.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/db_dependent/Illrequests.t b/t/db_dependent/Illrequests.t index ffbc98dc4f..9046852b45 100644 --- a/t/db_dependent/Illrequests.t +++ b/t/db_dependent/Illrequests.t @@ -39,7 +39,7 @@ use_ok('Koha::Illrequests'); subtest 'Basic object tests' => sub { - plan tests => 25; + plan tests => 24; $schema->storage->txn_begin; @@ -62,8 +62,6 @@ subtest 'Basic object tests' => sub { "Branchcode getter works."); is($illrq_obj->status, $illrq->{status}, "Status getter works."); - is($illrq_obj->status_alias, $illrq->{status_alias}, - "Status_alias getter works."); is($illrq_obj->placed, $illrq->{placed}, "Placed getter works."); is($illrq_obj->replied, $illrq->{replied}, -- 2.11.0