mirror of
https://github.com/webmin/webmin.git
synced 2026-06-05 04:40:24 +01:00
Make test match code more clearly
This commit is contained in:
@@ -865,8 +865,9 @@ is(group_line({ name => 'empty' }),
|
||||
|
||||
my $g = get_users_group('bob');
|
||||
is($g && $g->{'name'}, 'wheel', 'get_users_group finds bob in wheel');
|
||||
is(get_users_group('nobody'), undef,
|
||||
'get_users_group returns undef when user is in no group');
|
||||
my $miss = get_users_group('nobody');
|
||||
ok(!defined($miss),
|
||||
'get_users_group returns nothing when user is in no group');
|
||||
|
||||
delete_from_groups('bob');
|
||||
_clear_caches();
|
||||
|
||||
Reference in New Issue
Block a user