Changeset 22677


Ignore:
Timestamp:
2013/03/10 03:43:32 (7 years ago)
Author:
takeda
Message:

#2184 SC_Helper_Newsのテストケース作成

Location:
branches/camp/camp-2_13-tests
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_13-tests/data/class/helper/SC_Helper_News.php

    r22581 r22677  
    3838     * @return array 
    3939     */ 
    40     public function get($news_id, $has_deleted = false) 
     40    public function getNews($news_id, $has_deleted = false) 
    4141    { 
    4242        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    8585     * @return multiple 登録成功:ニュースID, 失敗:FALSE 
    8686     */ 
    87     public function save($sqlval) 
     87    public function saveNews($sqlval) 
    8888    { 
    8989        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     
    114114     * @return void 
    115115     */ 
    116     public function delete($news_id) 
     116    public function deleteNews($news_id) 
    117117    { 
    118118        $objDb = new SC_Helper_DB_Ex(); 
  • branches/camp/camp-2_13-tests/data/class/pages/admin/contents/LC_Page_Admin_Contents.php

    r22581 r22677  
    116116 
    117117            case 'pre_edit': 
    118                 $news = $objNews->get($news_id); 
     118                $news = $objNews->getNews($news_id); 
    119119                list($news['year'],$news['month'],$news['day']) = $this->splitNewsDate($news['cast_news_date']); 
    120120                $objFormParam->setParam($news); 
     
    126126            case 'delete': 
    127127            //---- データ削除 
    128                 $objNews->delete($news_id); 
     128                $objNews->deleteNews($news_id); 
    129129                //自分にリダイレクト(再読込による誤動作防止) 
    130130                SC_Response_Ex::reload(); 
     
    219219        $sqlval['news_date'] = $this->getRegistDate($sqlval); 
    220220        unset($sqlval['year'], $sqlval['month'], $sqlval['day']); 
    221         return $objNews->save($sqlval); 
     221        return $objNews->saveNews($sqlval); 
    222222    } 
    223223 
Note: See TracChangeset for help on using the changeset viewer.