merged with HEAD and other interesting changes

This commit is contained in:
David Delikat 2009-03-19 04:12:03 +00:00
parent 66c6c0fae5
commit 856cc06d04
151 changed files with 7335 additions and 2602 deletions

View file

@ -31,7 +31,7 @@ my $session = WebGUI::Test->session;
#----------------------------------------------------------------------------
# Tests
my $tests = 44;
my $tests = 49;
plan tests => 1 + $tests;
#----------------------------------------------------------------------------
@ -283,6 +283,27 @@ cmp_deeply(
'delete removed the correct vendor'
);
#######################################################################
#
# isVendorInfoComplete
#
#######################################################################
my %completeProps = (
name => 'Esquerita',
userId => $fenceUser->userId,
preferredPaymentType => 'PayPal',
paymentInformation => 'esquerita@example.com',
);
$fence->update( { %completeProps } );
is( $fence->isVendorInfoComplete, 1, 'Vendor information is complete' );
foreach (keys %completeProps ) {
$fence->update( { %completeProps, $_ => undef } );
ok( !$fence->isVendorInfoComplete, "Vendor information is not complete without $_" );
}
undef $guard;
}