| 12345678910111213141516171819202122232425262728293031 |
- <?php
- declare(strict_types=1);
- namespace SixShop\Lakala\Cron;
- use PHPUnit\Framework\Attributes\Test;
- use PHPUnit\Framework\TestCase;
- use think\facade\Db;
- class WechatOrderCronTest extends TestCase
- {
- private WechatOrderCron $wechatOrderCron;
- protected function setUp(): void
- {
- Db::listen(function ($sql, $time, $explain) {
- dump($sql);
- });
- $this->wechatOrderCron = app(WechatOrderCron::class);
- }
- #[Test]
- public function orderShipping()
- {
- $this->wechatOrderCron->orderShipping();
- }
- #[Test]
- public function orderExpire()
- {
- $this->wechatOrderCron->orderExpire();
- }
- }
|