Skip to content

Commit 0d6b9bf

Browse files
authored
Fix tests (#3506)
* Fix tests * Fix tests with Symfony 5.1
1 parent 4745786 commit 0d6b9bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"doctrine/mongodb-odm-bundle": "^4.0",
4343
"doctrine/orm": "^2.6.4",
4444
"elasticsearch/elasticsearch": "^6.0",
45-
"friendsofsymfony/user-bundle": "^2.2@dev",
45+
"friendsofsymfony/user-bundle": "2.2.x-dev#157b53bd7d6c347148a90e723981a43f9c897bf5",
4646
"guzzlehttp/guzzle": "^6.0",
4747
"jangregor/phpstan-prophecy": "^0.6",
4848
"justinrainbow/json-schema": "^5.2.1",

tests/Bridge/Symfony/Bundle/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function invalidHttpStatusCodeValueProvider()
289289
public function testExceptionToStatusConfigWithInvalidHttpStatusCodeValue($invalidHttpStatusCodeValue)
290290
{
291291
$this->expectException(InvalidTypeException::class);
292-
$this->expectExceptionMessageRegExp('/Invalid type for path "api_platform\\.exception_to_status\\.Exception". Expected int, but got .+\\./');
292+
$this->expectExceptionMessageRegExp('/Invalid type for path "api_platform\\.exception_to_status\\.Exception". Expected "?int"?, but got .+\\./');
293293

294294
$this->processor->processConfiguration($this->configuration, [
295295
'api_platform' => [

0 commit comments

Comments
 (0)