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

itRejectsInvalidClient() public method

A request to auth/login with wrong client and secret
    public function itRejectsInvalidClient()
    {
        $this->post('/api/oauth/authorize', ['grant_type' => 'password', 'client_id' => "98798798798798798798", 'client_secret' => "4802938409238409238409823", 'username' => "[email protected]", "password" => "98989898"])->seeStatusCode(401)->seeJson(['errors' => ['status' => '401', 'code' => 'InvalidClient', 'title' => 'Invalid Client', 'detail' => 'The client requesting the information is not registered in the API']]);
    }