Skip to content
Snippets Groups Projects
Commit 734faaca authored by Demian Katz's avatar Demian Katz
Browse files

Adjusted test to cover translationTextDomain.

parent cd80749c
No related merge requests found
...@@ -158,11 +158,12 @@ class RecordDataFormatterTest extends \VuFindTest\Unit\ViewHelperTestCase ...@@ -158,11 +158,12 @@ class RecordDataFormatterTest extends \VuFindTest\Unit\ViewHelperTestCase
$formatter = $this->getFormatter(); $formatter = $this->getFormatter();
$spec = $formatter->getDefaults('core'); $spec = $formatter->getDefaults('core');
$spec['Building'] = [ $spec['Building'] = [
'dataMethod' => 'getBuilding', 'pos' => 0, 'context' => ['foo' => 1] 'dataMethod' => 'getBuilding', 'pos' => 0, 'context' => ['foo' => 1],
'translationTextDomain' => 'prefix_'
]; ];
$expected = [ $expected = [
'Building' => '0', 'Building' => 'prefix_0',
'Published in' => '0', 'Published in' => '0',
'Main Author' => 'Vico, Giambattista, 1668-1744.', 'Main Author' => 'Vico, Giambattista, 1668-1744.',
'Other Authors' => 'Pandolfi, Claudia.', 'Other Authors' => 'Pandolfi, Claudia.',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment