Skip to content

Commit

Permalink
update test to newer code
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Dec 2, 2023
1 parent 465650a commit 696c6d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/TemplateTest2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3646,7 +3646,7 @@ public function testBibcodesBooks() : void {
$this->requires_bibcode(function() : void {
$text = "{{Cite book|bibcode=1982mcts.book.....H}}";
$expanded = $this->process_citation($text);
$this->assertSame('1982', $expanded->get2('year'));
$this->assertSame('1982', $expanded->get2('date'));
$this->assertSame('Houk', $expanded->get2('last1'));
$this->assertSame('N.', $expanded->get2('first1'));
$this->assertNotNull($expanded->get2('title'));
Expand All @@ -3655,6 +3655,7 @@ public function testBibcodesBooks() : void {
$expanded = $this->process_citation($text);
$this->assertNull($expanded->get2('title'));
$this->assertNull($expanded->get2('year'));
$this->assertNull($expanded->get2('date'));
}

public function testBibcodesFindBooks() : void {
Expand Down

0 comments on commit 696c6d3

Please sign in to comment.