File: grant_handler.t

package info (click to toggle)
liboauth-lite2-perl 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 592 kB
  • sloc: perl: 2,658; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;

use Test::More; 
use OAuth::Lite2::Server::GrantHandler;

use lib 't/lib';
use TestDataHandler;

my $handler = OAuth::Lite2::Server::GrantHandler->new;
ok( $handler, q{new});

ok( $handler->is_required_client_authentication, q{client_authentication});

my $dh = TestDataHandler->new;
eval {
    $handler->handle_request( $dh );
};
my $error = $@;
like( $error, qr/abstract method/, q{handle_request});

done_testing;