/[A3C]/t/10-ldap.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /t/10-ldap.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 53 by dpavlin, Tue Apr 1 17:32:59 2008 UTC revision 106 by dpavlin, Thu May 1 17:06:02 2008 UTC
# Line 8  test LDAP module Line 8  test LDAP module
8    
9  =cut  =cut
10    
11  use Jifty::Test tests => 27;  use Jifty::Test tests => 29;
12    use Data::Dump qw/dump/;
13    
14  use_ok('A3C::LDAP');  use_ok('A3C::LDAP');
15    
# Line 16  ok( my $ldap = A3C::LDAP->new, 'new' ); Line 17  ok( my $ldap = A3C::LDAP->new, 'new' );
17    
18  isa_ok( $ldap, 'A3C::LDAP' );  isa_ok( $ldap, 'A3C::LDAP' );
19    
20    isa_ok( $ldap->objectClass, 'HASH', 'have objectClass' );
21    isa_ok( $ldap->link, 'HASH', 'have link' );
22    
23    diag "objectClass = ",dump( $ldap->objectClass );
24    diag "link = ",dump( $ldap->link );
25    
26  ok(  ok(
27          $ldap->search(          $ldap->search(
28                  base    => 'dc=skole,dc=hr',                  base    => 'dc=skole,dc=hr',
# Line 39  foreach my $limit ( 3, 7, 14 ) { Line 46  foreach my $limit ( 3, 7, 14 ) {
46          is( $collection->count, $limit, 'count' );          is( $collection->count, $limit, 'count' );
47  }  }
48    
49  ok( my $coll = $ldap->collection('User', filter => '(HrEduPersonHomeOrg=aa-test-zz)'), 'collection with filter' );  ok( my $coll = $ldap->collection('Person', filter => '(HrEduPersonHomeOrg=aa-test-zz)'), 'collection with filter' );
50  is( $coll->count, 0, 'no results' );  is( $coll->count, 0, 'no results' );

Legend:
Removed from v.53  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26