stanley-king 1 年間 前
コミット
1b1d329fe6
1 ファイル変更4 行追加2 行削除
  1. 4 2
      test/TestCommand.php

+ 4 - 2
test/TestCommand.php

@@ -121,6 +121,7 @@ class TestCommand extends TestCase
         QueueClient::push("QueryRefund", ['order_id' => 8987841]);
     }
 
+    //docker-compose run -d phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestCommand::testQueryAllRefund)( .*)?$/" --test-suffix TestCommand.php /var/www/html/test
     public function testQueryAllRefund()
     {
         $mod = Model();
@@ -132,14 +133,15 @@ class TestCommand extends TestCase
             $cond = ['inner_status' => 0,
                 'order_state' => ORDER_STATE_SUCCESS,
                 'vr_order.order_id' => ['gt', $start],
-                'store_id' => 33
+                'store_id' => 33,
+                'order_time' => ['lt', strtotime("2023-05-24 15:00:00")]
             ];
 
             $items = $mod->table('refill_order,vr_order')
                 ->field('refill_order.order_id')
                 ->where($cond)
                 ->join('inner')->on('refill_order.order_id=vr_order.order_id')
-                ->limit("$start,100")
+                ->limit("0,100")
                 ->select();
             if(empty($items)) break;