mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
Merge branch '3.0'
This commit is contained in:
commit
d5313674c3
@ -5,6 +5,7 @@ namespace SilverStripe\TextExtraction\Tests;
|
||||
use SilverStripe\Assets\File;
|
||||
use SilverStripe\Core\Config\Config;
|
||||
use SilverStripe\Dev\SapphireTest;
|
||||
use SilverStripe\TextExtraction\Cache\FileTextCache;
|
||||
use SilverStripe\TextExtraction\Extension\FileTextExtractable;
|
||||
|
||||
class FileTextExtractableTest extends SapphireTest
|
||||
@ -44,8 +45,9 @@ class FileTextExtractableTest extends SapphireTest
|
||||
public function testExtractFileAsText()
|
||||
{
|
||||
// Use HTML, since the extractor is always available
|
||||
/** @var File|FileTextExtractable $file */
|
||||
/** @var File&FileTextExtractable $file */
|
||||
$file = new File(['Name' => 'test1-copy.html']);
|
||||
$file->setTextCache(new FileTextCache\Database());
|
||||
$file->setFromLocalFile(dirname(__FILE__) . '/fixtures/test1-copy.html');
|
||||
$file->write();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user