|
Lines 17-22
Link Here
|
| 17 |
|
17 |
|
| 18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
| 19 |
|
19 |
|
|
|
20 |
use utf8; |
| 21 |
|
| 20 |
use Test::More tests => 6; |
22 |
use Test::More tests => 6; |
| 21 |
use Test::Exception; |
23 |
use Test::Exception; |
| 22 |
|
24 |
|
|
Lines 304-310
subtest 'pending_count() and pending() tests' => sub {
Link Here
|
| 304 |
surname => 'Smith', |
306 |
surname => 'Smith', |
| 305 |
firstname => 'Sandy', |
307 |
firstname => 'Sandy', |
| 306 |
verification_token => $verification_token_2, |
308 |
verification_token => $verification_token_2, |
| 307 |
extended_attributes => '[{"code":"CODE_2","value":"chau"},{"code":"CODE_2","value":"ciao"}]' |
309 |
extended_attributes => '[{"code":"CODE_2","value":"año"},{"code":"CODE_2","value":"ciao"}]' |
| 308 |
} |
310 |
} |
| 309 |
)->store(); |
311 |
)->store(); |
| 310 |
|
312 |
|
|
Lines 341-347
subtest 'pending_count() and pending() tests' => sub {
Link Here
|
| 341 |
is( ref($p2_pm_attribute_1), 'Koha::Patron::Attribute', 'patron modification has single attribute object' ); |
343 |
is( ref($p2_pm_attribute_1), 'Koha::Patron::Attribute', 'patron modification has single attribute object' ); |
| 342 |
is( ref($p2_pm_attribute_2), 'Koha::Patron::Attribute', 'patron modification has single attribute object' ); |
344 |
is( ref($p2_pm_attribute_2), 'Koha::Patron::Attribute', 'patron modification has single attribute object' ); |
| 343 |
|
345 |
|
| 344 |
is( $p2_pm_attribute_1->attribute, 'chau', 'patron modification has the right attribute change' ); |
346 |
is( $p2_pm_attribute_1->attribute, 'año', 'patron modification has the right attribute change' ); |
| 345 |
is( $p2_pm_attribute_2->attribute, 'ciao', 'patron modification has the right attribute change' ); |
347 |
is( $p2_pm_attribute_2->attribute, 'ciao', 'patron modification has the right attribute change' ); |
| 346 |
|
348 |
|
| 347 |
is( Koha::Patron::Modifications->pending_count($library_1), |
349 |
is( Koha::Patron::Modifications->pending_count($library_1), |
| 348 |
- |
|
|