]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 19 Mar 2024 15:21:43 +0000 (15:21 +0000)
commit7f1cb43cee6ae242e3c1be2414cea9de6a6538d0
tree0abbce40d7440fd51e99bbace08f1cc5313de75c
parent75d357703a4499ba8687fbe8364eeb917b650d75
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>
(cherry picked from commit 4bd1aca6a7e4e616cea6a9bb3822922720bc9ee1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/Koha/EDI.t [new file with mode: 0755]
t/edi_testfiles/QUOTES_SMALL.CEQ [new file with mode: 0644]