VideoSeriesWechatCheckControllerTest.php 878 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Tests\Video\Http\Controllers;
  3. use Modules\Video\Http\Controllers\VideoSeriesWechatCheckController;
  4. use PHPUnit\Framework\TestCase;
  5. use Tests\UsedTestCase;
  6. class VideoSeriesWechatCheckControllerTest extends UsedTestCase
  7. {
  8. public function testSyncWechat()
  9. {
  10. $res = $this->withHeaders([
  11. 'Authorization' => 'Bearer '. $this->token,
  12. ])->json('post','http://localhost/api/videoStock/wechatCheck/videoSeries/syncWechat', [
  13. 'series_ids' => [81,82,83,84,85],
  14. ]);
  15. $this->dumpJson($res);
  16. }
  17. public function testmedialink()
  18. {
  19. $res = $this->withHeaders([
  20. 'Authorization' => 'Bearer '. $this->token,
  21. ])->json('post','http://localhost/api/videoStock/wechatCheck/videoSeries/medialink', [
  22. 'series_id' => 81,
  23. ]);
  24. $this->dumpJson($res);
  25. }
  26. }