aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload/fileupload_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-09 12:58:22 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-09 12:58:22 +0200
commit40e614f56436447dffd272351e23b79c2da9fa3f (patch)
treefc534b430576dd978d3a13c5b2f3e1ca13c33056 /tests/upload/fileupload_test.php
parent5f91f1cad85eaf7f8dc62a1a140605a46431496f (diff)
downloadforums-40e614f56436447dffd272351e23b79c2da9fa3f.tar
forums-40e614f56436447dffd272351e23b79c2da9fa3f.tar.gz
forums-40e614f56436447dffd272351e23b79c2da9fa3f.tar.bz2
forums-40e614f56436447dffd272351e23b79c2da9fa3f.tar.xz
forums-40e614f56436447dffd272351e23b79c2da9fa3f.zip
[ticket/13904] Fix tests after changes to factory
PHPBB3-13904
Diffstat (limited to 'tests/upload/fileupload_test.php')
-rw-r--r--tests/upload/fileupload_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/upload/fileupload_test.php b/tests/upload/fileupload_test.php
index 01b625efbb..211e72a6e9 100644
--- a/tests/upload/fileupload_test.php
+++ b/tests/upload/fileupload_test.php
@@ -185,7 +185,7 @@ class phpbb_fileupload_test extends phpbb_test_case
->set_max_filesize(1000);
copy($this->path . 'jpg', $this->path . 'jpg.jpg');
- $file = $upload->handle_upload('local', $this->path . 'jpg.jpg');
+ $file = $upload->handle_upload('files.types.local', $this->path . 'jpg.jpg');
$this->assertEquals(0, sizeof($file->error));
$this->assertFalse($file->additional_checks());
$this->assertTrue($file->move_file('../tests/upload/fixture/copies', true));
@@ -199,7 +199,7 @@ class phpbb_fileupload_test extends phpbb_test_case
->set_max_filesize(1000);
copy($this->path . 'jpg', $this->path . 'jpg.jpg');
- $file = $upload->handle_upload('local', $this->path . 'jpg.jpg');
+ $file = $upload->handle_upload('files.types.local', $this->path . 'jpg.jpg');
$this->assertEquals(0, sizeof($file->error));
$this->assertFalse($file->move_file('../tests/upload/fixture'));
$this->assertFalse($file->file_moved);
@@ -214,7 +214,7 @@ class phpbb_fileupload_test extends phpbb_test_case
copy($this->path . 'jpg', $this->path . 'jpg.jpg');
copy($this->path . 'jpg', $this->path . 'copies/jpg.jpg');
- $file = $upload->handle_upload('local', $this->path . 'jpg.jpg');
+ $file = $upload->handle_upload('files.types.local', $this->path . 'jpg.jpg');
$this->assertEquals(0, sizeof($file->error));
$file->move_file('../tests/upload/fixture/copies', true);
$this->assertEquals(0, sizeof($file->error));