Bug 22824: Replace YAML::Syck with YAML::XS in tests

In order to understand how things will work after the changes

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-02-11 10:09:48 +01:00
parent f0f45b55ca
commit e2afcb23e3
1 changed files with 2 additions and 7 deletions

View File

@ -1,22 +1,17 @@
use Modern::Perl;
use Test::More;
use YAML::Syck;
use YAML::XS;
use Template;
use utf8;
$YAML::Syck::ImplicitTyping = 1;
$YAML::Syck::ImplicitUnicode = 1;
my $template = Template->new( ENCODING => 'UTF-8' );
my $vars;
my $output;
$template->process( 't/db_dependent/data/syspref.pref', $vars, \$output );
use Data::Printer colored => 1; warn p $output;
my $yaml = YAML::Syck::Load( $output );
my $yaml = YAML::XS::Load( $output );
my $syspref_1 = $yaml->{Test}->{Testing}->[0];
my $syspref_2 = $yaml->{Test}->{Testing}->[1];
my $syspref_3 = $yaml->{Test}->{Testing}->[2];