Lines 901-907
subtest 'GetHistory - is_standing' => sub {
Link Here
|
901 |
|
901 |
|
902 |
subtest 'Acquisition logging' => sub { |
902 |
subtest 'Acquisition logging' => sub { |
903 |
|
903 |
|
904 |
plan tests => 6; |
904 |
plan tests => 5; |
905 |
|
905 |
|
906 |
t::lib::Mocks::mock_preference('AcqLog', 1); |
906 |
t::lib::Mocks::mock_preference('AcqLog', 1); |
907 |
|
907 |
|
Lines 910-920
subtest 'Acquisition logging' => sub {
Link Here
|
910 |
my @create_logs = Koha::ActionLogs->search({ module =>'ACQUISITIONS', action => 'ADD_BASKET', object => $basketno }); |
910 |
my @create_logs = Koha::ActionLogs->search({ module =>'ACQUISITIONS', action => 'ADD_BASKET', object => $basketno }); |
911 |
is (scalar @create_logs, 1, 'Basket creation is logged'); |
911 |
is (scalar @create_logs, 1, 'Basket creation is logged'); |
912 |
|
912 |
|
913 |
Koha::ActionLogs->delete; |
|
|
914 |
C4::Acquisition::CloseBasket($basketno); |
915 |
my @close_logs = Koha::ActionLogs->search({ module =>'ACQUISITIONS', action => 'CLOSE_BASKET', object => $basketno }); |
916 |
is (scalar @close_logs, 1, 'Basket closure is logged'); |
917 |
|
918 |
Koha::ActionLogs->delete; |
913 |
Koha::ActionLogs->delete; |
919 |
C4::Acquisition::ReopenBasket($basketno); |
914 |
C4::Acquisition::ReopenBasket($basketno); |
920 |
my @reopen_logs = Koha::ActionLogs->search({ module =>'ACQUISITIONS', action => 'REOPEN_BASKET', object => $basketno }); |
915 |
my @reopen_logs = Koha::ActionLogs->search({ module =>'ACQUISITIONS', action => 'REOPEN_BASKET', object => $basketno }); |