Ignore:
Timestamp:
2007/09/18 16:15:24 (15 years ago)
Author:
nanasess
Message:

リファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/test/class/db/SC_DB_MasterData_Test.php

    r15532 r15716  
    1515 * @package DB 
    1616 * @author LOCKON CO.,LTD. 
    17  * @version $Id$ 
     17 * @version $Id:SC_DB_MasterData_Test.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1818 */ 
    1919class SC_DB_MasterData_Test extends PHPUnit_TestCase { 
     
    2626     */ 
    2727    function testGetMasterData() { 
    28  
    2928        $columns = array("pref_id", "pref_name", "rank"); 
    3029        $masterData = new SC_DB_MasterData_Ex(); 
     
    5857        $masterData->updateMasterData("mtb_pref", $columns, $expected, false); 
    5958 
    60         $actual = $masterData->getMasterData("mtb_pref", $columns); 
     59        $actual = $masterData->getDBMasterData("mtb_pref", $columns); 
    6160 
    62         $this->assertEquals($expected, $actual); 
     61        $this->assertEquals($expected["10"], $actual["10"]); 
     62        $this->assertEquals($expected["20"], $actual["20"]); 
     63        $this->assertEquals($expected["30"], $actual["30"]); 
    6364 
    6465        $masterData->objQuery->rollback(); 
     
    7172    function testCreateCache() { 
    7273        $masterData = new SC_DB_MasterData_Ex(); 
    73         $masterData->createCache("mtb_constants", $masterData->getMasterData("mtb_constants"), true); 
     74        $datas = $masterData->getDBMasterData("mtb_constants"); 
     75        $commentColumn = array("id", "remarks", "rank"); 
     76        $masterData->clearCache("mtb_constants"); 
     77        $masterData->createCache("mtb_constants", $datas, true, 
     78                                         array("id", "remarks", "rank")); 
    7479        $this->assertEquals(true, defined("ECCUBE_VERSION")); 
    7580    } 
Note: See TracChangeset for help on using the changeset viewer.