mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Fix tests
This commit is contained in:
parent
2392e06c0e
commit
4775535421
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user