From 2cf4c9bac558e978d376ef80c4f515d829706c4c Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Fri, 21 Feb 2014 15:01:48 +0200 Subject: CI_Upload changes - Method chaining support. - A more abstract resetting of the default settings. - Added an option to initialize() to disable resetting to default settings. - Removed method mimes_types() and slightly optimized chunks of code where it was used. - Added the ability to pass allowed_types as an array. --- tests/codeigniter/libraries/Upload_test.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/codeigniter/libraries/Upload_test.php b/tests/codeigniter/libraries/Upload_test.php index a953d8329..03eb640b7 100644 --- a/tests/codeigniter/libraries/Upload_test.php +++ b/tests/codeigniter/libraries/Upload_test.php @@ -259,10 +259,4 @@ class Upload_test extends CI_TestCase { $this->assertEquals('

Error test

', $this->upload->display_errors()); } - function test_mimes_types() - { - $this->assertEquals('text/plain', $this->upload->mimes_types('txt')); - $this->assertFalse($this->upload->mimes_types('foobar')); - } - } \ No newline at end of file -- cgit v1.2.3-24-g4f1b