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:
parent
9b8464291c
commit
f8ca3ca571
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue