user_info($login|$uid)
[cloudstore.git] / t / API.t
diff --git a/t/API.t b/t/API.t
index a90662d..8c326a7 100755 (executable)
--- a/t/API.t
+++ b/t/API.t
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 3;
+use Test::More tests => 7;
 use Data::Dump qw(dump);
 
 use lib 'lib';
@@ -16,3 +16,13 @@ ok my $o = CloudStore::API->new, 'new';
 
 cmp_ok $o->create_user('md5@example.com','md5sum',0), '==', 2000, 'create_user md5';
 
+ok my $info = $o->user_info( 'md5' ), 'user_info';
+diag dump $info;
+
+cmp_ok $info->{uid}, '==', 2000, 'uid';
+
+ok my $uid = $o->create_user('test@example.com','password',100_000_000), 'create_user test';
+diag "test: $uid";
+ok my $test = $o->user_info( $uid ), "user_info $uid";
+diag dump($test);
+