Skip to content

Commit

Permalink
renamed abstract test case class not to cause errors
Browse files Browse the repository at this point in the history
  • Loading branch information
driehle committed Dec 29, 2024
1 parent 57ce2bd commit 7249a22
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/AbstractTest.php → tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use MongoDB\Driver\WriteConcern;
use PHPUnit\Framework\TestCase;

abstract class AbstractTest extends TestCase
abstract class AbstractTestCase extends TestCase
{
protected mixed $application;

Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/AuthenticationAdapterFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace DoctrineMongoODMModuleTest\Doctrine;

use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;

class AuthenticationAdapterFactoryTest extends AbstractTest
class AuthenticationAdapterFactoryTest extends AbstractTestCase
{
public function testAuthenticationAdapterFactory(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/AuthenticationServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace DoctrineMongoODMModuleTest\Doctrine;

use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;

class AuthenticationServiceFactoryTest extends AbstractTest
class AuthenticationServiceFactoryTest extends AbstractTestCase
{
public function testAuthenticationServiceFactory(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/AuthenticationStorageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace DoctrineMongoODMModuleTest\Doctrine;

use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;

class AuthenticationStorageFactoryTest extends AbstractTest
class AuthenticationStorageFactoryTest extends AbstractTestCase
{
public function testAuthenticationStorageFactory(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/ConfigurationFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Doctrine\ODM\MongoDB\Types\Type;
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
use DoctrineMongoODMModule\Service\ConfigurationFactory;
use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;
use DoctrineMongoODMModuleTest\Assets\CustomClassMetadataFactory;
use DoctrineMongoODMModuleTest\Assets\CustomDocumentRepository;
use DoctrineMongoODMModuleTest\Assets\CustomRepositoryFactory;
Expand All @@ -22,7 +22,7 @@

use function assert;

final class ConfigurationFactoryTest extends AbstractTest
final class ConfigurationFactoryTest extends AbstractTestCase
{
public function testCreation(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/ConnectionFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

use Doctrine\ODM\MongoDB\Configuration;
use DoctrineMongoODMModule\Service\ConnectionFactory;
use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;
use MongoDB\Client;

/** @covers \DoctrineMongoODMModule\Service\ConnectionFactory */
class ConnectionFactoryTest extends AbstractTest
class ConnectionFactoryTest extends AbstractTestCase
{
/** @var mixed[] $configuration */
private array $configuration;
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/CustomDefaultRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace DoctrineMongoODMModuleTest\Doctrine;

use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;
use DoctrineMongoODMModuleTest\Assets\CustomDocumentRepository;
use DoctrineMongoODMModuleTest\Assets\Document\Simple;

use function assert;

final class CustomDefaultRepositoryTest extends AbstractTest
final class CustomDefaultRepositoryTest extends AbstractTestCase
{
public function testCustomDefaultRepository(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/DocumentManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace DoctrineMongoODMModuleTest\Doctrine;

use Doctrine\ODM\MongoDB\DocumentManager;
use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;

final class DocumentManagerTest extends AbstractTest
final class DocumentManagerTest extends AbstractTestCase
{
/** @var mixed[] $configuration */
private array $configuration = [];
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/MongoLoggerCollectorFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

use DoctrineMongoODMModule\Collector\MongoLoggerCollector;
use DoctrineMongoODMModule\Service\MongoLoggerCollectorFactory;
use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;

class MongoLoggerCollectorFactoryTest extends AbstractTest
class MongoLoggerCollectorFactoryTest extends AbstractTestCase
{
public function testCreateService(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/PersistTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace DoctrineMongoODMModuleTest\Doctrine;

use DoctrineMongoODMModuleTest\AbstractTest;
use DoctrineMongoODMModuleTest\AbstractTestCase;
use DoctrineMongoODMModuleTest\Assets\Document\Simple;

class PersistTest extends AbstractTest
class PersistTest extends AbstractTestCase
{
public function testPersist(): void
{
Expand Down

0 comments on commit 7249a22

Please sign in to comment.