mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 12:14:03 +00:00
add cookie property
This commit is contained in:
parent
9eab5216b9
commit
0d7c52634a
2 changed files with 5 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ beforeEach(function () {
|
|||
|
||||
afterEach(function () {
|
||||
InitializeTenancyByRequestData::$header = 'X-Tenant';
|
||||
InitializeTenancyByRequestData::$cookie = 'X-Tenant';
|
||||
InitializeTenancyByRequestData::$queryParameter = 'tenant';
|
||||
});
|
||||
|
||||
|
|
@ -46,7 +47,7 @@ test('query parameter identification works', function () {
|
|||
});
|
||||
|
||||
test('cookie identification works', function () {
|
||||
InitializeTenancyByRequestData::$header = 'X-Tenant';
|
||||
InitializeTenancyByRequestData::$cookie = 'X-Tenant';
|
||||
$tenant = Tenant::create();
|
||||
|
||||
$this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue