X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=t%2Fbop.t;h=ba4c6cd1451040483fae21f444ba0feb9007a392;hb=e1bf5c280a8581314d4832de6d1baf2181b389c6;hp=2aaf22318d1c41953f97f97f4a28c564d582f523;hpb=f0b9b398d11b68812ec480c05f8d484305ec9131;p=Business-OnlinePayment.git diff --git a/t/bop.t b/t/bop.t index 2aaf223..ba4c6cd 100644 --- a/t/bop.t +++ b/t/bop.t @@ -1,11 +1,10 @@ #!/usr/bin/perl -# $Id: bop.t,v 1.9 2006-11-20 06:27:14 plobbes Exp $ use strict; use warnings; -use Test::More tests => 60; +use Test::More tests => 57; -BEGIN { use_ok("Business::OnlinePayment") or exit; } +use Business::OnlinePayment; { # fake test driver 1 (no submit method) @@ -108,16 +107,6 @@ foreach my $drv (@drivers) { my $obj2 = $package->new("MOCK3"); my $s_new2 = $obj2->can("submit"); is( $obj2->submit, "1", "MOCK3(obj2) submit returns 1" ); - - # fraud detection failure modes - my $obj = $package->new("MOCK3"); - my $proc = "__BOGUS_PROCESSOR"; - - is( $obj->fraud_detect($proc), $proc, "fraud_detect set to '$proc'" ); - eval { $obj->submit; }; - is( $@, "", "fraud_detect ignores non-existant processors" ); - - # XXX: need more test cases for when fraud detection is enabled } { # content