summaryrefslogtreecommitdiff
path: root/t/lib/test_account.pl
diff options
context:
space:
mode:
authorAlex Brelsfoard <alex@Alexs-MacBook-Pro.local>2015-02-09 11:58:10 -0500
committerAlex Brelsfoard <alex@Alexs-MacBook-Pro.local>2015-02-09 11:58:10 -0500
commit1e90419f5b23ab4b4fe17b5861958d75ac285c4d (patch)
tree73095c5991d5e6702c0f8a8b2e63e0f4fd7b0b5b /t/lib/test_account.pl
parent7f323b74306dfa89de073a2ca5a34e76537815a7 (diff)
Getting code ready for CPAN and debian relase.
Diffstat (limited to 't/lib/test_account.pl')
-rw-r--r--t/lib/test_account.pl29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/lib/test_account.pl b/t/lib/test_account.pl
new file mode 100644
index 0000000..69f8c89
--- /dev/null
+++ b/t/lib/test_account.pl
@@ -0,0 +1,29 @@
+
+sub test_account {
+ # fill all these fields in to test out transactions
+ my %opts = (
+ server =>'', # be sure to leave out the 'https://'
+ platform => '',
+ gid => '',
+ tid => '',
+ userid=> 'name@server.com',
+ port => 443,
+ env => 'test',
+ appid => ''
+ );
+
+ return %opts;
+}
+
+sub expiration_date {
+ my($month, $year) = (localtime)[4,5];
+ $month += 1;
+ $year++; # So we expire next year.
+ $year %= 100;
+
+ return sprintf("%02d/%02d", $month, $year);
+}
+
+
+1;
+