Bug 36010: Fix Items/AutomaticItemModificationByAge.t failing since Bug 32029
UT is failing in jenkins.
Change to use biblio.copyrightdate instead of bilio.medium
Run prove t/db_dependent/Items/AutomaticItemModificationByAge.t
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2e6a2c3b5b
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
badba61f00
commit
b0660d11f5
1 changed files with 4 additions and 3 deletions
|
@ -47,7 +47,8 @@ $cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
|
|||
my $record = MARC::Record->new();
|
||||
$record->append_fields(
|
||||
MARC::Field->new( '100', ' ', ' ', a => 'Moffat, Steven' ),
|
||||
MARC::Field->new( '245', ' ', ' ', a => 'Silence in the library', h => 'Book' ),
|
||||
MARC::Field->new( '245', ' ', ' ', a => 'Silence in the library' ),
|
||||
MARC::Field->new( '260', ' ', ' ', c => '1999' ),
|
||||
MARC::Field->new( '942', ' ', ' ', c => 'ITEMTYPE_T' ),
|
||||
);
|
||||
my ($biblionumber, undef) = C4::Biblio::AddBiblio($record, $frameworkcode);
|
||||
|
@ -336,8 +337,8 @@ is( $modified_item->new_status, 'agefield_new_value', q|ToggleNewStatus: Age = 2
|
|||
# does not exist
|
||||
conditions => [
|
||||
{
|
||||
field => 'biblio.medium',
|
||||
value => 'Book',
|
||||
field => 'biblio.copyrightdate',
|
||||
value => '1999',
|
||||
},
|
||||
],
|
||||
substitutions => [
|
||||
|
|
Loading…
Reference in a new issue