aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/comment.t
blob: 3f30b3a1e4c6ddb645f5460f54ebb5646bf2fcf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use FixMyStreet::Test;

my $comment_rs = FixMyStreet::DB->resultset('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,  undef, 'inflating null confirmed ok';
is $comment->created,  undef, 'inflating null confirmed ok';
done_testing();