]> git.koha-community.org Git - koha.git/commit
Bug 14204: Fix t/db_dependent/Labels/t_Batch.t failing test from Bug 12991
authorNick Clemens <nick@quecheelibrary.org>
Thu, 14 May 2015 19:56:43 +0000 (19:56 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 17 May 2015 23:26:20 +0000 (11:26 +1200)
commit15559691ffe2f3c5ca60f76bfe34c184fc9fdb58
tree87d57daa24dd718f31ba91f048fdacf5748e9a41
parent6e8ff4ed49e24e10189ac0be3d050abf27daa5c6
Bug 14204: Fix t/db_dependent/Labels/t_Batch.t failing test from Bug 12991

This patch updaes the batch_id variable after items are added to test batch

To test:
1. prove t/db_dependent/Labels/t_Batch.t and see two tests fail
2. apply patch
3. prove again, tests pass!

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
NOTE: The $batch->add_item() call to C4::Creators::Batch::add_item
      triggers the change of the batch_id so this line is necessary!
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit ad3b05996bb5c9c67fc419911fbe460fb3e523b7)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
t/db_dependent/Labels/t_Batch.t