activity_helperTest.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/8/14
  6. * Time: 下午5:29
  7. */
  8. define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
  9. require_once(BASE_ROOT_PATH . '/fooder.php');
  10. require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
  11. require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
  12. class activity_helperTest extends PHPUnit_Framework_TestCase
  13. {
  14. public static function setUpBeforeClass()
  15. {
  16. Base::run_util();
  17. }
  18. public function testGift()
  19. {
  20. $helper = new goods_helper();
  21. $helper->get_summary(array(4127,4217));
  22. }
  23. public function testGroupbuy()
  24. {
  25. $activity = new activity_helper();
  26. $activity->groupbuy_list();
  27. }
  28. public function testXianshi()
  29. {
  30. $activity = new activity_helper();
  31. $activity->xianshi_list(6);
  32. }
  33. public function testMansong()
  34. {
  35. $activity = new activity_helper();
  36. $activity->mansong_list(6);
  37. }
  38. public function testBundling()
  39. {
  40. $activity = new activity_helper();
  41. $activity->bundling_list(6);
  42. }
  43. public function testBooth()
  44. {
  45. $activity = new activity_helper();
  46. $activity->booth_list(6);
  47. }
  48. public function testTakepart()
  49. {
  50. activity_helper::take_parted(30,$type);
  51. }
  52. }