diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2015-02-09 14:40:48 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-06-16 17:33:24 +0100 |
commit | 1df64a30dd0939d8d9b8b1854f7f7e421d9b20ab (patch) | |
tree | 6e817af4ecb0bcdfa161bbaeb820c5e82ad4628b /t | |
parent | cee9d93ea8e7fefecdb435bada240445b44022a3 (diff) |
Add hidden_states and updating functions.
To allow visible/hidden states to be manipulated at runtime.
Diffstat (limited to 't')
-rw-r--r-- | t/app/model/problem.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t index c57f8af3b..1b6488fc7 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -33,6 +33,23 @@ my $problem = $problem_rs->new( } ); +my $visible_states = $problem->visible_states; +is_deeply $visible_states, { + 'confirmed' => 1, + 'investigating' => 1, + 'in progress' => 1, + 'planned' => 1, + 'action scheduled' => 1, + 'fixed' => 1, + 'fixed - council' => 1, + 'fixed - user' => 1, + 'unable to fix' => 1, + 'not responsible' => 1, + 'duplicate' => 1, + 'closed' => 1, + 'internal referral' => 1, + }, 'visible_states is correct'; + is $problem->confirmed, undef, 'inflating null confirmed ok'; is $problem->whensent, undef, 'inflating null confirmed ok'; is $problem->lastupdate, undef, 'inflating null confirmed ok'; |