Skip to content

Commit

Permalink
Update TemplateTest2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Nov 5, 2023
1 parent bb61333 commit 2d5a9d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/phpunit/TemplateTest2.php
Original file line number Diff line number Diff line change
Expand Up @@ -4674,6 +4674,16 @@ public function testBadChapterStays() : void {
$expanded = $this->process_citation($text);
$this->assertSame('cite journal', $expanded->wikiname());
$this->assertSame('Chope, His Honour Robert Charles, (26 June 1913–17 Oct. 1988), a Circuit Judge (Formerly Judge of County Courts), 1965–85', $expanded->get2('chapter'));
}
}

public function testRemoveLinkUnderscores() : void {
$text = "{{cite journal|author-link3=A_X}}";
$expanded = $this->process_citation($text);
$this->assertSame('A X', $expanded->get3('author-link3'));

$text = "{{cite journal|author-link3=A_X http}}";
$expanded = $this->process_citation($text);
$this->assertSame('A_X http', $expanded->get3('author-link3'));
}

}

0 comments on commit 2d5a9d8

Please sign in to comment.