Add and fix heading IDs (#232)

This commit is contained in:
lukinovec 2023-01-06 15:34:04 +01:00 committed by GitHub
parent 8029bdc51c
commit ca5924646d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 17 deletions

View file

@ -10,7 +10,7 @@ section: content
TODO: Review
## Events
## Events {#events}
Keep in mind that the package makes heavy use of events, so if you use `Event::fake()` anywhere in your tests, tenancy initialization and related processes might break.
@ -30,7 +30,7 @@ Event::fake();
To test your central app, just write normal Laravel tests.
## Tenant app {#central-app}
## Tenant app {#tenant-app}
Note: If you're using multi-database tenancy & the automatic mode, it's not possible to use `:memory:` SQLite databases or the `RefreshDatabase` trait due to the switching of default database.
@ -55,7 +55,7 @@ class TestCase // extends ...
public function initializeTenancy()
{
$tenant = Tenant::create();
tenancy()->initialize($tenant);
}