FinanceCheckControllerTest.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }