Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
class TitleInfoReaderTest extends ModsReaderTest
{

/**
* @test
*/
public function testGetTitleInfosForBookDocument()
{
$titleInfos = $this->bookReader->getTitleInfos();
Expand All @@ -30,6 +33,9 @@ public function testGetTitleInfosForBookDocument()
self::assertEquals('the making of the punditocracy', $titleInfos[0]->getSubTitle()->getValue());
}

/**
* @test
*/
public function testGetTitleInfosByQueryForBookDocument()
{
$titleInfos = $this->bookReader->getTitleInfos('[@xml:lang="fr"]');
Expand All @@ -46,6 +52,9 @@ public function testGetTitleInfosByQueryForBookDocument()
self::assertEquals('la création de la punditocratie', $titleInfos[0]->getSubTitle()->getValue());
}

/**
* @test
*/
public function testGetTitleInfosForSerialDocument()
{
$titleInfos = $this->serialReader->getTitleInfos();
Expand All @@ -58,6 +67,9 @@ public function testGetTitleInfosForSerialDocument()
self::assertEquals('the electronic journal of academic and special librarianship', $titleInfos[0]->getSubTitle()->getValue());
}

/**
* @test
*/
public function testGetTitleInfosByQueryForSerialDocument()
{
$titleInfos = $this->serialReader->getTitleInfos('[@type="abbreviated"]');
Expand All @@ -69,6 +81,9 @@ public function testGetTitleInfosByQueryForSerialDocument()
self::assertEquals('(Athabasca)', $titleInfos[0]->getSubTitle()->getValue());
}

/**
* @test
*/
public function testGetNoTitleInfosByQueryForSerialDocument()
{
$titleInfos = $this->serialReader->getTitleInfos('[@type="uniform"]');
Expand Down
Loading