Bug 19693: (QA follow-up) Replace changed tag test
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 7 Oct 2022 08:41:20 +0000 (08:41 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 24 Oct 2022 20:20:26 +0000 (17:20 -0300)
commitd7d33744ba34ef95aa3845ca4160abdece4d0f7a
tree6347a183c81e43a32b0800edfc6f8ddffd8e5a9a
parent03da66ce20ea6b8dd9e46841c3c8df427efbe4e4
Bug 19693: (QA follow-up) Replace changed tag test

The test
  $MARCfrom->field('1..', '2..'))[0]->tag ne ($MARCto->field('1..', '2..'))[0]->tag
is not completely consistent with following code in sub merge.
I decided to get the authtype code from the old record that comes
from Koha and should include the type.
Remaining changes refer to indentation/comments.

Test plan:
Run t/db_dependent/Authority/Merge.t
Note: The test actually could be extended a bit for mocking MARC
flavor, but needs some additional framework support to work.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/AuthoritiesMarc.pm