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