From 696c6d32e1cd4b69d3fd3347b8334a2604670518 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Sat, 2 Dec 2023 12:42:45 -0600 Subject: [PATCH] update test to newer code --- tests/phpunit/TemplateTest2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/TemplateTest2.php b/tests/phpunit/TemplateTest2.php index c44a84aa6a..6bc8c1a72a 100644 --- a/tests/phpunit/TemplateTest2.php +++ b/tests/phpunit/TemplateTest2.php @@ -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')); @@ -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 {