Bug 1953: updating bad unit test for C4::Items::GetItemsForInventory
authorAndrew Moore <andrew.moore@liblime.com>
Thu, 31 Jul 2008 13:58:43 +0000 (08:58 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 1 Aug 2008 04:01:52 +0000 (23:01 -0500)
commit7350505f9c0e486da1130e96e86db0ba1f262ce5
treed37be13f1b5a52d7005a6445a3c89c4a4e473073
parent88889f38f599f54735c645836cefa68e7cc66f4c
Bug 1953: updating bad unit test for C4::Items::GetItemsForInventory

The tests I wrote for C4::Items::GetItemsForInventory confused the differences
between biblionumber and itemnumber. That wasn't uncovered on my limited test
database, but I uncovered it later.

This fixes that problem by populating a $self->{'items'} list with details of any items
added by KohaTest::add_biblios. Then, tests can probe there for the details of items
they should expect to find when searching.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
t/lib/KohaTest.pm
t/lib/KohaTest/Items/GetItemsForInventory.pm