From: Jane Sandberg Date: Thu, 29 Aug 2019 03:05:09 +0000 (-0700) Subject: LP1841871: Add a test for creating authority record from bib field X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=35338601f56e3961672e44b1c6001469be9d05c9;p=evergreen%2Ftadl.git LP1841871: Add a test for creating authority record from bib field Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/live_t/29-create-authority-record-from-bib-field.t b/Open-ILS/src/perlmods/live_t/29-create-authority-record-from-bib-field.t new file mode 100644 index 0000000000..0c874e4b51 --- /dev/null +++ b/Open-ILS/src/perlmods/live_t/29-create-authority-record-from-bib-field.t @@ -0,0 +1,30 @@ +#!perl + +use Test::More tests => 1; + +diag("Test creating authority records from a bibliographic field."); + +use strict; use warnings; + +use OpenILS::Utils::TestUtils; +my $script = OpenILS::Utils::TestUtils->new(); +$script->bootstrap; + +our $apputils = "OpenILS::Application::AppUtils"; + +my $field = { + 'tag' => '710', + 'ind1' => '2', + 'subfields' => [['a', 'Evergreen Club Contemporary Gamelan']] + }; +my $resp = $apputils->simplereq( + 'open-ils.cat', + 'open-ils.cat.authority.record.create_from_bib.readonly', + $field, + 'catLibrary' +); + +like($resp, + '/Evergreen Club Contemporary Gamelan<\/subfield><\/datafield>/', + 'Can create an authority record from a bib field'); +