diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/EPFTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/EPFTest.php index 6c6a8f7ea77..e839a8c9299 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/EPFTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/RecordDriver/EPFTest.php @@ -73,6 +73,15 @@ public function testGetFullTextHoldings(): void ); } + public function testGetIssns(): void + { + $issns = $this->getDriverWithIdentifierData()->getISSNs(); + $this->assertEquals( + ['19494998', '19495005'], + $issns + ); + } + /** * Get a record driver with fake identifier data. * @@ -85,6 +94,26 @@ protected function getDriverWithIdentifierData(): EPF 'Header' => [ 'PublicationId' => '1234-5678', ], + 'RecordInfo' => [ + 'BibRecord' => [ + 'BibEntity' => [ + 'Identifiers' => [ + [ + 'Type' => 'issn-print', + 'Value' => '19494998', + ], + [ + 'Type' => 'issn-online', + 'Value' => '19495005', + ], + [ + 'Type' => 'ejsid', + 'Value' => '723124', + ], + ] + ], + ], + ], 'FullTextHoldings' => [ [ 'FullTextHolding' => [