aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Factories.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-12 16:39:49 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-12 16:39:49 +0000
commit78d2ffa57186eac5c7f5b06de7f6b5948dd6ee7d (patch)
tree3c04ea0b1ea11000ee680b02a51396e42a42cd29 /perllib/FixMyStreet/DB/Factories.pm
parent97e68dfac3658037fe9cef6f5010a55f626d7b6a (diff)
parent302ad26251e64bd4163472807a370d45c374b988 (diff)
Merge branch 'fixture-images'
Diffstat (limited to 'perllib/FixMyStreet/DB/Factories.pm')
-rw-r--r--perllib/FixMyStreet/DB/Factories.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Factories.pm b/perllib/FixMyStreet/DB/Factories.pm
index 7b8234aec..0e99608e1 100644
--- a/perllib/FixMyStreet/DB/Factories.pm
+++ b/perllib/FixMyStreet/DB/Factories.pm
@@ -22,7 +22,7 @@ use parent "DBIx::Class::Factory";
__PACKAGE__->resultset(FixMyStreet::DB->resultset("Problem"));
-__PACKAGE__->exclude(['body']);
+__PACKAGE__->exclude(['body', 'photo_id']);
__PACKAGE__->fields({
postcode => '',
@@ -30,6 +30,7 @@ __PACKAGE__->fields({
detail => __PACKAGE__->seq(sub { 'Detail #' . (shift()+1) }),
name => __PACKAGE__->callback(sub { shift->get('user')->name }),
bodies_str => __PACKAGE__->callback(sub { shift->get('body')->id }),
+ photo => __PACKAGE__->callback(sub { shift->get('photo_id') }),
confirmed => \'current_timestamp',
whensent => \'current_timestamp',
state => 'confirmed',