summaryrefslogtreecommitdiff
path: root/t/62-getDIDs.t
diff options
context:
space:
mode:
Diffstat (limited to 't/62-getDIDs.t')
-rw-r--r--t/62-getDIDs.t34
1 files changed, 34 insertions, 0 deletions
diff --git a/t/62-getDIDs.t b/t/62-getDIDs.t
new file mode 100644
index 0000000..52f0170
--- /dev/null
+++ b/t/62-getDIDs.t
@@ -0,0 +1,34 @@
+#!/usr/bin/perl -w
+
+#BEGIN {
+# $Net::HTTPS::Any::skip_NetSSLeay = 1;
+# $Net::HTTPS::Any::skip_NetSSLeay = 1;
+#}
+
+use Test::More;
+
+require 't/lib/test_account.pl';
+require Net::VoIP_Innovations;
+
+my($login, $password) = test_account_or_skip();
+plan tests => 1;
+
+
+my $debug = $ENV{TEST_VERBOSE};
+
+my $gp = Net::VoIP_Innovations->new( 'login' => $login,
+ 'password' => $password,
+ #'debug' => $debug,
+ );
+my $return = $gp->getDIDs(
+ 'state' => 'CA',
+ 'lata' => '722',
+ #'npa' => '415',
+ 'orderby' => 'ORDER BY npa', #?
+);
+
+use Data::Dumper;
+diag( Dumper($return) ); # if $debug;
+
+#XXX test some things about the return...
+ok( $return, 'getDIDs returned something' );