Lines 73-81
is(find_and_slurp($dir, 'test', 'fr-FR'), 'Theme test, language en', 'Fell ba
Link Here
|
73 |
is(find_and_slurp($dir, 'nope', 'es-ES'), 'Theme prog, language es-ES', 'Fell back to prog/es-ES for nope/es-ES'); |
73 |
is(find_and_slurp($dir, 'nope', 'es-ES'), 'Theme prog, language es-ES', 'Fell back to prog/es-ES for nope/es-ES'); |
74 |
is(find_and_slurp($dir, 'nope', 'fr-FR'), 'Theme prog, language en', 'Fell back to prog/en for nope/fr-FR'); |
74 |
is(find_and_slurp($dir, 'nope', 'fr-FR'), 'Theme prog, language en', 'Fell back to prog/en for nope/fr-FR'); |
75 |
|
75 |
|
76 |
my $matching_string = q{<syspref name="singleBranchMode">0</syspref>}; |
76 |
my $matching_string = q{<syspref name="singleBranchMode">[0|1]</syspref>}; |
77 |
my $sysprefs_xml = C4::XSLT::get_xslt_sysprefs(); |
77 |
my $sysprefs_xml = C4::XSLT::get_xslt_sysprefs(); |
78 |
ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has a value of 0'); |
78 |
ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has no value'); |
79 |
|
79 |
|
80 |
t::lib::Mocks::mock_config('opachtdocs', "$dir"); |
80 |
t::lib::Mocks::mock_config('opachtdocs', "$dir"); |
81 |
make_path("$dir/bootstrap/en/xslt/biblioexport"); |
81 |
make_path("$dir/bootstrap/en/xslt/biblioexport"); |
Lines 106-109
close $fh;
Link Here
|
106 |
my @custom_xslts = @{C4::XSLT::CustomXSLTExportList(1)}; |
106 |
my @custom_xslts = @{C4::XSLT::CustomXSLTExportList(1)}; |
107 |
ok((scalar @custom_xslts) == 2, "CustomXSLTExportList finds custom XSLTs"); |
107 |
ok((scalar @custom_xslts) == 2, "CustomXSLTExportList finds custom XSLTs"); |
108 |
ok($custom_xslts[0]->{filename} eq "Export 01", "Title is specified in root node"); |
108 |
ok($custom_xslts[0]->{filename} eq "Export 01", "Title is specified in root node"); |
109 |
ok($custom_xslts[1]->{filename} eq "export_02", "Title is filename if not specified"); |
109 |
ok($custom_xslts[1]->{filename} eq "export_02", "Title is filename if not specified"); |
110 |
- |
|
|