ProfitShareOrderCronTest.php 617 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Lakala\Cron;
  4. use PHPUnit\Framework\Attributes\Test;
  5. use PHPUnit\Framework\TestCase;
  6. use think\facade\Db;
  7. class ProfitShareOrderCronTest extends TestCase
  8. {
  9. private ProfitShareOrderCron $profitShareOrderCron;
  10. protected function setUp(): void
  11. {
  12. Db::listen(function ($sql, $time, $explain) {
  13. dump($sql);
  14. });
  15. $this->profitShareOrderCron = app(ProfitShareOrderCron::class);
  16. }
  17. #[Test]
  18. public function queryProfitShareOrderResult()
  19. {
  20. $this->profitShareOrderCron->queryProfitShareOrderResult();
  21. }
  22. }