Bugzilla – Attachment 39523 Details for
Bug 14206
notices using non email templates can't be deleted from the staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14206 - Adds test for getletter() call from overdue_notices.pl
Bug-14206---Adds-test-for-getletter-call-from-over.patch (text/plain), 1.85 KB, created by
Jonathan Druart
on 2015-05-26 13:16:28 UTC
(
hide
)
Description:
Bug 14206 - Adds test for getletter() call from overdue_notices.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-05-26 13:16:28 UTC
Size:
1.85 KB
patch
obsolete
>From 5848bedfe6b7c9b47b64fd67268a06eb89cd6f23 Mon Sep 17 00:00:00 2001 >From: Indranil Das Gupta <indradg@gmail.com> >Date: Mon, 25 May 2015 05:25:04 +0530 >Subject: [PATCH] Bug 14206 - Adds test for getletter() call from > overdue_notices.pl >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Adds missing test for getletter() when called from overdue_notices.pl > >Test plan >========= > >1/ apply this patch >2/ run prove -v t/db_dependent/Letters.t > all tests should pass, especially test #40 which tests call from > overdue_notices.pl > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > t/db_dependent/Letters.t | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t >index 6ac9f58..b549a7b 100644 >--- a/t/db_dependent/Letters.t >+++ b/t/db_dependent/Letters.t >@@ -18,7 +18,7 @@ > # along with Koha; if not, see <http://www.gnu.org/licenses>. > > use Modern::Perl; >-use Test::More tests => 60; >+use Test::More tests => 61; > use Test::MockModule; > use Test::Warn; > >@@ -180,6 +180,15 @@ is( $letter14206_a->{message_transport_type}, 'print', 'Bug 14206 - message_tran > my $letter14206_b = C4::Letters::getletter('my module', 'my code', 'FFL', 'print'); > is( $letter14206_b->{message_transport_type}, 'print', 'Bug 14206 - message_transport_type passed, correct mtt detected' ); > >+# test for overdue_notices.pl >+my $overdue_rules = { >+ letter1 => 'my code', >+}; >+my $i = 1; >+my $branchcode = 'FFL'; >+my $letter14206_c = C4::Letters::getletter('my module', $overdue_rules->{"letter$i"}, $branchcode); >+is( $letter14206_c->{message_transport_type}, 'print', 'Bug 14206 - correct mtt detected for call from overdue_notices.pl' ); >+ > # addalert > my $type = 'my type'; > my $externalid = 'my external id'; >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14206
:
39270
|
39272
|
39283
|
39315
|
39316
|
39321
|
39342
|
39353
|
39354
|
39376
|
39380
|
39467
|
39512
|
39522
| 39523