1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 19:14:03 +00:00

Make asset tenancy optional

This commit is contained in:
Samuel Štancl 2020-02-26 09:07:31 +01:00
parent 98ce0ee294
commit 94093c7f16
3 changed files with 35 additions and 10 deletions

View file

@ -68,4 +68,20 @@ class TenantAssetTest extends TestCase
$this->assertSame($original, global_asset('foobar'));
}
/** @test */
public function asset_helper_tenancy_can_be_disabled()
{
$original = asset('foo');
config([
'app.asset_url' => null,
'tenancy.filesystem.asset_helper_tenancy' => false,
]);
Tenant::create('foo.localhost');
tenancy()->init('foo.localhost');
$this->assertSame($original, asset('foo'));
}
}