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')); }
/** * @expectedException \Dewdrop\Exception */ public function testCannotUnsetColumnWithArraySyntax() { $row = $this->table->createRow(); unset($row['name']); }