Improve unit test (#1730)
This commit is contained in:
parent
ab95f749dc
commit
99e80a1c4b
|
@ -280,6 +280,20 @@ ok( $res->[2]->[0] =~ m%<td class="align-middle">rtyler/dwho</td>%,
|
|||
or explain( $res->[2]->[0], 'Found rtyler/dwo' );
|
||||
count(16);
|
||||
|
||||
my @attributes = map /<td class="text-left">(.+)?<\/td>/g, $res->[2]->[0];
|
||||
ok( scalar @attributes == 58, 'Found 58 attributes' )
|
||||
or print STDERR "Missing attributes -> " . scalar @attributes;
|
||||
ok( $attributes[0] eq '_auth', '_auth' ) or print STDERR Dumper( \@attributes );
|
||||
ok( $attributes[1] eq 'Demo', 'Demo' ) or print STDERR Dumper( \@attributes );
|
||||
ok( $attributes[26] eq 'uid', 'uid' ) or print STDERR Dumper( \@attributes );
|
||||
ok( $attributes[28] eq 'real__auth', 'real__auth' )
|
||||
or print STDERR Dumper( \@attributes );
|
||||
ok( $attributes[56] eq 'real_uid', 'real_uid' )
|
||||
or print STDERR Dumper( \@attributes );
|
||||
ok( $attributes[57] eq 'rtyler', 'rtyler' )
|
||||
or print STDERR Dumper( \@attributes );
|
||||
count(7);
|
||||
|
||||
$client->logout($id);
|
||||
clean_sessions();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user