Update Ogone tests for new driver code.
This commit is contained in:
parent
dc226e3268
commit
6b2935305f
1 changed files with 8 additions and 2 deletions
|
|
@ -381,8 +381,6 @@ foreach my $input (@inputs) {
|
||||||
push @interestingFeatures, { name => $name, type => $type };
|
push @interestingFeatures, { name => $name, type => $type };
|
||||||
}
|
}
|
||||||
|
|
||||||
diag Dumper \@interestingFeatures;
|
|
||||||
|
|
||||||
cmp_deeply(
|
cmp_deeply(
|
||||||
\@interestingFeatures,
|
\@interestingFeatures,
|
||||||
[
|
[
|
||||||
|
|
@ -561,6 +559,14 @@ cmp_deeply(
|
||||||
#
|
#
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
my $newOptions = {
|
||||||
|
label => 'Yet another label',
|
||||||
|
enabled => 1,
|
||||||
|
group => 4,
|
||||||
|
receiptMessage => 'Dropjes!',
|
||||||
|
};
|
||||||
|
|
||||||
|
$driver->update($newOptions);
|
||||||
$session->user({userId => 3});
|
$session->user({userId => 3});
|
||||||
ok($driver->canUse, 'canUse: session->user is used if no argument is passed');
|
ok($driver->canUse, 'canUse: session->user is used if no argument is passed');
|
||||||
ok(!$driver->canUse({userId => 1}), 'canUse: userId explicit works, visitor cannot use this driver');
|
ok(!$driver->canUse({userId => 1}), 'canUse: userId explicit works, visitor cannot use this driver');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue