From eeac5ffce9988ff26f425e2053edd3744a99532e Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Thu, 7 Jan 2021 12:20:06 -0500 Subject: [PATCH] Tests: Add missing instantiation of data --- .../integration/api/discussions/CreateTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/framework/core/tests/integration/api/discussions/CreateTest.php b/framework/core/tests/integration/api/discussions/CreateTest.php index e24969937..c0cf9c210 100644 --- a/framework/core/tests/integration/api/discussions/CreateTest.php +++ b/framework/core/tests/integration/api/discussions/CreateTest.php @@ -18,6 +18,20 @@ class CreateTest extends TestCase { use RetrievesAuthorizedUsers; + /** + * @inheritDoc + */ + protected function setUp(): void + { + parent::setUp(); + + $this->prepareDatabase([ + 'users' => [ + $this->normalUser(), + ] + ]); + } + /** * @test */