public function testTransactionCommit() { $this->db->beginTransaction(); $this->db->query("INSERT INTO test (id, code, price) VALUES (3000, '1', 1)"); $this->db->commit(); $id = $this->db->getOne("SELECT id FROM test WHERE id = 3000"); $this->assertEquals(3000, $id); }