Пример #1
0
 /**
  * @depends testAddValue
  */
 public function testRemoveValue()
 {
     $attribute = new Attribute();
     $attribute->setName('Color');
     $colorSilver = new Value($attribute);
     $colorSilver->setName('Silver');
     $colorGold = new Value($attribute);
     $colorGold->setName('Gold');
     $attribute->removeValue($colorSilver);
     $this->assertFalse($attribute->getValues()->contains($colorSilver));
     $this->assertTrue($attribute->getValues()->contains($colorGold));
 }