Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Tests / Mapping / MemberMetadataTest.php
index f0726c863f01a18e5334242bb18aab67c4349633..593f90faa66b60a4db2b8ba5c2d07088c3999575 100644 (file)
@@ -36,30 +36,6 @@ class MemberMetadataTest extends TestCase
         $this->metadata = null;
     }
 
-    /**
-     * @group legacy
-     */
-    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());
-    }
-
-    /**
-     * @group legacy
-     */
-    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());
-    }
-
     public function testAddConstraintRequiresClassConstraints()
     {
         $this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
@@ -86,18 +62,6 @@ class MemberMetadataTest extends TestCase
         $this->assertEquals($this->metadata, $metadata);
     }
 
-    /**
-     * @group legacy
-     */
-    public function testLegacySerializeCollectionCascadedDeeply()
-    {
-        $this->metadata->addConstraint(new Valid(array('traverse' => true)));
-
-        $metadata = unserialize(serialize($this->metadata));
-
-        $this->assertEquals($this->metadata, $metadata);
-    }
-
     public function testSerializeCollectionNotCascaded()
     {
         $this->metadata->addConstraint(new Valid(array('traverse' => false)));