From fb86f8a626d021620d302954dfe74715bbc9f93c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 4 Mar 2016 15:26:29 +1300 Subject: [PATCH] Fixed tests for 3.2 Partial merge from master on 2977f85cb5b4f3c81c473a2819ce80bf8a49d37b --- tests/FileTextExtractableTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/FileTextExtractableTest.php b/tests/FileTextExtractableTest.php index 4bee4c8..e36f1cf 100644 --- a/tests/FileTextExtractableTest.php +++ b/tests/FileTextExtractableTest.php @@ -5,6 +5,19 @@ class FileTextExtractableTest extends SapphireTest { 'File' => array('FileTextExtractable') ); + public function setUp() { + parent::setUp(); + + Config::nest(); + Config::inst()->update('File', 'allowed_extensions', array('html')); + } + + public function tearDown() { + Config::unnest(); + + parent::tearDown(); + } + function testExtractFileAsText() { // Create a copy of the file, as it may be clobbered by the test // ($file->extractFileAsText() calls $file->write)