Skip to content

Commit 6aaceb2

Browse files
authored
Merge pull request #96 from jrushlow/bump/dev-depends
[dev] stops using doctrine common ns in test suite
2 parents 61e1e4b + 7611db3 commit 6aaceb2

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
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.3"
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

tests/UnitTests/Controller/ResetPasswordControllerTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ResetPasswordControllerTraitTest extends TestCase
2727
private const TOKEN_KEY = 'ResetPasswordPublicToken';
2828

2929
/**
30-
* @var \PHPUnit\Framework\MockObject\MockObject|SessionInterface
30+
* @var MockObject|SessionInterface
3131
*/
3232
private $mockSession;
3333

0 commit comments

Comments
 (0)