diff --git a/tests/Form/Type/RolesMatrixTypeTest.php b/tests/Form/Type/RolesMatrixTypeTest.php index 9454c5b1..33c99536 100755 --- a/tests/Form/Type/RolesMatrixTypeTest.php +++ b/tests/Form/Type/RolesMatrixTypeTest.php @@ -65,24 +65,6 @@ public function testSubmitValidData(): void static::assertContains('ROLE_FOO', $form->getData()); } - public function testSubmitInvalidData(): void - { - $form = $this->factory->create( - RolesMatrixType::class, - null, - [ - 'multiple' => true, - 'expanded' => true, - 'required' => false, - ] - ); - - $form->submit([0 => 'ROLE_NOT_EXISTS']); - - static::assertFalse($form->isSynchronized()); - static::assertNull($form->getData()); - } - /** * @return PreloadedExtension[] */ diff --git a/tests/Form/Type/SecurityRolesTypeTest.php b/tests/Form/Type/SecurityRolesTypeTest.php index f3d4c520..7ded780c 100755 --- a/tests/Form/Type/SecurityRolesTypeTest.php +++ b/tests/Form/Type/SecurityRolesTypeTest.php @@ -64,24 +64,6 @@ public function testSubmitValidData(): void static::assertContains('ROLE_FOO', $form->getData()); } - public function testSubmitInvalidData(): void - { - $form = $this->factory->create( - $this->getSecurityRolesTypeName(), - null, - [ - 'multiple' => true, - 'expanded' => true, - 'required' => false, - ] - ); - - $form->submit([0 => 'ROLE_NOT_EXISTS']); - - static::assertFalse($form->isSynchronized()); - static::assertNull($form->getData()); - } - public function testSubmitWithHiddenRoleData(): void { $originalRoles = ['ROLE_SUPER_ADMIN', 'ROLE_USER'];