Fixed tests for 3.2

Partial merge from master on 2977f85cb5
This commit is contained in:
Ingo Schommer 2016-03-04 15:26:29 +13:00
parent 2214d947f6
commit fb86f8a626

View File

@ -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)