From 734faaca54df4a3ea2d7e349700d2bed874b4427 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 20 Jul 2017 10:08:44 -0400 Subject: [PATCH] Adjusted test to cover translationTextDomain. --- .../VuFindTest/View/Helper/Root/RecordDataFormatterTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php index 4f5ee484276..c2b02297491 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/View/Helper/Root/RecordDataFormatterTest.php @@ -158,11 +158,12 @@ class RecordDataFormatterTest extends \VuFindTest\Unit\ViewHelperTestCase $formatter = $this->getFormatter(); $spec = $formatter->getDefaults('core'); $spec['Building'] = [ - 'dataMethod' => 'getBuilding', 'pos' => 0, 'context' => ['foo' => 1] + 'dataMethod' => 'getBuilding', 'pos' => 0, 'context' => ['foo' => 1], + 'translationTextDomain' => 'prefix_' ]; $expected = [ - 'Building' => '0', + 'Building' => 'prefix_0', 'Published in' => '0', 'Main Author' => 'Vico, Giambattista, 1668-1744.', 'Other Authors' => 'Pandolfi, Claudia.', -- GitLab