mirror of
https://github.com/friendica/friendica
synced 2024-12-27 04:00:16 +00:00
30 lines
501 B
PHP
30 lines
501 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Test;
|
|
|
|
/**
|
|
* Abstract class used by tests that need a database.
|
|
*/
|
|
abstract class DatabaseTest extends MockedTest
|
|
{
|
|
use DatabaseTestTrait;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
$this->setUpDb();
|
|
|
|
parent::setUp();
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
$this->tearDownDb();
|
|
|
|
parent::tearDown();
|
|
}
|
|
}
|