1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?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()
- {
- $time = strftime("%Y-%m-%d %H:%M:%S",1474266342);
- $time = strftime("%Y-%m-%d %H:%M:%S",1474268695);
- $time = strftime("%Y-%m-%d %H:%M:%S",1474268698);
- $helper = new goods_helper();
- //$helper->get_summary(array(4181),$related_goods);
- }
- public function testBundling()
- {
- $helper = new goods_helper();
- //$ret = $helper->get_summary(array(2),$related_goods);
- }
- public function testSpu()
- {
- $helper = new goods_helper();
- $ret = $helper->get_spu(2629,4182,$err);
- }
- public function testFull()
- {
- $contents = activity\full_sent::instance()->rules();
- $store_list = Model('store')->getStoreOnlineList(array('store_id' => 6),null,'','store_free_price');
- }
- public function testActivity()
- {
- // $acting = activity_helper::acting();
- // $unstart = activity_helper::unstart();
- // $acting = activity\groupbuy::instance()->acting();
- // $unstart = activity\groupbuy::instance()->unstart();
- // $acting = activity\limitime::instance()->acting();
- $unstart = activity\limitime::instance()->unstart();
- }
- }
|