/[A3C]/t/00-action-SyncOrganization.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

Annotation of /t/00-action-SyncOrganization.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 55 - (hide annotations)
Tue Apr 1 19:39:00 2008 UTC (14 years, 1 month ago) by dpavlin
File MIME type: application/x-troff
File size: 765 byte(s)
- added SyncOrganization action with tests and GUI
1 dpavlin 55 #!/usr/bin/env perl
2     use warnings;
3     use strict;
4    
5     =head1 DESCRIPTION
6    
7     A (very) basic test harness for the SyncOrganization action.
8    
9     =cut
10    
11     use Jifty::Test tests => 7;
12    
13     # Make sure we can load the action
14     use_ok('A3C::Action::SyncOrganization');
15    
16     my $sync = Jifty::Test->web->new_action(
17     class => 'SyncOrganization',
18     # current_user => $system_user,
19     arguments => {}
20     );
21    
22     isa_ok( $sync, 'A3C::Action::SyncOrganization' );
23    
24     ok( $sync->arguments->{cn}, 'cn' );
25    
26     $sync->argument_values({ cn => 'os-test0604-zg' });
27     $sync->run;
28    
29     ok( $sync->result->success, 'result is success' );
30    
31     ok( my $coll = $sync->result->content( 'synced-users' ), 'result content have synced-users' );
32    
33     isa_ok( $coll, 'A3C::Model::UserCollection' );
34    
35     cmp_ok( $coll->count, '>', 0, 'count' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26