Exemple #1
0
 /**
  * @covers ByJG\AnyDataset\Repository\SingleRow::removeFieldNameValue
  * @todo   Implement testRemoveFieldNameValue().
  */
 public function testRemoveFieldNameValue()
 {
     $this->fill();
     $this->object->removeFieldNameValue('field1', 20);
     $this->assertEquals(array(10, 30), $this->object->getFieldArray('field1'));
     $this->object->removeFieldNameValue('field2', 100);
     $this->assertEquals(40, $this->object->getField('field2'));
     // Element was not removed
     $this->object->removeFieldNameValue('field2', 40);
     $this->assertEquals(null, $this->object->getField('field2'));
 }