Bugzilla – Attachment 7142 Details for
Bug 929
See details of a budget
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 929 : Follow up to allow tests to check plugins too
Bug-929--Follow-up-to-allow-tests-to-check-plugins.patch (text/plain), 1.16 KB, created by
Chris Cormack
on 2012-01-13 18:29:33 UTC
(
hide
)
Description:
Bug 929 : Follow up to allow tests to check plugins too
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-01-13 18:29:33 UTC
Size:
1.16 KB
patch
obsolete
>From fff905c5d3ba771adcadb49a3b13ec309fe35c64 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Sat, 14 Jan 2012 07:28:11 +1300 >Subject: [PATCH] Bug 929 : Follow up to allow tests to check plugins too > >--- > xt/author/valid-templates.t | 19 ++++++++++++------- > 1 files changed, 12 insertions(+), 7 deletions(-) > >diff --git a/xt/author/valid-templates.t b/xt/author/valid-templates.t >index a4fa71e..202ef57 100644 >--- a/xt/author/valid-templates.t >+++ b/xt/author/valid-templates.t >@@ -50,13 +50,18 @@ done_testing(); > sub create_template_test { > my $includes = shift; > return sub { >- my $tt = Template->new({ABSOLUTE => 1, >- INCLUDE_PATH => $includes }); >- my $vars; >- my $output; >- if ( ! ok($tt->process($_,$vars,\$output), $_) ){ >- diag($tt->error); >- } >+ my $tt = Template->new( >+ { >+ ABSOLUTE => 1, >+ INCLUDE_PATH => $includes, >+ PLUGIN_BASE => 'Koha::Template::Plugin', >+ } >+ ); >+ my $vars; >+ my $output; >+ if ( !ok( $tt->process( $_, $vars, \$output ), $_ ) ) { >+ diag( $tt->error ); >+ } > } > } > >-- >1.7.5.4
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 929
:
6936
|
6941
|
6947
|
6948
|
6949
|
6950
|
6951
|
6952
|
6953
|
6958
|
7109
|
7110
|
7142
|
7143
|
7393