minor #39968 [FrameworkBundle] add doctrine/persistence as a dev requirement (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] add doctrine/persistence as a dev requirement

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix https://github.com/symfony/symfony/pull/39941#discussion_r563736775
| License       | MIT
| Doc PR        |

Otherwise, we are testing something that will never be possible in a real application.

Commits
-------

6ea9e4d7ca add doctrine/persistence as a dev requirement
This commit is contained in:
Robin Chalas 2021-01-25 18:08:47 +01:00
commit 11290f9c8d
2 changed files with 2 additions and 1 deletions

View File

@ -518,7 +518,7 @@ abstract class ControllerTraitTest extends TestCase
public function testGetDoctrine()
{
$doctrine = $this->getMockBuilder(ManagerRegistry::class)->getMock();
$doctrine = $this->createMock(ManagerRegistry::class);
$container = new Container();
$container->set('doctrine', $doctrine);

View File

@ -32,6 +32,7 @@
"require-dev": {
"doctrine/annotations": "^1.10.4",
"doctrine/cache": "~1.0",
"doctrine/persistence": "^1.3",
"paragonie/sodium_compat": "^1.8",
"symfony/asset": "^3.4|^4.0|^5.0",
"symfony/browser-kit": "^4.3|^5.0",