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

itRejectsAnExternalRequest() public method

A request to auth/login with no parameters in the body should return error
    public function itRejectsAnExternalRequest()
    {
        $this->post('/api/oauth/authorize', [])->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' => 'grant_type']]]);
    }