Просмотр исходного кода

ZF-1343: fixed test errors when running Zend_Db_AllTests

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17001 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 лет назад
Родитель
Сommit
a784fc7e40
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tests/Zend/Db/Table/TestCommon.php

+ 2 - 1
tests/Zend/Db/Table/TestCommon.php

@@ -1494,8 +1494,9 @@ abstract class Zend_Db_Table_TestCommon extends Zend_Db_Table_TestSetup
      */
     public function testTableFetchallCanHandleWhereWithParameritizationCharacters()
     {
+        $product_name = $this->_db->quoteIdentifier('product_name');
         $table = $this->_table['products'];
-        $where = $table->getAdapter()->quoteInto('product_name = ?', "some?product's");
+        $where = $table->getAdapter()->quoteInto("$product_name = ?", "some?product's");
         $rows = $table->fetchAll($where);
         $this->assertEquals(0, count($rows));
     }