From 194808ec7c0357a0774fa5f36a25da5575510b67 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 24 Oct 2018 22:38:36 +0200 Subject: [PATCH] Fix tests --- .../core/tests/Test/Concerns/CreatesForum.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/framework/core/tests/Test/Concerns/CreatesForum.php b/framework/core/tests/Test/Concerns/CreatesForum.php index ada96f3ac..a16b2269d 100644 --- a/framework/core/tests/Test/Concerns/CreatesForum.php +++ b/framework/core/tests/Test/Concerns/CreatesForum.php @@ -54,17 +54,16 @@ trait CreatesForum protected function createsSite() { + $paths = [ + 'base' => __DIR__.'/../../tmp', + 'public' => __DIR__.'/../../tmp/public', + 'storage' => __DIR__.'/../../tmp/storage', + ]; + if ($this->isInstalled) { - $this->site = new InstalledSite( - __DIR__.'/../../tmp', - __DIR__.'/../../tmp/public', - $this->getFlarumConfig() - ); + $this->site = new InstalledSite($paths, $this->getFlarumConfig()); } else { - $this->site = new UninstalledSite( - __DIR__.'/../../tmp', - __DIR__.'/../../tmp/public' - ); + $this->site = new UninstalledSite($paths); } }