]> 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)
committerMason James <mtj@kohaaloha.com>
Fri, 29 May 2015 07:58:54 +0000 (19:58 +1200)
commit24da605c7b69b0a20e8d67416f762fc3c0d95cb9
treeb86c1b2a99662d1358313b212df2826bc07a9c96
parentfddeb231827dfb17af18ecd4ea0e7f26644105b1
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>
Signed-off-by: Mason James <mtj@kohaaloha.com>
t/db_dependent/Labels/t_Batch.t