Skip to content

Commit a458f66

Browse files
authored
Merge pull request #2200 from greg0ire/addr-phpunit-depr
Address deprecations
2 parents 30e0f73 + 4f222e0 commit a458f66

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"psr/log": "^1.1.4 || ^2.0 || ^3.0",
5656
"symfony/doctrine-messenger": "^6.4 || ^7.0",
5757
"symfony/expression-language": "^6.4 || ^7.0",
58+
"symfony/http-kernel": "^6.4 || ^7.0",
5859
"symfony/messenger": "^6.4 || ^7.0",
5960
"symfony/property-info": "^6.4 || ^7.0",
6061
"symfony/security-bundle": "^6.4 || ^7.0",

tests/Command/CreateDatabaseDoctrineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function getMockContainer(string $connectionName, array|null $params = n
7777

7878
$mockContainer = $this->createStub(Container::class);
7979

80-
$mockContainer->method('get')->with('doctrine')->willReturn($mockDoctrine);
80+
$mockContainer->method('get')->willReturnMap([['doctrine', $mockDoctrine]]);
8181

8282
return $mockContainer;
8383
}

tests/Command/DropDatabaseDoctrineTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ private function getMockContainer(string $connectionName, array $params): Stub
156156
$mockContainer = $this->createStub(Container::class);
157157

158158
$mockContainer->method('get')
159-
->with('doctrine')
160-
->willReturn($mockDoctrine);
159+
->willReturnMap([['doctrine', $mockDoctrine]]);
161160

162161
return $mockContainer;
163162
}

0 commit comments

Comments
 (0)