Bug 12827: NewOrder needs more unit tests
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 26 Aug 2014 14:43:49 +0000 (16:43 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 18 Sep 2014 00:22:56 +0000 (21:22 -0300)
commit5af96e0f78d676c202f634e45dff7def31d10c4f
treeb76d7f3cf6f3a6cde22521483d027b34607f939e
parent2217f98b7cf1da89ed3e4bcc2cc497fe01df724c
Bug 12827: NewOrder needs more unit tests

NewOrder should be more tested!

This patch moves the existing unit tests into a new file and adds some
unit tests.

Note that there is no DB field aqorders.subscription, so the test in
NewOrder can be removed.

Test plan:
  prove t/db_dependent/Acquisition/NewOrder.t
and
  prove t/db_dependent/Acquisition.t
should return green.

Signed-off-by: Zeno Tajoli <z.tajoli@cineca.it>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Acquisition.pm
t/db_dependent/Acquisition.t
t/db_dependent/Acquisition/NewOrder.t [new file with mode: 0644]