Changeset 18758 for trunk/test/class/helper/SC_Helper_DB_Test.php
- Timestamp:
- 2010/07/20 13:25:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/class/helper/SC_Helper_DB_Test.php
r16582 r18758 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-20 07LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 23 23 24 24 // {{{ 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 25 require_once("../html/require.php"); 26 require_once("../data/class_extends/helper_extends/SC_Helper_DB_Ex.php"); 27 require_once("PHPUnit/Framework.php"); 29 28 30 29 /** … … 35 34 * @version $Id$ 36 35 */ 37 class SC_Helper_DB_Test extends PHPUnit_ TestCase {36 class SC_Helper_DB_Test extends PHPUnit_Framework_TestCase { 38 37 39 38 /** … … 53 52 } 54 53 54 /** 55 * sfIndexExists() のテストケース. 56 * 57 * XXX MySQL では動作しない 58 */ 55 59 function testSfIndexExists() { 56 60 $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 } 59 66 } 60 67 }
Note: See TracChangeset
for help on using the changeset viewer.