mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
parent
2214d947f6
commit
fb86f8a626
@ -5,6 +5,19 @@ class FileTextExtractableTest extends SapphireTest {
|
|||||||
'File' => array('FileTextExtractable')
|
'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() {
|
function testExtractFileAsText() {
|
||||||
// Create a copy of the file, as it may be clobbered by the test
|
// Create a copy of the file, as it may be clobbered by the test
|
||||||
// ($file->extractFileAsText() calls $file->write)
|
// ($file->extractFileAsText() calls $file->write)
|
||||||
|
Loading…
Reference in New Issue
Block a user