Skip to content

Commit 4f01b84

Browse files
committed
-
1 parent 97d981f commit 4f01b84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,13 @@ public function testConfigureQueryBuilderWithNonQueryBuilderAndNonClosure()
217217

218218
public function testConfigureQueryBuilderWithClosureReturningNonQueryBuilder()
219219
{
220+
$this->expectException(UnexpectedTypeException::class);
220221
$field = $this->factory->createNamed('name', static::TESTED_TYPE, null, [
221222
'em' => 'default',
222223
'class' => self::SINGLE_IDENT_CLASS,
223224
'query_builder' => fn () => new \stdClass(),
224225
]);
225226

226-
$this->expectException(UnexpectedTypeException::class);
227-
228227
$field->submit('2');
229228
}
230229

0 commit comments

Comments
 (0)