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:
Chiko 2020-07-01 13:04:53 +02:00 committed by GitHub
parent 5ccbb7d6e2
commit ffc406bff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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