protected function _getDataProducts()
 {
     $data = parent::_getDataProducts();
     foreach ($data as &$row) {
         $row['product_id'] = new Zend_Db_Expr('NEXTVAL FOR ' . $this->_db->quoteIdentifier('zfproducts_seq', true));
     }
     return $data;
 }
Beispiel #2
0
 protected function _getDataProducts()
 {
     $data = parent::_getDataProducts();
     foreach ($data as &$row) {
         $row['product_id'] = new Zend_Db_Expr('products_seq.NEXTVAL');
     }
     return $data;
 }
Beispiel #3
0
 public function getParams(array $constants = array())
 {
     $constants = array(
         'host'     => 'TESTS_ZEND_DB_ADAPTER_MYSQL_HOSTNAME',
         'username' => 'TESTS_ZEND_DB_ADAPTER_MYSQL_USERNAME',
         'password' => 'TESTS_ZEND_DB_ADAPTER_MYSQL_PASSWORD',
         'dbname'   => 'TESTS_ZEND_DB_ADAPTER_MYSQL_DATABASE',
         'port'     => 'TESTS_ZEND_DB_ADAPTER_MYSQL_PORT'
     );
     return parent::getParams($constants);
 }
Beispiel #4
0
 public function createView()
 {
     parent::dropView();
     parent::createView();
 }
Beispiel #5
0
 public function tearDown()
 {
     $this->_dropTestProcedure();
     parent::tearDown();
 }
Beispiel #6
0
 /**
  * Subclasses should call parent::tearDown() after
  * doing their own logic, e.g. deleting metadata.
  */
 public function tearDown()
 {
     $this->_util->tearDown();
     $this->_db->closeConnection();
     $this->_db = null;
 }