rename DatabaseTest to DatabaseTestCase

This commit is contained in:
Art4 2024-12-13 22:10:30 +00:00
parent c00a7c571a
commit 4f02c9ca88
9 changed files with 14 additions and 14 deletions

View file

@ -10,7 +10,7 @@ namespace Friendica\Test;
/** /**
* Abstract class used by tests that need a database. * Abstract class used by tests that need a database.
*/ */
abstract class DatabaseTest extends MockedTestCase abstract class DatabaseTestCase extends MockedTestCase
{ {
use DatabaseTestTrait; use DatabaseTestTrait;

View file

@ -13,7 +13,7 @@ use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\Database\Definition\DbaDefinition; use Friendica\Database\Definition\DbaDefinition;
use Friendica\Database\Definition\ViewDefinition; use Friendica\Database\Definition\ViewDefinition;
use Friendica\Test\DatabaseTestTrait; use Friendica\Test\DatabaseTestCaseTrait;
use Friendica\Test\Util\Database\StaticDatabase; use Friendica\Test\Util\Database\StaticDatabase;
use Friendica\Util\Profiler; use Friendica\Util\Profiler;
use Psr\Log\NullLogger; use Psr\Log\NullLogger;

View file

@ -7,9 +7,9 @@
namespace Friendica\Test\src\Content; namespace Friendica\Test\src\Content;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
class PageInfoTest extends DatabaseTest class PageInfoTest extends DatabaseTestCase
{ {
public function dataGetRelevantUrlFromBody() public function dataGetRelevantUrlFromBody()
{ {

View file

@ -9,7 +9,7 @@ namespace Friendica\Test\src\Core\Cache;
use Friendica\App\BaseURL; use Friendica\App\BaseURL;
use Friendica\Core\Cache; use Friendica\Core\Cache;
use Friendica\Test\DatabaseTestTrait; use Friendica\Test\DatabaseTestCaseTrait;
use Friendica\Test\Util\CreateDatabaseTrait; use Friendica\Test\Util\CreateDatabaseTrait;
use Friendica\Test\Util\VFSTrait; use Friendica\Test\Util\VFSTrait;

View file

@ -13,12 +13,12 @@ use Friendica\Core\Config\Model\DatabaseConfig;
use Friendica\Core\Config\Model\ReadOnlyFileConfig; use Friendica\Core\Config\Model\ReadOnlyFileConfig;
use Friendica\Core\Config\Util\ConfigFileManager; use Friendica\Core\Config\Util\ConfigFileManager;
use Friendica\Core\Config\ValueObject\Cache; use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
use Friendica\Test\Util\CreateDatabaseTrait; use Friendica\Test\Util\CreateDatabaseTrait;
use Friendica\Test\Util\VFSTrait; use Friendica\Test\Util\VFSTrait;
use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStream;
class ConfigTest extends DatabaseTest class ConfigTest extends DatabaseTestCase
{ {
use ArraySubsetAsserts; use ArraySubsetAsserts;
use VFSTrait; use VFSTrait;

View file

@ -14,7 +14,7 @@ use Friendica\Core\Config\Model\ConfigTransaction;
use Friendica\Core\Config\Util\ConfigFileManager; use Friendica\Core\Config\Util\ConfigFileManager;
use Friendica\Core\Config\ValueObject\Cache; use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
use Friendica\Test\FixtureTestCase; use Friendica\Test\FixtureTestCase;
use Friendica\Test\MockedTest; use Friendica\Test\MockedTest;
use Friendica\Test\Util\Database\StaticDatabase; use Friendica\Test\Util\Database\StaticDatabase;

View file

@ -26,7 +26,7 @@ use Friendica\Database\Definition\ViewDefinition;
use Friendica\DI; use Friendica\DI;
use Friendica\Core\Config\Factory\Config; use Friendica\Core\Config\Factory\Config;
use Friendica\Core\Storage\Type; use Friendica\Core\Storage\Type;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
use Friendica\Test\Util\CreateDatabaseTrait; use Friendica\Test\Util\CreateDatabaseTrait;
use Friendica\Test\Util\Database\StaticDatabase; use Friendica\Test\Util\Database\StaticDatabase;
use Friendica\Test\Util\VFSTrait; use Friendica\Test\Util\VFSTrait;
@ -36,7 +36,7 @@ use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger; use Psr\Log\NullLogger;
use Friendica\Test\Util\SampleStorageBackend; use Friendica\Test\Util\SampleStorageBackend;
class StorageManagerTest extends DatabaseTest class StorageManagerTest extends DatabaseTestCase
{ {
use CreateDatabaseTrait; use CreateDatabaseTrait;

View file

@ -11,10 +11,10 @@ use Dice\Dice;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\Database\DBA; use Friendica\Database\DBA;
use Friendica\DI; use Friendica\DI;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
use Friendica\Test\Util\Database\StaticDatabase; use Friendica\Test\Util\Database\StaticDatabase;
class DBATest extends DatabaseTest class DBATest extends DatabaseTestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {

View file

@ -11,10 +11,10 @@ use Dice\Dice;
use Friendica\Database\Database; use Friendica\Database\Database;
use Friendica\Database\DBStructure; use Friendica\Database\DBStructure;
use Friendica\DI; use Friendica\DI;
use Friendica\Test\DatabaseTest; use Friendica\Test\DatabaseTestCase;
use Friendica\Test\Util\Database\StaticDatabase; use Friendica\Test\Util\Database\StaticDatabase;
class DBStructureTest extends DatabaseTest class DBStructureTest extends DatabaseTestCase
{ {
protected function setUp(): void protected function setUp(): void
{ {