2018-04-09 19:23:41 +00:00
|
|
|
<?php
|
2024-08-24 12:31:41 +00:00
|
|
|
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-04-09 19:23:41 +00:00
|
|
|
|
|
|
|
namespace Friendica\Test;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Abstract class used by tests that need a database.
|
|
|
|
*/
|
2018-11-01 12:44:47 +00:00
|
|
|
abstract class DatabaseTest extends MockedTest
|
2018-04-09 19:23:41 +00:00
|
|
|
{
|
2019-08-03 18:48:56 +00:00
|
|
|
use DatabaseTestTrait;
|
2021-04-01 21:04:30 +00:00
|
|
|
|
|
|
|
protected function setUp(): void
|
|
|
|
{
|
|
|
|
$this->setUpDb();
|
|
|
|
|
|
|
|
parent::setUp();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function tearDown(): void
|
|
|
|
{
|
|
|
|
$this->tearDownDb();
|
|
|
|
|
|
|
|
parent::tearDown();
|
|
|
|
}
|
2018-04-09 19:23:41 +00:00
|
|
|
}
|