source: branches/version-2_13_2/tests/class/helper/SC_Helper_Address/SC_Helper_Address_deleteAddressTest.php @ 23408

Revision 23408, 1.4 KB checked in by m_uehara, 10 years ago (diff)

#2541 SC_Helper_Addressの処理の改善

Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../../..";
4require_once($HOME . "/tests/class/helper/SC_Helper_Address/SC_Helper_Address_TestBase.php");
5/**
6 *
7 */
8class SC_Helper_Address_deleteAddressTest extends SC_Helper_Address_TestBase
9{
10
11    protected function setUp()
12    {
13        parent::setUp();
14        $this->objAddress = new SC_Helper_Address_Ex();
15    }
16
17    protected function tearUp()
18    {
19        parent::tearUp();
20    }
21
22    /////////////////////////////////////////
23
24    public function testdeleteAddressTest_会員の登録配送先を削除する()
25    {
26        $this->setUpAddress();
27        $other_deliv_id = '1000';
28        $customer_id = 1;
29        $this->expected = NULL;
30        $this->objAddress->deleteAddress($other_deliv_id, $customer_id);
31        $objQuery   =& SC_Query_Ex::getSingletonInstance();
32        $select = '*';
33        $from = 'dtb_other_deliv';
34        $where = 'other_deliv_id = ? AND customer_id = ?';
35        $whereVal = array($other_deliv_id, $customer_id);
36        $this->actual = $objQuery->getRow($select, $from, $where, $whereVal);
37
38        $this->verify('登録配送先削除');
39    }
40
41    public function testdeleteAddressTest_会員IDを設定しない場合_FALSEを返す()
42    {
43        $this->setUpAddress();
44        $other_deliv_id = '1000';
45        $this->expected = FALSE;
46        $this->actual = $this->objAddress->deleteAddress($other_deliv_id);
47
48        $this->verify('登録配送先削除');
49    }
50}
Note: See TracBrowser for help on using the repository browser.