aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/fileupload_remote_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/functional/fileupload_remote_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/functional/fileupload_remote_test.php')
-rw-r--r--tests/functional/fileupload_remote_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/fileupload_remote_test.php b/tests/functional/fileupload_remote_test.php
index 3349ffc576..7e0f192b40 100644
--- a/tests/functional/fileupload_remote_test.php
+++ b/tests/functional/fileupload_remote_test.php
@@ -78,7 +78,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case
$upload->set_error_prefix('')
->set_allowed_extensions(array('jpg'))
->set_max_filesize(100);
- $file = $upload->handle_upload('remote', self::$root_url . 'develop/blank.gif');
+ $file = $upload->handle_upload('files.types.remote', self::$root_url . 'develop/blank.gif');
$this->assertEquals('URL_INVALID', $file->error[0]);
}
@@ -89,7 +89,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case
$upload->set_error_prefix('')
->set_allowed_extensions(array('jpg'))
->set_max_filesize(100);
- $file = $upload->handle_upload('remote', self::$root_url . 'develop/blank.jpg');
+ $file = $upload->handle_upload('files.types.remote', self::$root_url . 'develop/blank.jpg');
$this->assertEquals('EMPTY_REMOTE_DATA', $file->error[0]);
}
@@ -100,7 +100,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case
$upload->set_error_prefix('')
->set_allowed_extensions(array('gif'))
->set_max_filesize(1000);
- $file = $upload->handle_upload('remote', self::$root_url . 'styles/prosilver/theme/images/forum_read.gif');
+ $file = $upload->handle_upload('files.types.remote', self::$root_url . 'styles/prosilver/theme/images/forum_read.gif');
$this->assertEquals(0, sizeof($file->error));
$this->assertTrue(file_exists($file->get('filename')));
$this->assertTrue($file->is_uploaded());
@@ -113,7 +113,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case
$upload->set_error_prefix('')
->set_allowed_extensions(array('gif'))
->set_max_filesize(100);
- $file = $upload->handle_upload('remote', self::$root_url . 'styles/prosilver/theme/images/forum_read.gif');
+ $file = $upload->handle_upload('files.types.remote', self::$root_url . 'styles/prosilver/theme/images/forum_read.gif');
$this->assertEquals(1, sizeof($file->error));
$this->assertEquals('WRONG_FILESIZE', $file->error[0]);
}