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