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.
This commit is contained in:
Chiko 2020-07-01 11:35:10 +02:00 committed by GitHub
parent 5ccbb7d6e2
commit df4dd28f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ class TestCase // extends ...
public function setUp(): void
{
parent::setUp();
if ($this->tenancy) {
$this->initializeTenancy();
}
@ -57,4 +58,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.