Ran coverage on User.t and found that we're missing two entire

methods, so I added TODO tests for them.  Overall coverage is low
as well.
Began converting User.pm to use placeholders.
This commit is contained in:
Colin Kuskie 2007-02-23 22:27:23 +00:00
parent 6efbad606f
commit 2803ae520c
2 changed files with 9 additions and 3 deletions

View file

@ -18,7 +18,7 @@ use WebGUI::Utility;
use WebGUI::Cache;
use WebGUI::User;
use Test::More tests => 82; # increment this value for each test you create
use Test::More tests => 84; # increment this value for each test you create
my $session = WebGUI::Test->session;
@ -301,6 +301,12 @@ WebGUI::Group->new($session, '7')->addUsers([1]);
ok($visitor->isInGroup(1), "Visitor added back to group Visitor");
ok($visitor->isInGroup(7), "Visitor added back to group Everyone");
TODO: {
local $TODO = "Untested methods";
ok(0, 'canUseAdminMode');
ok(0, 'newByEmail');
}
END {
(defined $user and ref $user eq 'WebGUI::User') and $user->delete;
$testCache->flush;