Bugzilla – Attachment 87017 Details for
Bug 22577
Cronjobs (and other scripts) should be attributed to a 'real' user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22577: Add test for Koha::Cron base class
Bug-22577-Add-test-for-KohaCron-base-class.patch (text/plain), 1.76 KB, created by
Martin Renvoize (ashimema)
on 2019-03-26 14:01:28 UTC
(
hide
)
Description:
Bug 22577: Add test for Koha::Cron base class
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-26 14:01:28 UTC
Size:
1.76 KB
patch
obsolete
>From 3333a5d71c38d8f54ffb7cfe3a439ff72eba5a39 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 26 Mar 2019 14:00:09 +0000 >Subject: [PATCH] Bug 22577: Add test for Koha::Cron base class > >--- > t/Koha/Cron.t | 45 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 t/Koha/Cron.t > >diff --git a/t/Koha/Cron.t b/t/Koha/Cron.t >new file mode 100644 >index 0000000000..4e58d6c150 >--- /dev/null >+++ b/t/Koha/Cron.t >@@ -0,0 +1,45 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+ >+use Test::More tests => 2; >+ >+BEGIN { use_ok('Koha::Cron') } >+ >+use C4::Context; >+ >+my $userenv = C4::Context->userenv; >+is_deeply( >+ $userenv, >+ { >+ 'surname' => 'CRON', >+ 'id' => '-1', >+ 'flags' => undef, >+ 'cardnumber' => undef, >+ 'firstname' => 'CRON', >+ 'branchname' => undef, >+ 'branchprinter' => undef, >+ 'emailaddress' => undef, >+ 'number' => '-1', >+ 'shibboleth' => undef, >+ 'branch' => undef >+ }, >+ "Context set correctly" >+); >+ >+1; >-- >2.20.1
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 22577
:
86991
|
86992
|
86993
|
87007
|
87008
|
87013
|
87014
|
87015
|
87017
|
87028
|
87029
|
87030
|
87031
|
87032
|
87053
|
87054
|
87055
|
87056
|
87057
|
87058
|
87059
|
87060