Bugzilla – Attachment 123130 Details for
Bug 18138
Use MARC modification template when adding/updating bibliographic records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18138: Fix tests
Bug-18138-Fix-tests.patch (text/plain), 1.72 KB, created by
David Gustafsson
on 2021-07-23 14:41:24 UTC
(
hide
)
Description:
Bug 18138: Fix tests
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2021-07-23 14:41:24 UTC
Size:
1.72 KB
patch
obsolete
>From 31e2f0ae5babe5a1f5ad75fd3841a85cb48ccbb3 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <glasklas@gmail.com> >Date: Thu, 17 Sep 2020 17:34:59 +0200 >Subject: [PATCH] Bug 18138: Fix tests > >--- > .../www/EditBiblioMarcModificationTemplatePreference.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/www/EditBiblioMarcModificationTemplatePreference.t b/t/db_dependent/www/EditBiblioMarcModificationTemplatePreference.t >index 6dd2f74874..12c10d904b 100644 >--- a/t/db_dependent/www/EditBiblioMarcModificationTemplatePreference.t >+++ b/t/db_dependent/www/EditBiblioMarcModificationTemplatePreference.t >@@ -82,7 +82,7 @@ subtest 'Templates applied using simple and advanced MARC Editor' => sub { > ); > my ($biblionumber) = AddBiblio($record, ''); > >- my $saved_record = GetMarcBiblio($biblionumber, 0); >+ my $saved_record = GetMarcBiblio({ biblio => $biblionumber, embed_items => 0 }); > my $saved_record_250_field = $saved_record->field('250'); > isa_ok($saved_record_250_field, 'MARC::Field', 'Field with tag 250 has been saved'); > is($saved_record_250_field->subfield('a'), '250 bottles of beer on the wall', 'Field 250a has the same value passed to AddBiblio'); >@@ -109,7 +109,7 @@ subtest 'Templates applied using simple and advanced MARC Editor' => sub { > 'Save bibliographic record using simple MARC editor' > ); > >- $saved_record = GetMarcBiblio($biblionumber, 0); >+ $saved_record = GetMarcBiblio({ biblio => $biblionumber, embed_items => 0 }); > $saved_record_250_field = $saved_record->field('250'); > is($saved_record_250_field->subfield('a'), '251 bottles of beer on the wall', 'Field with tag 250 has been modified by MARC modification template'); > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18138
:
61442
|
61443
|
61734
|
82783
|
86617
|
110266
|
110269
|
110270
|
110272
|
118439
|
118440
|
118441
|
118442
|
118443
|
118444
|
118824
|
120709
|
123125
|
123127
|
123128
|
123129
|
123130
|
123131
|
123132
|
123133
|
123137
|
124466
|
124467
|
124468
|
124469
|
124470
|
124471
|
124472
|
124473
|
124474
|
124475
|
124476
|
124477
|
124478
|
124484
|
124485
|
124486
|
124492
|
124493
|
124991
|
125157
|
148004
|
148005
|
148006
|
148007
|
148008
|
148009
|
157183
|
157184
|
157185
|
157186
|
157187
|
157188
|
157189
|
157190
|
157485
|
157486
|
157487
|
157488
|
157489
|
157490
|
157491
|
158414
|
158415
|
158416
|
158417
|
158418
|
158419
|
158420
|
158421
|
162612
|
162613