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

add cookie property

This commit is contained in:
Abrar Ahmad 2022-10-18 16:42:15 +05:00
parent 9eab5216b9
commit 0d7c52634a
2 changed files with 5 additions and 3 deletions

View file

@ -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