Skip to content

Commit

Permalink
chore: Fix undeclared class properties in integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Oct 11, 2023
1 parent 0624f53 commit b732f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/Integration/Db/LocalAttachmentMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class LocalAttachmentMapperTest extends TestCase {
/** @var LocalAttachmentMapper */
private $mapper;

/** @var LocalMessageMapper */
private $localMessageMapper;

/** @var ITimeFactory|MockObject */
private $timeFactory;

Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Service/DraftServiceIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b732f87

Please sign in to comment.