Index: branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_getAddressTest.php
===================================================================
--- branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_getAddressTest.php	(revision 23294)
+++ branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_getAddressTest.php	(revision 23542)
@@ -13,5 +13,4 @@
         parent::setUp();
         $this->objAddress = new SC_Helper_Address_Ex();
-        $_SESSION['customer']['customer_id'] = 1; // 会員じゃないとテストが落ちる
     }
 
@@ -28,4 +27,15 @@
         $this->setUpAddress();
         $other_deliv_id = '999';
+        $customer_id = 1;
+        $this->expected = FALSE;
+        $this->actual = $this->objAddress->getAddress($other_deliv_id, $customer_id);
+
+        $this->verify('登録配送先取得');
+    }
+    
+    public function testgetAddressTest_会員IDを設定しない場合_FALSEを返す()
+    {
+        $this->setUpAddress();
+        $other_deliv_id = '1001';
         $this->expected = FALSE;
         $this->actual = $this->objAddress->getAddress($other_deliv_id);
@@ -38,4 +48,5 @@
         $this->setUpAddress();
         $other_deliv_id = '1001';
+        $customer_id = 1;
         $this->expected = array(
                 'other_deliv_id' => '1001',
@@ -60,5 +71,5 @@
                 'zipcode' => null
             );
-        $this->actual = $this->objAddress->getAddress($other_deliv_id);
+        $this->actual = $this->objAddress->getAddress($other_deliv_id, $customer_id);
 
         $this->verify('登録配送先取得');
Index: branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_deleteAddressTest.php
===================================================================
--- branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_deleteAddressTest.php	(revision 23294)
+++ branches/version-2_13-dev/tests/class/helper/SC_Helper_Address/SC_Helper_Address_deleteAddressTest.php	(revision 23542)
@@ -13,5 +13,4 @@
         parent::setUp();
         $this->objAddress = new SC_Helper_Address_Ex();
-        $_SESSION['customer']['customer_id'] = 1; // 会員じゃないとテストが落ちる
     }
 
@@ -27,14 +26,25 @@
         $this->setUpAddress();
         $other_deliv_id = '1000';
+        $customer_id = 1;
         $this->expected = NULL;
-        $this->objAddress->deleteAddress($other_deliv_id);
+        $this->objAddress->deleteAddress($other_deliv_id, $customer_id);
         $objQuery   =& SC_Query_Ex::getSingletonInstance();
         $select = '*';
         $from = 'dtb_other_deliv';
-        $where = 'other_deliv_id = ?';
-        $whereVal = array($other_deliv_id);
+        $where = 'other_deliv_id = ? AND customer_id = ?';
+        $whereVal = array($other_deliv_id, $customer_id);
         $this->actual = $objQuery->getRow($select, $from, $where, $whereVal);
 
         $this->verify('登録配送先削除');
     }
+
+    public function testdeleteAddressTest_会員IDを設定しない場合_FALSEを返す()
+    {
+        $this->setUpAddress();
+        $other_deliv_id = '1000';
+        $this->expected = FALSE;
+        $this->actual = $this->objAddress->deleteAddress($other_deliv_id);
+
+        $this->verify('登録配送先削除');
+    }
 }
