]> git.koha-community.org Git - koha.git/commit
Bug 35398: Unit test
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 28 Feb 2024 16:40:39 +0000 (16:40 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 11 Mar 2024 09:37:00 +0000 (10:37 +0100)
commit4bd1aca6a7e4e616cea6a9bb3822922720bc9ee1
treeb950596c96d9f526833ca38516e3770e07dc287f
parent425bc1240b8786caaa2b414d2f884922b3b1511f
Bug 35398: Unit test

This patch adds the begginings of unit tests for Koha::EDI.  Right now
we only test that a simple QUOTE message creates a basket, adds the item
to said basket and assigns that single item to a corresponding stock
rotation rota as defined by the LRP segment in the QUOTE message.

It lays the foundations for much more rigorous tests to be written to
cover the whole of EDI.pm however.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit de79e957ce82d53d9978551f1d7ef593884daa29)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/Koha/EDI.t [new file with mode: 0755]
t/edi_testfiles/QUOTES_SMALL.CEQ [new file with mode: 0644]