Esempio n. 1
0
 public function testCreateRowWithInitialDataSetsFieldsCorrectly()
 {
     $row = $this->table->createRow(array('name' => 'Blood Orange', 'is_delicious' => 1));
     $this->assertEquals('Blood Orange', $row->get('name'));
     $this->assertEquals(1, $row->get('is_delicious'));
 }
Esempio n. 2
0
 /**
  * @expectedException \Dewdrop\Exception
  */
 public function testCannotUnsetColumnWithArraySyntax()
 {
     $row = $this->table->createRow();
     unset($row['name']);
 }