Write a test to make sure Group->new returns undef for non-existant groupIds.
This commit is contained in:
parent
5c175c42d9
commit
8f687d8aa5
1 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ my @ldapTests = (
|
|||
);
|
||||
|
||||
|
||||
plan tests => (172 + (scalar(@scratchTests) * 2) + scalar(@ipTests)); # increment this value for each test you create
|
||||
plan tests => (173 + (scalar(@scratchTests) * 2) + scalar(@ipTests)); # increment this value for each test you create
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
my $testCache = WebGUI::Cache->new($session, 'myTestKey');
|
||||
|
|
@ -124,6 +124,8 @@ foreach my $gid ('new', '') {
|
|||
$g->delete;
|
||||
}
|
||||
|
||||
is(WebGUI::Group->new($session, 'neverAGroupId'), undef, 'calling new with a non-existant groupId returns undef');
|
||||
|
||||
my $g = WebGUI::Group->new($session, "new");
|
||||
|
||||
$g->description('I am really a montage');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue