Bug 21105: Fix test if sample data missing
# Failed test 'Identify - earliestDatestamp in the right format' # at t/db_dependent/OAI/Server.t line 182. # Compared $data->{"Identify"}{"earliestDatestamp"} # got : '2021-11-15T13:16:09Z' # expect : '2014-05-07T13:36:23Z' Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ab4b46a848
commit
f5c49d1dd7
1 changed files with 4 additions and 2 deletions
|
@ -536,7 +536,9 @@ subtest 'Tests for timestamp handling' => sub {
|
|||
my $timestamp = dt_from_string(undef, 'sql');
|
||||
|
||||
# Test a bib with one item
|
||||
my $biblio1 = $builder->build_sample_biblio();
|
||||
my $biblio1 = $builder->build_sample_biblio;
|
||||
Koha::Biblios->find($biblio1->biblionumber)->timestamp('1970-05-07 13:36:23')->store;
|
||||
|
||||
$sth_metadata->execute($timestamp, $biblio1->biblionumber);
|
||||
my $item1 = $builder->build_sample_item(
|
||||
{
|
||||
|
@ -623,7 +625,7 @@ subtest 'Tests for timestamp handling' => sub {
|
|||
baseURL => 'http://localhost',
|
||||
compression => 'gzip',
|
||||
deletedRecord => 'persistent',
|
||||
earliestDatestamp => '2014-05-07T13:36:23Z',
|
||||
earliestDatestamp => '1970-05-07T13:36:23Z',
|
||||
granularity => 'YYYY-MM-DDThh:mm:ssZ',
|
||||
protocolVersion => '2.0',
|
||||
repositoryName => 'My Library',
|
||||
|
|
Loading…
Reference in a new issue