mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:14:04 +00:00
Fix tenant asset controller middleware() logic
This commit is contained in:
parent
d243309bcf
commit
fdd401fc8f
2 changed files with 13 additions and 9 deletions
|
|
@ -25,6 +25,7 @@ beforeEach(function () {
|
|||
|
||||
TenancyUrlGenerator::$prefixRouteNames = false;
|
||||
TenancyUrlGenerator::$passTenantParameterToRoutes = true;
|
||||
TenantAssetController::$headers = [];
|
||||
|
||||
/** @var CloneRoutesAsTenant $cloneAction */
|
||||
$cloneAction = app(CloneRoutesAsTenant::class);
|
||||
|
|
@ -137,7 +138,7 @@ test('TenantAssetController headers are configurable', function () {
|
|||
$response->assertSuccessful();
|
||||
$response->assertHeader('X-Foo', 'Bar');
|
||||
|
||||
TenantAssetController::$headers = null; // reset static property
|
||||
TenantAssetController::$headers = []; // reset static property
|
||||
});
|
||||
|
||||
test('global asset helper returns the same url regardless of tenancy initialization', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue