source: branches/feature-module-update/test/class/helper/SC_Helper_DB_Test.php @ 15532

Revision 15532, 1.1 KB checked in by nanasess, 15 years ago (diff)

svn:mime-type 修正

  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8// {{{ requires
9// {{{ requires
10require_once($include_dir . "/../data/class/helper_extends/SC_Helper_DB_Ex.php"); // FIXME
11require_once("PHPUnit/TestCase.php");
12
13
14/**
15 * SC_Helper_DB のテストケース.
16 *
17 * @package Helper
18 * @author LOCKON CO.,LTD.
19 * @version $Id$
20 */
21class SC_Helper_DB_Test extends PHPUnit_TestCase {
22
23    /**
24     * sfTableExists() のテストケース.
25     */
26    function testSfTableExists() {
27        $objDb = new SC_Helper_DB_Ex();
28        $this->assertEquals(true, $objDb->sfTabaleExists("mtb_zip"));
29    }
30
31    /**
32     * sfColumnExists() のテストケース.
33     */
34    function testSfColumnExists() {
35        $objDb = new SC_Helper_DB_Ex();
36        $this->assertEquals(true, $objDb->sfColumnExists("mtb_zip", "zipcode"));
37    }
38
39    function testSfIndexExists() {
40        $objDb = new SC_Helper_DB_Ex();
41        $this->assertEquals(true, $objDb->sfIndexExists("dtb_products", "category_id",
42                "dtb_products_category_id_key"));
43    }
44}
45?>
Note: See TracBrowser for help on using the repository browser.