rename FixtureTest to FixtureTestCase

This commit is contained in:
Art4 2024-12-13 22:04:16 +00:00
parent ee579280c7
commit 42b543cd24
25 changed files with 49 additions and 49 deletions

View file

@ -10,7 +10,7 @@ namespace Friendica\Test;
/**
* Parent class for test cases requiring fixtures
*/
abstract class FixtureTest extends MockedTestCase
abstract class FixtureTestCase extends MockedTestCase
{
use FixtureTestTrait;

View file

@ -14,12 +14,12 @@ use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\Lock\Capability\ICanLock;
use Friendica\Database\Database;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Util\BasePath;
use Friendica\Core\Config\Util\ConfigFileManager;
use Psr\Log\LoggerInterface;
class DependencyCheckTest extends FixtureTest
class DependencyCheckTest extends FixtureTestCase
{
protected function setUp() : void
{

View file

@ -11,9 +11,9 @@ use Friendica\Content\Smilies;
use Friendica\Core\Hook;
use Friendica\DI;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class SmiliesTest extends FixtureTest
class SmiliesTest extends FixtureTestCase
{
protected function setUp(): void
{

View file

@ -10,10 +10,10 @@ namespace Friendica\Test\src\Content\Text;
use Friendica\Content\Text\BBCode;
use Friendica\DI;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Util\Strings;
class BBCodeTest extends FixtureTest
class BBCodeTest extends FixtureTestCase
{
/** @var \HTMLPurifier */
public $HTMLPurifier;

View file

@ -10,11 +10,11 @@ namespace Friendica\Test\src\Content\Text;
use Exception;
use Friendica\Content\Text\HTML;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use GuzzleHttp\Psr7\Uri;
use Psr\Http\Message\UriInterface;
class HTMLTest extends FixtureTest
class HTMLTest extends FixtureTestCase
{
public function dataHTML()
{

View file

@ -9,9 +9,9 @@ namespace Friendica\Test\src\Content\Text;
use Exception;
use Friendica\Content\Text\Markdown;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class MarkdownTest extends FixtureTest
class MarkdownTest extends FixtureTestCase
{
public function dataMarkdown()
{

View file

@ -10,9 +10,9 @@ namespace Friendica\Test\src\Content\Text;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Plaintext;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class PlaintextTest extends FixtureTest
class PlaintextTest extends FixtureTestCase
{
protected function setUp(): void
{

View file

@ -8,9 +8,9 @@
namespace Friendica\Test\src\Core;
use Friendica\Core\ACL;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class ACLTest extends FixtureTest
class ACLTest extends FixtureTestCase
{
/**
* Test the ACL::isValidContact() function.

View file

@ -15,13 +15,13 @@ use Friendica\Core\Config\Util\ConfigFileManager;
use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Database\Database;
use Friendica\Test\DatabaseTest;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\MockedTest;
use Friendica\Test\Util\Database\StaticDatabase;
use Friendica\Test\Util\VFSTrait;
use Mockery\Exception\InvalidCountException;
class ConfigTransactionTest extends FixtureTest
class ConfigTransactionTest extends FixtureTestCase
{
/** @var ConfigFileManager */
protected $configFileManager;

View file

@ -10,10 +10,10 @@ namespace Friendica\Test\src\Core\Worker\Repository;
use Friendica\Core\Worker\Factory;
use Friendica\Core\Worker\Repository;
use Friendica\DI;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Psr\Log\NullLogger;
class ProcessTest extends FixtureTest
class ProcessTest extends FixtureTestCase
{
public function testStandardProcess()
{

View file

@ -9,10 +9,10 @@ namespace Friendica\Test\src\Database;
use Friendica\Core\Config\Util\ConfigFileManager;
use Friendica\Core\Config\ValueObject\Cache;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\Util\CreateDatabaseTrait;
class DatabaseTest extends FixtureTest
class DatabaseTest extends FixtureTestCase
{
use CreateDatabaseTrait;

View file

@ -9,9 +9,9 @@ namespace Friendica\Test\src\Factory\Api\Mastodon;
use Friendica\Content\Smilies;
use Friendica\DI;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class EmojiTest extends FixtureTest
class EmojiTest extends FixtureTestCase
{
protected function setUp(): void
{

View file

@ -10,9 +10,9 @@ namespace Friendica\Test\src\Factory\Api\Mastodon;
use Friendica\Core\Hook;
use Friendica\DI;
use Friendica\Model\Post;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class StatusTest extends FixtureTest
class StatusTest extends FixtureTestCase
{
protected $status;

View file

@ -9,9 +9,9 @@ namespace Friendica\Test\src\Factory\Api\Twitter;
use Friendica\DI;
use Friendica\Factory\Api\Friendica\Activities;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class ActivitiesTest extends FixtureTest
class ActivitiesTest extends FixtureTestCase
{
/**
* Test the api_format_items_activities() function.

View file

@ -9,10 +9,10 @@ namespace Friendica\Test\src\Factory\Api\Twitter;
use Friendica\DI;
use Friendica\Factory\Api\Twitter\DirectMessage;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\src\Module\Api\ApiTest;
class DirectMessageTest extends FixtureTest
class DirectMessageTest extends FixtureTestCase
{
/**
* Test the api_format_messages() function.

View file

@ -16,10 +16,10 @@ use Friendica\Factory\Api\Twitter\Media;
use Friendica\Factory\Api\Twitter\Mention;
use Friendica\Factory\Api\Twitter\Status;
use Friendica\Factory\Api\Twitter\Url;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\src\Module\Api\ApiTest;
class StatusTest extends FixtureTest
class StatusTest extends FixtureTestCase
{
protected $statusFactory;

View file

@ -10,10 +10,10 @@ namespace Friendica\Test\src\Factory\Api\Twitter;
use Friendica\DI;
use Friendica\Factory\Api\Twitter\User;
use Friendica\Network\HTTPException\NotFoundException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\src\Module\Api\ApiTest;
class UserTest extends FixtureTest
class UserTest extends FixtureTestCase
{
/**
* Assert that an user array contains expected keys.

View file

@ -17,14 +17,14 @@ use Friendica\DI;
use Friendica\Module\Special\HTTPException;
use Friendica\Security\Authentication;
use Friendica\Security\BasicAuth;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\Test\Util\AppDouble;
use Friendica\Test\Util\AuthenticationDouble;
use Friendica\Test\Util\AuthTestConfig;
use Mockery\MockInterface;
use Psr\Http\Message\ResponseInterface;
abstract class ApiTest extends FixtureTest
abstract class ApiTest extends FixtureTestCase
{
// User data that the test database is populated with
const SELF_USER = [

View file

@ -12,9 +12,9 @@ use Friendica\Module\Api\Twitter\ContactEndpoint;
use Friendica\Network\HTTPException\InternalServerErrorException;
use Friendica\Network\HTTPException\NotFoundException;
use Friendica\Object\Api\Twitter\User;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class ContactEndpointTest extends FixtureTest
class ContactEndpointTest extends FixtureTestCase
{
public function testIds()
{

View file

@ -14,10 +14,10 @@ use Friendica\Module\NodeInfo110;
use Friendica\Module\NodeInfo120;
use Friendica\Module\NodeInfo210;
use Friendica\Module\Special\HTTPException;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Mockery\MockInterface;
class NodeInfoTest extends FixtureTest
class NodeInfoTest extends FixtureTestCase
{
/** @var MockInterface|HTTPException */
protected $httpExceptionMock;

View file

@ -12,10 +12,10 @@ use Friendica\Capabilities\ICanCreateResponses;
use Friendica\DI;
use Friendica\Module\Special\HTTPException;
use Friendica\Module\Special\Options;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Mockery\MockInterface;
class OptionsTest extends FixtureTest
class OptionsTest extends FixtureTestCase
{
/** @var MockInterface|HTTPException */
protected $httpExceptionMock;

View file

@ -8,9 +8,9 @@
namespace Friendica\Test\src\Navigation\Notifications\Entity;
use Friendica\Navigation\Notifications\Entity\Notify;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class NotifyTest extends FixtureTest
class NotifyTest extends FixtureTestCase
{
public function dataFormatNotify(): array
{

View file

@ -14,10 +14,10 @@ use Friendica\Profile\ProfileField\Factory\ProfileField as ProfileFieldFactory;
use Friendica\Security\PermissionSet\Repository\PermissionSet;
use Friendica\Security\PermissionSet\Factory\PermissionSet as PermissionSetFactory;
use Friendica\Security\PermissionSet\Repository\PermissionSet as PermissionSetRepository;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\DI;
class ProfileFieldTest extends FixtureTest
class ProfileFieldTest extends FixtureTestCase
{
/** @var ProfileFieldRepository */
private $depository;

View file

@ -11,9 +11,9 @@ use Friendica\Core\Hook;
use Friendica\DI;
use Friendica\Model\Post;
use Friendica\Protocol\ActivityPub\Transmitter;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
class TransmitterTest extends FixtureTest
class TransmitterTest extends FixtureTestCase
{
protected function setUp(): void
{

View file

@ -13,10 +13,10 @@ use Friendica\Security\PermissionSet\Exception\PermissionSetNotFoundException;
use Friendica\Security\PermissionSet\Repository\PermissionSet as PermissionSetRepository;
use Friendica\Security\PermissionSet\Entity\PermissionSet;
use Friendica\Security\PermissionSet\Factory\PermissionSet as PermissionSetFactory;
use Friendica\Test\FixtureTest;
use Friendica\Test\FixtureTestCase;
use Friendica\DI;
class PermissionSetTest extends FixtureTest
class PermissionSetTest extends FixtureTestCase
{
/** @var PermissionSetRepository */
private $repository;