diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-30 13:26:16 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-30 13:26:16 +0200 |
commit | a36defb10fd8962d6073bfafd0cab1b7e15fbbda (patch) | |
tree | 58560c2c3c82b04d195d6cfaf1b706aa765e22ea /tests/functional/fileupload_remote_test.php | |
parent | 4f6b12ae1d4b9ac681efff0651a0007fed6942b6 (diff) | |
download | forums-a36defb10fd8962d6073bfafd0cab1b7e15fbbda.tar forums-a36defb10fd8962d6073bfafd0cab1b7e15fbbda.tar.gz forums-a36defb10fd8962d6073bfafd0cab1b7e15fbbda.tar.bz2 forums-a36defb10fd8962d6073bfafd0cab1b7e15fbbda.tar.xz forums-a36defb10fd8962d6073bfafd0cab1b7e15fbbda.zip |
[ticket/develop/11568] Fix some more tests in 3.1
PHPBB3-11568
Diffstat (limited to 'tests/functional/fileupload_remote_test.php')
-rw-r--r-- | tests/functional/fileupload_remote_test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/functional/fileupload_remote_test.php b/tests/functional/fileupload_remote_test.php index 0deb79acf6..8e361ab77b 100644 --- a/tests/functional/fileupload_remote_test.php +++ b/tests/functional/fileupload_remote_test.php @@ -58,7 +58,7 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case public function test_successful_upload() { $upload = new fileupload('', array('gif'), 1000); - $file = $upload->remote_upload($this->root_url . 'styles/prosilver/theme/images/forum_read.gif'); + $file = $upload->remote_upload(self::$root_url . 'styles/prosilver/theme/images/forum_read.gif'); $this->assertEquals(0, sizeof($file->error)); $this->assertTrue(file_exists($file->filename)); } @@ -66,7 +66,8 @@ class phpbb_functional_fileupload_remote_test extends phpbb_functional_test_case public function test_too_large() { $upload = new fileupload('', array('gif'), 100); - $file = $upload->remote_upload($this->root_url . 'styles/prosilver/theme/images/forum_read.gif'); + $file = $upload->remote_upload(self::$root_url . 'styles/prosilver/theme/images/forum_read.gif'); + $this->assertEquals(1, sizeof($file->error)); $this->assertEquals('WRONG_FILESIZE', $file->error[0]); } } |