FinanceCheckControllerTest.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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' => 4,
  14. // 'owner_name' => 'fsd1'
  15. ]);
  16. // $res->dump();
  17. $this->dumpJson($res);
  18. }
  19. public function testCheck()
  20. {
  21. $res = $this->withHeaders([
  22. 'Authorization' => 'Bearer '. $this->token,
  23. ])->json('post','http://localhost/api/jiesuanManage/financeCheck/check',[
  24. 'status' => 2,
  25. 'id' => 1,
  26. ]);
  27. $res->dump();
  28. }
  29. public function testremit()
  30. {
  31. $res = $this->withHeaders([
  32. 'Authorization' => 'Bearer '. $this->token,
  33. ])->json('post','http://localhost/api/jiesuanManage/financeCheck/remit',[
  34. 'status' => 4,
  35. 'id' => 1,
  36. 'pay_channel' => '治愈',
  37. 'pay_no' => '13214321',
  38. 'remark' => 'kjlj',
  39. ]);
  40. $res->dump();
  41. }
  42. public function testgetShanghuAccountInfo()
  43. {
  44. $res = $this->withHeaders([
  45. 'Authorization' => 'Bearer '. $this->token,
  46. ])->json('get','http://localhost/api/jiesuanManage/financeCheck/getShanghuAccountInfo',[
  47. 'company_uid' => 1,
  48. ]);
  49. // $res->dump();
  50. $this->dumpJson($res);
  51. }
  52. }