Skip to content

Commit

Permalink
Test getIssns()
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Jul 11, 2024
1 parent 333201d commit 6e1525b
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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' => [
Expand Down

0 comments on commit 6e1525b

Please sign in to comment.