Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Mar 10, 2021
1 parent 7804a0b commit 6eba282
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions tests/Form/Type/RolesMatrixTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
*/
Expand Down
18 changes: 0 additions & 18 deletions tests/Form/Type/SecurityRolesTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 6eba282

Please sign in to comment.