diff options
Diffstat (limited to 't/app/model/comment.t')
-rw-r--r-- | t/app/model/comment.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/t/app/model/comment.t b/t/app/model/comment.t new file mode 100644 index 000000000..93104c2e5 --- /dev/null +++ b/t/app/model/comment.t @@ -0,0 +1,27 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::More tests => 2; + +use FixMyStreet; +use FixMyStreet::App; + +my $comment_rs = FixMyStreet::App->model('DB::Comment'); + +my $comment = $comment_rs->new( + { + user_id => 1, + problem_id => 1, + text => '', + state => 'confirmed', + anonymous => 0, + mark_fixed => 0, + cobrand => 'default', + cobrand_data => '', + } +); + +is $comment->confirmed_local, undef, 'inflating null confirmed ok'; +is $comment->created_local, undef, 'inflating null confirmed ok'; |