source: branches/feature-module-update/test/class/db/SC_DB_MasterData_Test.php @ 15134

Revision 15134, 722 bytes checked in by nanasess, 17 years ago (diff)

getMasterData() 関数追加

  • Property charset set to UTF-8
  • Property svn:keywords set to Id Revision Date
  • Property svn:mime-type set to application/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
9require_once(CLASS_PATH . "db_extends/SC_DB_MasterData_Ex.php");
10require_once("PHPUnit/TestCase.php");
11
12/**
13 * SC_DB_MasterData のテストケース.
14 *
15 * @package DB
16 * @author LOCKON CO.,LTD.
17 * @version $Id$
18 */
19class SC_DB_MasterData_Test extends PHPUnit_TestCase {
20
21    // }}}
22    // {{{ functions
23
24    function testGetMasterData() {
25
26        $masterData = new SC_DB_MasterData_Ex();
27        $actual = $masterData->getMasterData("mtb_pref");
28
29        $objQuery = new SC_Query();
30        $expected = $objQuery->select("*", $name);
31
32        $this->assertEquals($expected, $actual);
33    }
34}
35?>
Note: See TracBrowser for help on using the repository browser.