123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/8/14
- * Time: 下午5:29
- */
- define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
- require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
- class activity_helperTest extends PHPUnit_Framework_TestCase
- {
- public static function setUpBeforeClass()
- {
- Base::run_util();
- }
- public function testGift()
- {
- $helper = new goods_helper();
- // $helper->get_summary(array(1269,4127,4217));
- $helper->get_summary(array(1269));
- }
- public function testGroupbuy()
- {
- $activity = new activity_helper();
- $activity->groupbuy_list();
- }
- public function testXianshi()
- {
- $activity = new activity_helper();
- $activity->xianshi_list(6);
- }
- public function testMansong()
- {
- $activity = new activity_helper();
- $activity->mansong_list(6);
- }
- public function testBundling()
- {
- $activity = new activity_helper();
- $activity->bundling_list(6);
- }
- public function testBooth()
- {
- $activity = new activity_helper();
- $activity->booth_list(6);
- }
- public function testTakepart()
- {
- activity_helper::take_parted(30,$type);
- }
- }
|