- Timestamp:
- 2007/09/18 16:15:24 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/test/class/db/SC_DB_MasterData_Test.php
r15532 r15716 15 15 * @package DB 16 16 * @author LOCKON CO.,LTD. 17 * @version $Id $17 * @version $Id:SC_DB_MasterData_Test.php 15532 2007-08-31 14:39:46Z nanasess $ 18 18 */ 19 19 class SC_DB_MasterData_Test extends PHPUnit_TestCase { … … 26 26 */ 27 27 function testGetMasterData() { 28 29 28 $columns = array("pref_id", "pref_name", "rank"); 30 29 $masterData = new SC_DB_MasterData_Ex(); … … 58 57 $masterData->updateMasterData("mtb_pref", $columns, $expected, false); 59 58 60 $actual = $masterData->get MasterData("mtb_pref", $columns);59 $actual = $masterData->getDBMasterData("mtb_pref", $columns); 61 60 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"]); 63 64 64 65 $masterData->objQuery->rollback(); … … 71 72 function testCreateCache() { 72 73 $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")); 74 79 $this->assertEquals(true, defined("ECCUBE_VERSION")); 75 80 }
Note: See TracChangeset
for help on using the changeset viewer.
