From ffc406bff1c7014a9562b0b896e95e66fce66a4f Mon Sep 17 00:00:00 2001 From: Chiko Date: Wed, 1 Jul 2020 13:04:53 +0200 Subject: [PATCH] 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 --- source/docs/v3/testing.blade.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/docs/v3/testing.blade.md b/source/docs/v3/testing.blade.md index 5fa142b..393eb1b 100644 --- a/source/docs/v3/testing.blade.md +++ b/source/docs/v3/testing.blade.md @@ -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. \ No newline at end of file +Or you may want to create a separate TestCase class for tenant tests, for better organization.