Commit 60005144 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Config_XML: Adding a test case

parent ff762ad1
...@@ -59,6 +59,16 @@ is_deeply( ...@@ -59,6 +59,16 @@ is_deeply(
is(Sympa::Config_XML->new(IO::Scalar->new(\(shift @in)))->as_hashref, undef); is(Sympa::Config_XML->new(IO::Scalar->new(\(shift @in)))->as_hashref, undef);
is(Sympa::Config_XML->new(IO::Scalar->new(\(shift @in)))->as_hashref, undef); is(Sympa::Config_XML->new(IO::Scalar->new(\(shift @in)))->as_hashref, undef);
# GH#953: "false" values in XML file prevent list creation
if (isnt(
my $h =
Sympa::Config_XML->new(IO::Scalar->new(\(shift @in)))->as_hashref,
undef
)
) {
is($h->{filtre}, '0');
}
done_testing(); done_testing();
__END__ __END__
...@@ -126,3 +136,21 @@ __END__ ...@@ -126,3 +136,21 @@ __END__
</owner> </owner>
</list> </list>
<?xml version="1.0" encoding="UTF-8"?>
<list>
<listname>liste.org1.test</listname>
<subject>Liste test</subject>
<custom_subject>TEST</custom_subject>
<topics>communication</topics>
<reply_mail>noreply@domaine.fr</reply_mail>
<status>open</status>
<source>mysql</source>
<send>diffuseur</send>
<filtre>0</filtre>
<owner multiple="1">
<email>listmaster@domaine.fr</email>
<gecos>listmaster</gecos>
<reception>mail</reception>
</owner>
</list>
Supports Markdown
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