Lines 32-48
my $logs = [
Link Here
|
32 |
{ |
32 |
{ |
33 |
info => '{"log_origin": "core"}', |
33 |
info => '{"log_origin": "core"}', |
34 |
action => 'STATUS_CHANGE', |
34 |
action => 'STATUS_CHANGE', |
35 |
timestamp => 1538478742 |
35 |
timestamp => '2018-10-02 11:12:22' |
36 |
}, |
36 |
}, |
37 |
{ |
37 |
{ |
38 |
info => '{"log_origin": "core"}', |
38 |
info => '{"log_origin": "core"}', |
39 |
action => 'STATUS_CHANGE', |
39 |
action => 'STATUS_CHANGE', |
40 |
timestamp => 1538478732 |
40 |
timestamp => '2018-10-02 11:12:12' |
41 |
}, |
41 |
}, |
42 |
{ |
42 |
{ |
43 |
info => '{"log_origin": "core"}', |
43 |
info => '{"log_origin": "core"}', |
44 |
action => 'STATUS_CHANGE', |
44 |
action => 'STATUS_CHANGE', |
45 |
timestamp => 1538478752 |
45 |
timestamp => '2018-10-02 11:12:32' |
46 |
} |
46 |
} |
47 |
]; |
47 |
]; |
48 |
# Mock the modules we use |
48 |
# Mock the modules we use |
Lines 126-145
subtest 'Basics' => sub {
Link Here
|
126 |
{ |
126 |
{ |
127 |
'template' => 'mock', |
127 |
'template' => 'mock', |
128 |
'info' => { 'log_origin' => 'core' }, |
128 |
'info' => { 'log_origin' => 'core' }, |
129 |
'timestamp' => 1538478752, |
129 |
'timestamp' => '2018-10-02 11:12:32', |
130 |
'action' => 'STATUS_CHANGE' |
130 |
'action' => 'STATUS_CHANGE' |
131 |
}, |
131 |
}, |
132 |
{ |
132 |
{ |
133 |
'template' => 'mock', |
133 |
'template' => 'mock', |
134 |
'action' => 'STATUS_CHANGE', |
134 |
'action' => 'STATUS_CHANGE', |
135 |
'timestamp' => 1538478742, |
135 |
'timestamp' => '2018-10-02 11:12:22', |
136 |
'info' => { 'log_origin' => 'core' } |
136 |
'info' => { 'log_origin' => 'core' } |
137 |
}, |
137 |
}, |
138 |
{ |
138 |
{ |
139 |
'template' => 'mock', |
139 |
'template' => 'mock', |
140 |
'action' => 'STATUS_CHANGE', |
140 |
'action' => 'STATUS_CHANGE', |
141 |
'info' => { 'log_origin' => 'core' }, |
141 |
'info' => { 'log_origin' => 'core' }, |
142 |
'timestamp' => 1538478732 |
142 |
'timestamp' => '2018-10-02 11:12:12' |
143 |
} |
143 |
} |
144 |
]; |
144 |
]; |
145 |
my $me_mock = Test::MockModule->new('Koha::Illrequest::Logger'); |
145 |
my $me_mock = Test::MockModule->new('Koha::Illrequest::Logger'); |
146 |
- |
|
|