123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- declare(strict_types=0);
- define('APP_ID', 'test');
- define('BASE_ROOT_PATH', str_replace('/test', '', dirname(__FILE__)));
- require_once(BASE_ROOT_PATH . '/global.php');
- require_once(BASE_CORE_PATH . '/lrlz.php');
- require_once(BASE_ROOT_PATH . '/fooder.php');
- use PHPUnit\Framework\TestCase;
- class TestLXOrder extends TestCase
- {
- public static function setUpBeforeClass(): void
- {
- Base::run_util();
- }
- private $mStoreID;
- public function __construct(?string $name = null, array $data = [], $dataName = '')
- {
- parent::__construct($name, $data, $dataName);
- $this->mStoreID = 10;
- }
- public function testDown()
- {
- $vr_order = Model('vr_order');
- $orders = $vr_order->getOrderList(['store_id' => $this->mStoreID,'order_state' => ORDER_STATE_PAY]);
- if(empty($orders)) {
- Log::record("没有新订单",Log::DEBUG);
- return;
- }
- $order_ids = [];
- foreach ($orders as $order) {
- $order_ids[] = $order['order_id'];
- }
- $refill_order = Model('refill_order');
- // $refills = $refill_order->get
- }
- public function testUpSuccess()
- {
- }
- public function testUpFail()
- {
- }
- }
|