mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Update testing.blade.md (#58)
* Update testing.blade.md Added call to parent's setUp() method others some essential operations will not be run e.g resetting of db, etc. * Reindent Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
5ccbb7d6e2
commit
ffc406bff1
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ class TestCase // extends ...
|
|||
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
if ($this->tenancy) {
|
||||
$this->initializeTenancy();
|
||||
}
|
||||
|
|
@ -57,4 +59,4 @@ class FooTest extends TestCase
|
|||
}
|
||||
```
|
||||
|
||||
Or you may want to create a separate TestCase class for tenant tests, for better organization.
|
||||
Or you may want to create a separate TestCase class for tenant tests, for better organization.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue