aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-09-28 16:20:09 +0100
committerDave Arter <davea@mysociety.org>2018-09-28 16:20:09 +0100
commitaedfb6de6b4839396b8bcc885e075b28ea9b4885 (patch)
tree1ac3c9d0148b3f98ff29985e8c760740bb8d2548 /t/app/controller
parentec55469dadd99dd0f20d3d0c3b4202b6b70bb6ab (diff)
parent07bc1188dc149e05b61e0d93ecf3ef1c26dc8690 (diff)
Merge branch 'pluggable-photo-storage'
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/photo.t10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/app/controller/photo.t b/t/app/controller/photo.t
index e9183836b..e28ee1946 100644
--- a/t/app/controller/photo.t
+++ b/t/app/controller/photo.t
@@ -24,7 +24,10 @@ subtest "Check multiple upload worked" => sub {
FixMyStreet::override_config {
ALLOWED_COBRANDS => [ { fixmystreet => '.' } ],
MAPIT_URL => 'http://mapit.uk/',
- UPLOAD_DIR => $UPLOAD_DIR,
+ PHOTO_STORAGE_BACKEND => 'FileSystem',
+ PHOTO_STORAGE_OPTIONS => {
+ UPLOAD_DIR => $UPLOAD_DIR,
+ },
}, sub {
$mech->log_in_ok('test@example.com');
@@ -77,7 +80,10 @@ subtest "Check photo uploading URL works" => sub {
# submit initial pc form
FixMyStreet::override_config {
- UPLOAD_DIR => $UPLOAD_DIR,
+ PHOTO_STORAGE_BACKEND => 'FileSystem',
+ PHOTO_STORAGE_OPTIONS => {
+ UPLOAD_DIR => $UPLOAD_DIR,
+ },
}, sub {
$mech->post( '/photo/upload',
Content_Type => 'form-data',