Skip to content

Commit

Permalink
Update TemplateTest2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Jan 20, 2024
1 parent 64e69f4 commit 435cda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/TemplateTest2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3911,19 +3911,19 @@ public function testFixURLinLocation1() : void {
$this->assertNull($template->get2('location'));
$this->assertSame('http://www.apple.com/indes.html', $template->get2('url'));
}
public function testFixURLinLocations2() : void
public function testFixURLinLocations2() : void {
$text = '{{cite journal|location=http://www.apple.com/indes.html|url=http://www.apple.com/}}';
$template = $this->process_citation($text);
$this->assertNull($template->get2('location'));
$this->assertSame('http://www.apple.com/indes.html', $template->get2('url'));
}
public function testFixURLinLocations3() : void
public function testFixURLinLocations3() : void {
$text = '{{cite journal|url=http://www.apple.com/indes.html|location=http://www.apple.com/}}';
$template = $this->process_citation($text);
$this->assertNull($template->get2('location'));
$this->assertSame('http://www.apple.com/indes.html', $template->get2('url'));
}
public function testFixURLinLocations4() : void
public function testFixURLinLocations4() : void {
$text = '{{cite journal|url=http://www.apple.com/indes.html|location=http://www.ibm.com/}}';
$template = $this->process_citation($text);
$this->assertSame('http://www.ibm.com/', $template->get2('location'));
Expand Down

0 comments on commit 435cda8

Please sign in to comment.