Lines 42-48
t::lib::Mocks::mock_config( 'enable_plugins', 1 );
Link Here
|
42 |
|
42 |
|
43 |
subtest '() hook tests' => sub { |
43 |
subtest '() hook tests' => sub { |
44 |
|
44 |
|
45 |
plan tests => 1; |
45 |
plan tests => 2; |
46 |
|
46 |
|
47 |
$schema->storage->txn_begin; |
47 |
$schema->storage->txn_begin; |
48 |
|
48 |
|
Lines 52-57
subtest '() hook tests' => sub {
Link Here
|
52 |
my $plugin = Koha::Plugin::Test->new->enable; |
52 |
my $plugin = Koha::Plugin::Test->new->enable; |
53 |
|
53 |
|
54 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
54 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
|
|
55 |
my $cardnumber = $patron->cardnumber; |
56 |
|
57 |
warning_like { $patron->store(); } |
58 |
qr/patron_barcode_transform called with parameter: $cardnumber/, |
59 |
'Koha::Patron::store calls the patron_barcode_transform hook'; |
55 |
|
60 |
|
56 |
t::lib::Mocks::mock_userenv( |
61 |
t::lib::Mocks::mock_userenv( |
57 |
{ |
62 |
{ |