1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 2017/5/25
- * Time: 上午10:21
- */
- define('APP_ID', 'test');
- define('BASE_ROOT_PATH', str_replace('/test/refill', '', dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- require_once(BASE_HELPER_PATH . '/refill/XYZRefillFactory.php');
- use PHPUnit\Framework\TestCase;
- class TestPartOptimization extends TestCase
- {
- public static function setUpBeforeClass() : void
- {
- Base::run_util();
- refill\RefillFactory::instance();
- }
- public function testDetailExist()
- {
- $refill_order = Model('refill_order');
- $ret = $refill_order->exist(10198, '10298620105', true);
- }
- public function testGetVrOrder()
- {
- $mod_order = Model('vr_order');
- $order_info = $mod_order->getOrderInfo(['order_sn' => '3877620720404788469721','add_time' => refill\util::vr_order_part()]);
- }
- }
|