summaryrefslogtreecommitdiff
path: root/t/50-www-efa.t
blob: f7a7410417774dd81d1f2f2ff9c344f5810f3e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;

use Test::More tests => 6;

BEGIN {
	use_ok('WWW::Efa');
}
require_ok('WWW::Efa');

my $conf_default = {
	from => ['Essen', 'HBf'],
	to   => ['Koeln', 'HBf'],
};
my $post_default = {
	place_origin => 'Essen',
	name_origin => 'HBf',
	type_origin => 'stop',
	place_destination => 'Koeln',
	name_destination => 'HBf',
	type_destination => 'stop',
};

my $efa = new_ok('WWW::Efa' => [%{$conf_default}]);

can_ok($efa, qw{new submit parse connections});

is_deeply($efa->{'config'}, $conf_default);
is_deeply($efa->{'post'}, $post_default);

$efa = WWW::Efa->new();