LP#1257915: add live_t tests
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 1 May 2017 20:45:29 +0000 (16:45 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 1 May 2017 20:50:45 +0000 (16:50 -0400)
commite1cda10bdd842988700b021182c3b5379d595c2e
tree67a2a6ff315b79ec4a9181f20ab7db3943810655
parent076328c9e501f5b33274212428d0fad01aaa81db
LP#1257915: add live_t tests

And here's a test plan for humans:

[1] Create a purchase order with, say, 3 lineitems and 2
    copies on each of these.
[2] Receive the first two lineitems outright.
[3] Receive one of the copies on the last lineitem and cancel
    the other with a cancellation reason that's permanent (e.g.,
    bad ISBN) rather than temporary (e.g., backordered).
[4] Note that the purchase order's state remains 'on-order'
[5] Apply the patch.
[6] Repeat steps #1-4. This time, the PO's state should be
    'received'.
[7] Repeat steps #1-4, but this time, choose backordered as
    the cancellation reason. This time, the PO's state should
    remain 'on-order'.

It should be noted that the patches for this bug do *not*
retrospectively mark purchase orders as being received.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/live_t/22-acq-po-status.t [new file with mode: 0644]