Exemple #1
0
 /**
  * @covers ByJG\AnyDataset\Repository\SingleRow::acceptChanges
  * @todo   Implement testAcceptChanges().
  */
 public function testAcceptChanges()
 {
     $this->fill();
     $this->object->setField('field2', 150);
     $this->assertEquals(array('field1' => array(10, 20, 30), 'field2' => 40), $this->object->getOriginalRawFormat());
     $this->object->acceptChanges();
     $this->assertEquals(array('field1' => array(10, 20, 30), 'field2' => 150), $this->object->getOriginalRawFormat());
 }