Fix tests

This commit is contained in:
Franz Liedke 2018-10-24 22:38:36 +02:00
parent 2392e06c0e
commit 4775535421
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -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);
}
}