Current Options details test: probably wrong

Currently, the {PII_Options} / {PaymentItems}[0]{Options} are a list of
empty strings.  This is probably the incorrect behavior, which I'm about
to fix.  However, I'm committing this test as-is since it passes against
the current code as it stands.
This commit is contained in:
Bradley M. Kuhn 2015-01-01 19:06:32 -05:00
parent 9b8464291c
commit f8ca3ca571

View file

@ -7,7 +7,7 @@ if ( !$ENV{WPP_TEST} || !-f $ENV{WPP_TEST} ) {
'No WPP_TEST env var set. Please see README to run tests';
}
else {
plan tests => 4;
plan tests => 6;
}
use_ok( 'Business::PayPal::API::TransactionSearch' );
@ -74,3 +74,8 @@ foreach my $record (@{$resp}) {
like($detail{PaymentItems}[0]{Name}, qr/Field\s+Options/i, 'Found field options test transaction');
like($detail{PII_Name}, qr/Field\s+Options/i, 'Found field options test transaction');
foreach my $options ($detail{PaymentItems}[0]{Options}, $detail{PII_Options}) {
ok((scalar(@$options) == 2 and $options->[0] eq '' and $options->[0] eq ''),
"PaymentItems's Options has 2 elements with empty strings");
}