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() protected function createsSite()
{ {
$paths = [
'base' => __DIR__.'/../../tmp',
'public' => __DIR__.'/../../tmp/public',
'storage' => __DIR__.'/../../tmp/storage',
];
if ($this->isInstalled) { if ($this->isInstalled) {
$this->site = new InstalledSite( $this->site = new InstalledSite($paths, $this->getFlarumConfig());
__DIR__.'/../../tmp',
__DIR__.'/../../tmp/public',
$this->getFlarumConfig()
);
} else { } else {
$this->site = new UninstalledSite( $this->site = new UninstalledSite($paths);
__DIR__.'/../../tmp',
__DIR__.'/../../tmp/public'
);
} }
} }