source: branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_deleteAddressTest.php @ 23294

Revision 23294, 1.1 KB checked in by kimoto, 8 years ago (diff)

#2189 r23276の修正に対応

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        $_SESSION['customer']['customer_id'] = 1; // 会員じゃないとテストが落ちる
16    }
17
18    protected function tearUp()
19    {
20        parent::tearUp();
21    }
22
23    /////////////////////////////////////////
24
25    public function testdeleteAddressTest_会員の登録配送先を削除する()
26    {
27        $this->setUpAddress();
28        $other_deliv_id = '1000';
29        $this->expected = NULL;
30        $this->objAddress->deleteAddress($other_deliv_id);
31        $objQuery   =& SC_Query_Ex::getSingletonInstance();
32        $select = '*';
33        $from = 'dtb_other_deliv';
34        $where = 'other_deliv_id = ?';
35        $whereVal = array($other_deliv_id);
36        $this->actual = $objQuery->getRow($select, $from, $where, $whereVal);
37
38        $this->verify('登録配送先削除');
39    }
40}
Note: See TracBrowser for help on using the repository browser.