Fix unit tests

Fix to use private files instead as a result of da17a96926
This commit is contained in:
Luke Towers 2018-04-19 01:57:27 -06:00 committed by GitHub
parent 2b22b26676
commit b0f82adb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -21,11 +21,13 @@ class ImportModelDbTest extends PluginTestCase
$sessionKey = uniqid('session_key', true);
$file1 = FileModel::create([
'data' => base_path().'/tests/fixtures/backend/reference/file1.txt'
'data' => base_path().'/tests/fixtures/backend/reference/file1.txt',
'is_public' => false,
]);
$file2 = FileModel::create([
'data' => base_path().'/tests/fixtures/backend/reference/file2.txt'
'data' => base_path().'/tests/fixtures/backend/reference/file2.txt',
'is_public' => false,
]);
$model->import_file()->add($file1, $sessionKey);