1 | <?php |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
6 | * |
---|
7 | * http://www.lockon.co.jp/ |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 |
---|
12 | * of the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | |
---|
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 | |
---|
29 | |
---|
30 | /** |
---|
31 | * SC_Helper_DB のテストケース. |
---|
32 | * |
---|
33 | * @package Helper |
---|
34 | * @author LOCKON CO.,LTD. |
---|
35 | * @version $Id$ |
---|
36 | */ |
---|
37 | class SC_Helper_DB_Test extends PHPUnit_TestCase { |
---|
38 | |
---|
39 | /** |
---|
40 | * sfTableExists() のテストケース. |
---|
41 | */ |
---|
42 | function testSfTableExists() { |
---|
43 | $objDb = new SC_Helper_DB_Ex(); |
---|
44 | $this->assertEquals(true, $objDb->sfTabaleExists("mtb_zip")); |
---|
45 | } |
---|
46 | |
---|
47 | /** |
---|
48 | * sfColumnExists() のテストケース. |
---|
49 | */ |
---|
50 | function testSfColumnExists() { |
---|
51 | $objDb = new SC_Helper_DB_Ex(); |
---|
52 | $this->assertEquals(true, $objDb->sfColumnExists("mtb_zip", "zipcode")); |
---|
53 | } |
---|
54 | |
---|
55 | function testSfIndexExists() { |
---|
56 | $objDb = new SC_Helper_DB_Ex(); |
---|
57 | $this->assertEquals(true, $objDb->sfIndexExists("dtb_products", "category_id", |
---|
58 | "dtb_products_category_id_key")); |
---|
59 | } |
---|
60 | } |
---|
61 | ?> |
---|