source: branches/version-2_12-dev/tests/class/SC_Product/SC_Product_setProductStatusTest.php @ 22796

Revision 22796, 1002 bytes checked in by h_yoshimoto, 11 years ago (diff)

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../..";
4require_once($HOME . "/tests/class/SC_Product/SC_Product_TestBase.php");
5/**
6 *
7 */
8class SC_Product_setProductStatusTest extends SC_Product_TestBase {
9
10    protected function setUp() {
11        parent::setUp();
12        $this->objProducts = new SC_Product_Ex();
13    }
14
15    protected function tearDown() {
16        parent::tearDown();
17    }
18
19    /////////////////////////////////////////
20
21    public function testSetProductStatus_登録した商品ステータスを返す() {
22        $this->setUpProductClass();
23        $this->setUpProducts();
24        $this->setUpClassCategory();
25        $this->setUpProductStatus();
26       
27        $this->objProducts->setProductStatus('1001', array('2','3','4'));
28
29        $this->expected = array('1001'=>array('2','3','4'));
30        $productIds = array('1001');
31        $this->actual = $this->objProducts->getProductStatus($productIds);
32
33        $this->verify('商品ステータスの更新');
34    }
35   
36}
Note: See TracBrowser for help on using the repository browser.