App\Tests\Auth\OAuthServerTest::itRejectsRequestWithIncompleteBody PHP Method

itRejectsRequestWithIncompleteBody() public method

If there is an authorized client querying the API but incomplete body should respond with a 400 and the errors
    public function itRejectsRequestWithIncompleteBody()
    {
        DB::table('oauth_clients')->insert(['id' => '12345', 'secret' => '12345', 'name' => 'Testing Env', 'created_at' => Carbon::now()->format('Y-m-d H:i:s'), 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')]);
        $this->post('/api/oauth/authorize', ['grant_type' => 'password', 'client_id' => "12345", 'client_secret' => "12345", 'username' => "[email protected]"])->seeStatusCode(400)->seeJson(['errors' => ['status' => '400', 'code' => 'InvalidRequest', 'title' => 'Invalid Request', 'detail' => 'The body does not have the necessary data to process the transaction', 'source' => ['parameter' => 'password']]]);
    }