/** * @return int */ protected function getLastExecutedVersion() { if (count($this->db->query("SHOW TABLES LIKE 'migration_ver'")) < 1) { return 0; } return $this->db->field('migration_ver', 'version'); }
/** * @test */ public function field() { $row = ['title' => 'field_test']; $insert_id = $this->fixture->insert('item', $row); $this->assertEquals('field_test', $this->fixture->field('item', 'title', ['id' => $insert_id])); }