Changeset 22834


Ignore:
Timestamp:
2013/05/21 13:51:14 (7 years ago)
Author:
m_uehara
Message:

#2236 r22818 の対応漏れを対応します

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/test/class/helper/SC_Helper_Address_Test.php

    r22796 r22834  
    5757    } 
    5858 
    59     function testSave() { 
     59    function testRegistAddress() { 
    6060        // ダミーの住所を登録 
    6161        $sqlval = $this->dummy; 
     
    6363        // 検証用の住所02 
    6464        $sqlval['addr02'] = $create_test = 'create test ' . time(); 
    65         $this->objAddress->save($sqlval); 
     65        $this->objAddress->registAddress($sqlval); 
    6666 
    6767        // 住所02が検証用のものと同じか確認 
     
    7373        // 更新の検証のために住所02を変更 
    7474        $sqlval['addr02'] = $update_test = 'update test ' . time(); 
    75         $this->objAddress->save($sqlval); 
     75        $this->objAddress->registAddress($sqlval); 
    7676 
    7777        // 住所02が検証用のものと同じか検証 
     
    8484     * @depends testSave 
    8585     */ 
    86     function testGet() { 
     86    function testGetAddress() { 
    8787        // testSave のテストが通っていること前提 
    8888        $sqlval = $this->dummy; 
    8989        $sqlval['customer_id'] = $this->customer_id; 
    9090        $sqlval['addr02'] = 'get test'; 
    91         $this->objAddress->save($sqlval); 
     91        $this->objAddress->registAddress($sqlval); 
    9292        $this->objQuery->setOrder('other_deliv_id DESC'); 
    9393        $other_deliv_id = $this->objQuery->getOne('SELECT other_deliv_id FROM dtb_other_deliv WHERE customer_id = ?', array($this->customer_id)); 
    9494        // DBに正しく記録され、取得できているか確認 
    95         $address = $this->objAddress->get($other_deliv_id); 
     95        $address = $this->objAddress->getAddress($other_deliv_id); 
    9696        $result = TRUE; 
    9797        foreach ($sqlval as $key => $value) { 
     
    111111        $sqlval['customer_id'] = $this->customer_id; 
    112112        $sqlval['addr02'] = 'getList test'; 
    113         $this->objAddress->save($sqlval); 
     113        $this->objAddress->registAddress($sqlval); 
    114114        $list = $this->objAddress->getList($this->customer_id); 
    115115        $found = FALSE; 
     
    132132     * @depends testSave 
    133133     */ 
    134     function testDelete() { 
     134    function testDeleteAddress() { 
    135135        // testSave のテストが通っていること前提 
    136136        $sqlval = $this->dummy; 
    137137        $sqlval['customer_id'] = $this->customer_id; 
    138138        $sqlval['addr02'] = 'delete test'; 
    139         $this->objAddress->save($sqlval); 
     139        $this->objAddress->registAddress($sqlval); 
    140140        $this->objQuery->setOrder('other_deliv_id DESC'); 
    141141        $other_deliv_id = $this->objQuery->getOne('SELECT other_deliv_id FROM dtb_other_deliv WHERE customer_id = ?', array($this->customer_id)); 
    142         $this->objAddress->delete($other_deliv_id); 
     142        $this->objAddress->deleteAddress($other_deliv_id); 
    143143        $result = $this->objQuery->getRow('*', 'dtb_other_deliv', 'customer_id = ? and other_deliv_id = ?', array($this->customer_id, $other_deliv_id)); 
    144144        $this->assertNull($result); 
Note: See TracChangeset for help on using the changeset viewer.