You are here

public function MemberMetadataTest::testLegacyAddValidSetsMemberToCascaded 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::testLegacyAddValidSetsMemberToCascaded()

@group legacy

File

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

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testLegacyAddValidSetsMemberToCascaded() {
  $result = $this->metadata
    ->addConstraint(new Valid());
  $this
    ->assertEquals(array(), $this->metadata
    ->getConstraints());
  $this
    ->assertEquals($result, $this->metadata);
  $this
    ->assertTrue($this->metadata
    ->isCascaded());
}