public function MemberMetadataTest::testLegacyAddValidSetsMemberToCascaded in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Validator\Tests\MappingCode
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());
}