You are here

public function MemberMetadataTest::testLegacyAddOtherConstraintDoesNotSetMemberToCascaded in Zircon Profile 8.0

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

@group legacy

File

vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php, line 53

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testLegacyAddOtherConstraintDoesNotSetMemberToCascaded() {
  $result = $this->metadata
    ->addConstraint($constraint = new ConstraintA());
  $this
    ->assertEquals(array(
    $constraint,
  ), $this->metadata
    ->getConstraints());
  $this
    ->assertEquals($result, $this->metadata);
  $this
    ->assertFalse($this->metadata
    ->isCascaded());
}