Ignore:
Timestamp:
2010/07/20 13:25:33 (14 years ago)
Author:
kajiwara
Message:

EC-CUBE Ver2.4.4 分コミット。詳細はこちら( http://www.ec-cube.net/release/detail.php?release_id=223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/class/helper/SC_Helper_DB_Test.php

    r16582 r18758  
    33 * This file is part of EC-CUBE 
    44 * 
    5  * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
     5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 
    66 * 
    77 * http://www.lockon.co.jp/ 
     
    2323 
    2424// {{{ requires 
    25 // {{{ requires 
    26 require_once($include_dir . "/../data/class/helper_extends/SC_Helper_DB_Ex.php"); // FIXME 
    27 require_once("PHPUnit/TestCase.php"); 
    28  
     25require_once("../html/require.php"); 
     26require_once("../data/class_extends/helper_extends/SC_Helper_DB_Ex.php"); 
     27require_once("PHPUnit/Framework.php"); 
    2928 
    3029/** 
     
    3534 * @version $Id$ 
    3635 */ 
    37 class SC_Helper_DB_Test extends PHPUnit_TestCase { 
     36class SC_Helper_DB_Test extends PHPUnit_Framework_TestCase { 
    3837 
    3938    /** 
     
    5352    } 
    5453 
     54    /** 
     55     * sfIndexExists() のテストケース. 
     56     * 
     57     * XXX MySQL では動作しない 
     58     */ 
    5559    function testSfIndexExists() { 
    5660        $objDb = new SC_Helper_DB_Ex(); 
    57         $this->assertEquals(true, $objDb->sfIndexExists("dtb_products", "category_id", 
    58                 "dtb_products_category_id_key")); 
     61        if (DB_TYPE == "pgsql") { 
     62            $this->assertEquals(true, $objDb->sfIndexExists("dtb_products", 
     63                                                            "product_id", 
     64                                                            "dtb_products_product_id_key")); 
     65        } 
    5966    } 
    6067} 
Note: See TracChangeset for help on using the changeset viewer.