Lines 514-520
subtest 'ListSets tests' => sub {
Link Here
|
514 |
|
514 |
|
515 |
subtest 'Tests for timestamp handling' => sub { |
515 |
subtest 'Tests for timestamp handling' => sub { |
516 |
|
516 |
|
517 |
plan tests => 27; |
517 |
plan tests => 28; |
518 |
|
518 |
|
519 |
t::lib::Mocks::mock_preference( 'OAI::PMH' => 1 ); |
519 |
t::lib::Mocks::mock_preference( 'OAI::PMH' => 1 ); |
520 |
t::lib::Mocks::mock_preference( 'OAI-PMH:MaxCount' => 3 ); |
520 |
t::lib::Mocks::mock_preference( 'OAI-PMH:MaxCount' => 3 ); |
Lines 614-619
subtest 'Tests for timestamp handling' => sub {
Link Here
|
614 |
$get_no_items, |
614 |
$get_no_items, |
615 |
{ GetRecord => $expected_no_items } |
615 |
{ GetRecord => $expected_no_items } |
616 |
); |
616 |
); |
|
|
617 |
test_query( |
618 |
'Identify - earliestDatestamp in the right format', |
619 |
{ verb => 'Identify' }, |
620 |
{ Identify => { |
621 |
adminEmail => 'root@localhost', |
622 |
baseURL => 'http://localhost', |
623 |
compression => 'gzip', |
624 |
deletedRecord => 'persistent', |
625 |
earliestDatestamp => '2014-05-07T13:36:23Z', |
626 |
granularity => 'YYYY-MM-DDThh:mm:ssZ', |
627 |
protocolVersion => '2.0', |
628 |
repositoryName => 'My Library', |
629 |
} |
630 |
} |
631 |
); |
617 |
|
632 |
|
618 |
# Add an item 10 seconds later and check results |
633 |
# Add an item 10 seconds later and check results |
619 |
set_relative_time(10); |
634 |
set_relative_time(10); |
620 |
- |
|
|