tests: Remove @expectException annotation.

This commit is contained in:
Pol Dellaiera
2021-12-21 16:22:31 +01:00
parent f93b1935ee
commit 6a0ce72836
3 changed files with 18 additions and 22 deletions

View File

@@ -49,13 +49,13 @@ final class PickPersonTypeTest extends KernelTestCase
/**
* test with an invalid center type in the option 'centers' (in an array).
*
* @expectedException \RuntimeException
*/
public function testWithInvalidOptionCenters()
{
$this->expectException(\RuntimeException::class);
$this->markTestSkipped('need to inject locale into url generator without request');
$form = $this->formFactory
$this->formFactory
->createBuilder(PickPersonType::class, null, [
'centers' => ['string'],
])