|
Lines 65-73
subtest 'call() tests' => sub {
Link Here
|
| 65 |
is_deeply(\@responses, $expected, 'call() should return all responses from plugins'); |
65 |
is_deeply(\@responses, $expected, 'call() should return all responses from plugins'); |
| 66 |
|
66 |
|
| 67 |
# Make sure parameters are correctly passed to the plugin method |
67 |
# Make sure parameters are correctly passed to the plugin method |
| 68 |
my @responses = Koha::Plugins->call('check_password', { password => '1234' }); |
68 |
@responses = Koha::Plugins->call('check_password', { password => '1234' }); |
| 69 |
|
69 |
|
| 70 |
my $expected = [ { error => 0 } ]; |
70 |
$expected = [ { error => 0 } ]; |
| 71 |
is_deeply(\@responses, $expected, 'call() should return all responses from plugins'); |
71 |
is_deeply(\@responses, $expected, 'call() should return all responses from plugins'); |
| 72 |
|
72 |
|
| 73 |
$schema->storage->txn_rollback; |
73 |
$schema->storage->txn_rollback; |
| 74 |
- |
|
|