Lines 1790-1796
subtest 'notify_library_of_registration()' => sub {
Link Here
|
1790 |
}; |
1790 |
}; |
1791 |
|
1791 |
|
1792 |
subtest 'notice_email_address' => sub { |
1792 |
subtest 'notice_email_address' => sub { |
1793 |
plan tests => 2; |
1793 |
plan tests => 3; |
1794 |
$schema->storage->txn_begin; |
1794 |
$schema->storage->txn_begin; |
1795 |
|
1795 |
|
1796 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
1796 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
Lines 1802-1807
subtest 'notice_email_address' => sub {
Link Here
|
1802 |
t::lib::Mocks::mock_preference( 'EmailFieldPrimary', 'emailpro' ); |
1802 |
t::lib::Mocks::mock_preference( 'EmailFieldPrimary', 'emailpro' ); |
1803 |
is ($patron->notice_email_address, $patron->emailpro, "Koha::Patron->notice_email_address returns correct value when EmailFieldPrimary is emailpro"); |
1803 |
is ($patron->notice_email_address, $patron->emailpro, "Koha::Patron->notice_email_address returns correct value when EmailFieldPrimary is emailpro"); |
1804 |
|
1804 |
|
|
|
1805 |
t::lib::Mocks::mock_preference( 'EmailFieldPrimary', 'email,emailpro' ); |
1806 |
is ($patron->notice_email_address, $patron->email.",".$patron->emailpro, "Koha::Patron->notice_email_address returns correct value when EmailFieldPrimary is email|emailpro"); |
1807 |
|
1805 |
$patron->delete; |
1808 |
$patron->delete; |
1806 |
$schema->storage->txn_rollback; |
1809 |
$schema->storage->txn_rollback; |
1807 |
}; |
1810 |
}; |
1808 |
- |
|
|