Skip to content

Commit dcae7e8

Browse files
committed
stops using doctrine common in tests
1 parent 262db21 commit dcae7e8

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"symfony/framework-bundle": "^4.4 | ^5.0",
1717
"symfony/phpunit-bridge": "^5.0",
1818
"vimeo/psalm": "^3.8",
19-
"doctrine/doctrine-bundle": "^2.0"
19+
"doctrine/doctrine-bundle": "^2.0.7"
2020
},
2121
"conflict": {
2222
"doctrine/orm": "<2.7",

tests/Fixtures/AbstractResetPasswordTestKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
9090
'App' => [
9191
'is_bundle' => false,
9292
'type' => 'annotation',
93-
'dir' => '%kernel.project_dir%/tests/Fixtures/Entity/',
93+
'dir' => 'tests/Fixtures/Entity/',
9494
'prefix' => 'SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\Entity',
9595
'alias' => 'App',
9696
],

tests/Fixtures/ResetPasswordTestFixtureRequestRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures;
1111

1212
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
13-
use Doctrine\Common\Persistence\ManagerRegistry;
13+
use Doctrine\Persistence\ManagerRegistry;
1414
use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface;
1515
use SymfonyCasts\Bundle\ResetPassword\Persistence\Repository\ResetPasswordRequestRepositoryTrait;
1616
use SymfonyCasts\Bundle\ResetPassword\Persistence\ResetPasswordRequestRepositoryInterface;

tests/FunctionalTests/Command/ResetPasswordRemoveExpiredCommandTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Doctrine\Bundle\DoctrineBundle\Registry;
1313
use Doctrine\ORM\Tools\SchemaTool;
14+
use Doctrine\Persistence\ObjectManager;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Application;
1617
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
@@ -27,7 +28,7 @@
2728
final class ResetPasswordRemoveExpiredCommandTest extends TestCase
2829
{
2930
/**
30-
* @var \Doctrine\Common\Persistence\ObjectManager|object
31+
* @var ObjectManager|object
3132
*/
3233
private $manager;
3334

tests/FunctionalTests/Persistence/ResetPasswordRequestRepositoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Doctrine\Bundle\DoctrineBundle\Registry;
1313
use Doctrine\ORM\Tools\SchemaTool;
14+
use Doctrine\Persistence\ObjectManager;
1415
use PHPUnit\Framework\TestCase;
1516
use SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\AbstractResetPasswordTestKernel;
1617
use SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\Entity\ResetPasswordTestFixtureRequest;
@@ -26,7 +27,7 @@
2627
final class ResetPasswordRequestRepositoryTest extends TestCase
2728
{
2829
/**
29-
* @var \Doctrine\Common\Persistence\ObjectManager|object
30+
* @var ObjectManager|object
3031
*/
3132
private $manager;
3233

0 commit comments

Comments
 (0)