mark Workflow tests that test things that do not exist as TODO
This commit is contained in:
parent
15a498ca3a
commit
f601092435
1 changed files with 8 additions and 5 deletions
13
t/Workflow.t
13
t/Workflow.t
|
|
@ -61,11 +61,14 @@ my $actId = $activity->getId;
|
||||||
ok(defined $actId, 'activity has an ID');
|
ok(defined $actId, 'activity has an ID');
|
||||||
is(scalar @{$wf2->getActivities}, 1, 'workflow has one activity');
|
is(scalar @{$wf2->getActivities}, 1, 'workflow has one activity');
|
||||||
|
|
||||||
# Mismatched activity with workflow.
|
TODO: {
|
||||||
require WebGUI::Workflow::Activity::DecayKarma;
|
local $TODO = "Tests that test things that do not work yet";
|
||||||
my $badActivity = WebGUI::Workflow::Activity::DecayKarma->create($session, $wf2->getId);
|
# Mismatched activity with workflow.
|
||||||
ok(!defined $badActivity, 'cannot create mismatched activity');
|
require WebGUI::Workflow::Activity::DecayKarma;
|
||||||
is(scalar @{$wf->getActivities}, 1, 'workflow still has one activity');
|
my $badActivity = WebGUI::Workflow::Activity::DecayKarma->create($session, $wf2->getId);
|
||||||
|
ok(!defined $badActivity, 'cannot create mismatched activity');
|
||||||
|
is(scalar @{$wf->getActivities}, 1, 'workflow still has one activity');
|
||||||
|
}
|
||||||
|
|
||||||
# TODO: test activities more, and crons
|
# TODO: test activities more, and crons
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue