aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-12-17 12:59:44 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-12-17 17:42:13 +0100
commit54d96dfac720d5aa1cdc617ca93749d26ee9f264 (patch)
tree9f9a5e009453c973497c35c3950c903560f44e38 /tests/upload
parent9420647c43b300699afe6fe72f09d1746daf64a2 (diff)
downloadforums-54d96dfac720d5aa1cdc617ca93749d26ee9f264.tar
forums-54d96dfac720d5aa1cdc617ca93749d26ee9f264.tar.gz
forums-54d96dfac720d5aa1cdc617ca93749d26ee9f264.tar.bz2
forums-54d96dfac720d5aa1cdc617ca93749d26ee9f264.tar.xz
forums-54d96dfac720d5aa1cdc617ca93749d26ee9f264.zip
[ticket/10763] Make functions for remote avatars static
fileupload::image_types() and filespec::get_extension() are called statically while submitting the form for the remote avatar. Make them static as described in the ticket in order to prevent a PHP notice. Also change the tests to use the static functions. PHPBB3-10763
Diffstat (limited to 'tests/upload')
-rw-r--r--tests/upload/filespec_test.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/upload/filespec_test.php b/tests/upload/filespec_test.php
index c7ff2e78e0..87cd00197f 100644
--- a/tests/upload/filespec_test.php
+++ b/tests/upload/filespec_test.php
@@ -205,8 +205,7 @@ class phpbb_filespec_test extends phpbb_test_case
*/
public function test_get_extension($filename, $expected)
{
- $filespec = $this->get_filespec();
- $this->assertEquals($expected, $filespec->get_extension($filename));
+ $this->assertEquals($expected, filespec::get_extension($filename));
}
public function is_image_variables()