Documented the heretofore undocumented Deactivate Account Template in the Auth modules.
Broke out code scanning tests into their own tests, and required the CODE_COP environment variable be set before they were run. Fixed two bugs in the Workflow test, wrong number of tests and inverse test logic. More Auth template inheritance work. Almost time to reflect it over to the LDAP module.
This commit is contained in:
parent
860a71bc5d
commit
ee9cae98a8
11 changed files with 385 additions and 201 deletions
|
|
@ -15,7 +15,7 @@ use WebGUI::Test;
|
|||
use WebGUI::Session;
|
||||
use WebGUI::Workflow;
|
||||
use WebGUI::Utility qw/isIn/;
|
||||
use Test::More tests => 0; # increment this value for each test you create
|
||||
use Test::More tests => 16; # increment this value for each test you create
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
my $wf = WebGUI::Workflow->create($session, {title => 'Title', description => 'Description',
|
||||
|
|
@ -40,8 +40,9 @@ ok(!isIn($wfId, keys %{WebGUI::Workflow->getList($session)}), 'workflow not in e
|
|||
$wf->set({enabled => 1});
|
||||
ok($wf->get('enabled'), 'workflow is enabled');
|
||||
ok(isIn($wfId, keys %{WebGUI::Workflow->getList($session)}), 'workflow in enabled list');
|
||||
$session->errorHandler->warn('Interesting');
|
||||
$wf->set({enabled => 0});
|
||||
ok($wf->get('enabled'), 'workflow is disabled again');
|
||||
ok(!$wf->get('enabled'), 'workflow is disabled again');
|
||||
|
||||
$wf->delete;
|
||||
ok(!defined WebGUI::Workflow->new($session, $wfId), 'deleted workflow cannot be retrieved');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue