summaryrefslogtreecommitdiff
path: root/tests/TestCase.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-03 13:44:03 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-04 11:17:33 +0000
commit7def76c7d817a9ec81e9ae4a03a850514b1a2e1c (patch)
tree3fcf7e8236356daac44f7c17b8c0c5bc736a0926 /tests/TestCase.php
parentadfb3656b8dac8505590490f4f8aaf4bea27881b (diff)
downloadwebtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.gz
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.tar.bz2
webtrees-7def76c7d817a9ec81e9ae4a03a850514b1a2e1c.zip
Working on upgrade wizard and testing
Diffstat (limited to 'tests/TestCase.php')
-rw-r--r--tests/TestCase.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/TestCase.php b/tests/TestCase.php
index f3edfc970c..f20a691ef7 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -27,8 +27,10 @@ use Fisharebest\Webtrees\Services\UserService;
use Illuminate\Cache\ArrayStore;
use Illuminate\Cache\Repository;
use Illuminate\Database\Capsule\Manager as DB;
-use function basename;
+use League\Flysystem\Filesystem;
+use League\Flysystem\Memory\MemoryAdapter;
use Symfony\Component\HttpFoundation\Request;
+use function basename;
/**
* Base class for unit tests
@@ -82,6 +84,7 @@ class TestCase extends \PHPUnit\Framework\TestCase
app()->instance(UserInterface::class, new GuestUser());
app()->instance(Request::class, Request::createFromGlobals());
+ app()->instance(Filesystem::class, new Filesystem(new MemoryAdapter()));
app()->bind(ModuleThemeInterface::class, WebtreesTheme::class);
@@ -106,9 +109,9 @@ class TestCase extends \PHPUnit\Framework\TestCase
app('cache.array')->flush();
- Site::$preferences = [];
- Tree::$trees = [];
- GedcomRecord::$gedcom_record_cache = null;
+ Site::$preferences = [];
+ Tree::$trees = [];
+ GedcomRecord::$gedcom_record_cache = null;
GedcomRecord::$pending_record_cache = null;
Auth::logout();