<?php

namespace Http\Controllers\QuickApp\Oauth;

use App\Http\Controllers\QuickApp\Oauth\UsersController;
use PHPUnit\Framework\TestCase;

class UsersControllerTest extends \TestCase
{

    public function testIndex()
    {
        $res = $this->post('http://localhost/api/login', [
            "androidid"=>"c97183d00246295b78a997e914434b258129c3431aa32e95b5c04d585722030a",
    "device_info"=>'{"brand":"HONOR","manufacturer":"HONOR","model":"CMA-AN40","product":"CMA-AN40","osType":"android","osVersionName":"11","osVersionCode":30,"platformVersionName":"1.091","platformVersionCode":1091,"language":"zh","region":"CN","screenWidth":720,"screenHeight":1474,"timeZone":"GMT+08:00","deviceType":"phone","emuiApiLevel":"31","emuiVer":"5.0.0","vendorOsName":"magicUI","vendorOsVersion":"5.0.0","fontScale":1,"characteristics":"default","windowWidth":720,"windowHeight":1474,"cutout":[],"statusBarHeight":48,"pixelRatio":2,"engineProvider":"huawei","screenDensity":2,"screenLogicWidth":750,"screenLogicHeight":1535,"windowLogicWidth":750,"windowLogicHeight":1535,"marketingName":"荣耀Play6T","harmonyOSVer":""}',
    "device_no"=>"c97183d00246295b78a997e914434b258129c3431aa32e95b5c04d585722030a",
    "package"=>"com.beidao.kuaiying.zsy",
    "send_order_id"=>"3209714",
    "timestamp"=>"1657678169",
            "sign" => "65bc2fe65735c21733c1a3631c01a274",
        ]);

        dump($res);
    }
}
