You are here

public function ConstraintTest::testAddDefaultGroupAddsGroup in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/ConstraintTest.php, line 127

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testAddDefaultGroupAddsGroup() {
  $constraint = new ConstraintA(array(
    'groups' => 'Default',
  ));
  $constraint
    ->addImplicitGroupName('Foo');
  $this
    ->assertEquals(array(
    'Default',
    'Foo',
  ), $constraint->groups);
}