You are here

public function ConstraintTest::testAddDefaultGroupAddsGroup in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/ConstraintTest.php \Symfony\Component\Validator\Tests\ConstraintTest::testAddDefaultGroupAddsGroup()

File

vendor/symfony/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);
}