blob: e83d795fc0a1ec0955a737a21a5ab604a1bf68f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
use strict;
use warnings;
use Test::More tests => 2;
use FixMyStreet;
use FixMyStreet::DB;
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';
|