From b732f871c20af965117ee394a323ad361fcc197b Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 11 Oct 2023 09:07:34 +0200 Subject: [PATCH] chore: Fix undeclared class properties in integration tests Signed-off-by: Christoph Wurst --- tests/Integration/Db/LocalAttachmentMapperTest.php | 3 +++ tests/Integration/Service/DraftServiceIntegrationTest.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Integration/Db/LocalAttachmentMapperTest.php b/tests/Integration/Db/LocalAttachmentMapperTest.php index 37ee6d358f..0525a3e13b 100644 --- a/tests/Integration/Db/LocalAttachmentMapperTest.php +++ b/tests/Integration/Db/LocalAttachmentMapperTest.php @@ -47,6 +47,9 @@ class LocalAttachmentMapperTest extends TestCase { /** @var LocalAttachmentMapper */ private $mapper; + /** @var LocalMessageMapper */ + private $localMessageMapper; + /** @var ITimeFactory|MockObject */ private $timeFactory; diff --git a/tests/Integration/Service/DraftServiceIntegrationTest.php b/tests/Integration/Service/DraftServiceIntegrationTest.php index 6a74039932..58b814840c 100644 --- a/tests/Integration/Service/DraftServiceIntegrationTest.php +++ b/tests/Integration/Service/DraftServiceIntegrationTest.php @@ -120,8 +120,8 @@ protected function setUp(): void { $this->accountService = $this->createMock(AccountService::class); $this->timeFactory = $this->createMock(ITimeFactory::class); - $this->db = OC::$server->getDatabaseConnection(); - $qb = $this->db->getQueryBuilder(); + $db = OC::$server->getDatabaseConnection(); + $qb = $db->getQueryBuilder(); $delete = $qb->delete($this->mapper->getTableName()); $delete->execute();