friendica-github/tests/FixtureTest.php

45 lines
993 B
PHP
Raw Normal View History

<?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
namespace Friendica\Test;
use Dice\Dice;
use Friendica\App\Arguments;
use Friendica\App\Router;
use Friendica\Core\Config\Capability\IManageConfigValues;
2023-01-01 20:10:41 +00:00
use Friendica\Core\Config\Factory\Config;
use Friendica\Core\Config\Util\ConfigFileManager;
2021-10-26 19:44:29 +00:00
use Friendica\Core\Session\Capability\IHandleSessions;
2022-10-22 18:03:15 +00:00
use Friendica\Core\Session\Type\Memory;
use Friendica\Database\Database;
use Friendica\Database\DBStructure;
use Friendica\DI;
use Friendica\Test\Util\Database\StaticDatabase;
2023-01-01 20:10:41 +00:00
use Friendica\Test\Util\VFSTrait;
/**
* Parent class for test cases requiring fixtures
*/
abstract class FixtureTest extends MockedTest
{
use FixtureTestTrait;
2023-01-01 20:10:41 +00:00
protected function setUp(): void
{
parent::setUp();
$this->setUpFixtures();
}
protected function tearDown(): void
{
$this->tearDownFixtures();
parent::tearDown();
}
}