source: branches/camp/camp-2_13-tests/tests/class/helper/SC_Helper_Kiyaku/SC_Helper_Kiyaku_deleteKiyakuTest.php @ 22650

Revision 22650, 1.0 KB checked in by tokuhiro, 11 years ago (diff)

#2182 クラス名変更によるテストケース名の変更

Line 
1<?php
2
3$HOME = realpath(dirname(__FILE__)) . "/../../../..";
4require_once($HOME . "/tests/class/helper/SC_Helper_Kiyaku/SC_Helper_Kiyaku_TestBase.php");
5/**
6 *
7 */
8class SC_Helper_Kiyaku_deleteKiyakuTest extends SC_Helper_Kiyaku_TestBase
9{
10
11    protected function setUp()
12    {
13        parent::setUp();
14        $this->objKiyaku = new SC_Helper_Kiyaku_Ex();
15    }
16
17    protected function tearUp()
18    {
19        parent::tearUp();
20    }
21
22    /////////////////////////////////////////
23
24    public function testdeleteKiyakuTest_削除ができた場合_del_flgの1を返す()
25    {
26        $objQuery =& SC_Query_Ex::getSingletonInstance();
27        $this->setUpKiyaku();
28        $kiyaku_id = 2;
29
30        //期待値
31        $this->expected = "1";
32
33        $this->objKiyaku->deleteKiyaku($kiyaku_id);
34
35        $col = 'del_flg';
36        $from = 'dtb_kiyaku';
37        $where = 'kiyaku_id = ?';
38        $whereVal = array($kiyaku_id);
39        $res = $objQuery->getCol($col, $from, $where, $whereVal);
40        $this->actual = $res[0];
41        $this->verify('ランク削除');
42    }
43}
Note: See TracBrowser for help on using the repository browser.