Upgrade tests to PhpUnit 10 (#5252)
This commit is contained in:
@@ -15,9 +15,9 @@ use Doctrine\ORM\Query\Expr;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
abstract class AbstractLoaderTest extends TestCase
|
||||
abstract class AbstractLoaderTestCase extends TestCase
|
||||
{
|
||||
protected function getEntityManagerMock(int $createQueryBuilderCount, $resultMock = null)
|
||||
protected function getEntityManagerMock(int $createQueryBuilderCount, mixed $resultMock = null): EntityManager
|
||||
{
|
||||
$em = $this->createMock(EntityManager::class);
|
||||
$qb = $this->createMock(QueryBuilder::class);
|
||||
@@ -16,7 +16,7 @@ use App\Repository\Loader\ActivityLoader;
|
||||
/**
|
||||
* @covers \App\Repository\Loader\ActivityLoader
|
||||
*/
|
||||
class ActivityLoaderTest extends AbstractLoaderTest
|
||||
class ActivityLoaderTest extends AbstractLoaderTestCase
|
||||
{
|
||||
public function testLoadResults(): void
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\Repository\Query\CustomerQuery;
|
||||
/**
|
||||
* @covers \App\Repository\Loader\CustomerLoader
|
||||
*/
|
||||
class CustomerLoaderTest extends AbstractLoaderTest
|
||||
class CustomerLoaderTest extends AbstractLoaderTestCase
|
||||
{
|
||||
public function testLoadResults(): void
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ use App\Repository\Loader\ProjectLoader;
|
||||
/**
|
||||
* @covers \App\Repository\Loader\ProjectLoader
|
||||
*/
|
||||
class ProjectLoaderTest extends AbstractLoaderTest
|
||||
class ProjectLoaderTest extends AbstractLoaderTestCase
|
||||
{
|
||||
public function testLoadResults(): void
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ use App\Repository\Loader\TeamLoader;
|
||||
/**
|
||||
* @covers \App\Repository\Loader\TeamLoader
|
||||
*/
|
||||
class TeamLoaderTest extends AbstractLoaderTest
|
||||
class TeamLoaderTest extends AbstractLoaderTestCase
|
||||
{
|
||||
public function testLoadResults(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user