_util->getSchema(); $tableName = 'zfbugs'; $table = $this->_getTable('Zend_Db_Table_TableSpecial', array('name' => $tableName, 'schema' => $schemaName) ); $row = array ( 'bug_description' => 'New bug', 'bug_status' => 'NEW', 'created_on' => '2007-04-02', 'updated_on' => '2007-04-02', 'reported_by' => 'micky', 'assigned_to' => 'goofy', 'verified_by' => 'dduck' ); $profilerEnabled = $this->_db->getProfiler()->getEnabled(); $this->_db->getProfiler()->setEnabled(true); $insertResult = $table->insert($row); $this->_db->getProfiler()->setEnabled($profilerEnabled); $qp = $this->_db->getProfiler()->getQueryProfiles(); $tableSpec = $this->_db->quoteIdentifier($schemaName.'.'.$tableName, true); $this->assertContains("INSERT INTO $tableSpec ", $qp[0]->getQuery()); } }