FinanceCheckControllerTest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Tests\Jiesuan\Http\Controllers;
  3. use Modules\Jiesuan\Http\Controllers\FinanceCheckController;
  4. use PHPUnit\Framework\TestCase;
  5. use Tests\UsedTestCase;
  6. class FinanceCheckControllerTest extends UsedTestCase
  7. {
  8. public function testList()
  9. {
  10. $res = $this->withHeaders([
  11. 'Authorization' => 'Bearer '. $this->token,
  12. ])->json('get','http://localhost/api/jiesuanManage/financeCheck/list',[
  13. 'status' => 2
  14. ]);
  15. $res->dump();
  16. }
  17. public function testCheck()
  18. {
  19. $res = $this->withHeaders([
  20. 'Authorization' => 'Bearer '. $this->token,
  21. ])->json('post','http://localhost/api/jiesuanManage/financeCheck/check',[
  22. 'status' => 2,
  23. 'id' => 1,
  24. ]);
  25. $res->dump();
  26. }
  27. public function testremit()
  28. {
  29. $res = $this->withHeaders([
  30. 'Authorization' => 'Bearer '. $this->token,
  31. ])->json('post','http://localhost/api/jiesuanManage/financeCheck/remit',[
  32. 'status' => 4,
  33. 'id' => 1,
  34. 'pay_channel' => '治愈',
  35. 'pay_no' => '13214321',
  36. 'remark' => 'kjlj',
  37. ]);
  38. $res->dump();
  39. }
  40. }