Bugzilla – Attachment 9473 Details for
Bug 7977
Add a "Quote-of-the-day" feature to the OPAC homepage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixing sub refs; C4::Koha does not export all functions by default
Fixing-sub-refs-C4Koha-does-not-export-all-functio.patch (text/plain), 1.91 KB, created by
Chris Nighswonger
on 2012-05-09 14:35:37 UTC
(
hide
)
Description:
Fixing sub refs; C4::Koha does not export all functions by default
Filename:
MIME Type:
Creator:
Chris Nighswonger
Created:
2012-05-09 14:35:37 UTC
Size:
1.91 KB
patch
obsolete
>From 42d5cf4eb4ec81916e5d4645aba04158169177e7 Mon Sep 17 00:00:00 2001 >From: Chris Nighswonger <cnighswonger@foundations.edu> >Date: Wed, 9 May 2012 10:35:06 -0400 >Subject: [PATCH] Fixing sub refs; C4::Koha does not export all functions by default >Content-Type: text/plain; charset="utf-8" > >--- > t/db_dependent/Koha.t | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Koha.t b/t/db_dependent/Koha.t >index 6f16c87..e6ada29 100644 >--- a/t/db_dependent/Koha.t >+++ b/t/db_dependent/Koha.t >@@ -13,7 +13,7 @@ use DateTime::Format::MySQL; > eval {use Test::Deep;}; > > BEGIN { >- use_ok('C4::Koha'); >+ use_ok('C4::Koha', qw( GetAuthorisedValueByCode GetKohaImageurlFromAuthorisedValues GetDailyQuote )); > use_ok('C4::Members'); > } > >@@ -83,13 +83,13 @@ SKIP: > > # test quote retrieval based on id > >- my $quote = C4::Koha->GetDailyQuote('id'=>3); >+ my $quote = GetDailyQuote('id'=>3); > cmp_deeply ($quote, $expected_quote, "Got a quote based on id.") or > diag('Be sure to run this test on a clean install of sample data.'); > > # test random quote retrieval > >- $quote = C4::Koha->GetDailyQuote('random'=>1); >+ $quote = GetDailyQuote('random'=>1); > ok ($quote, "Got a random quote."); > > # test quote retrieval based on today's date >@@ -103,7 +103,7 @@ SKIP: > > # $expected_quote->{'timestamp'} = DateTime::Format::MySQL->format_datetime(DateTime->now); # update the timestamp of expected quote data > >- $quote = C4::Koha->GetDailyQuote(); # this is the "default" mode of selection >+ $quote = GetDailyQuote(); # this is the "default" mode of selection > cmp_deeply ($quote, $expected_quote, "Got a quote based on today's date.") or > diag('Be sure to run this test on a clean install of sample data.'); > } >-- >1.7.0.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 7977
:
9310
|
9321
|
9323
|
9324
|
9325
|
9326
|
9327
|
9328
|
9338
|
9343
|
9373
|
9376
|
9377
|
9378
|
9392
|
9405
|
9406
|
9407
|
9408
|
9409
|
9433
|
9434
|
9435
|
9441
|
9442
|
9443
|
9447
|
9473
|
9474
|
9475
|
9476
|
9477
|
9478
|
9479
|
9480
|
9481
|
9482
|
9483
|
9484
|
9485
|
9486
|
9503
|
9504
|
9505
|
9510
|
9517
|
9521
|
9529
|
9530
|
9531
|
9682
|
9683
|
9711
|
9712
|
9713
|
9714
|
9715
|
9716
|
9717
|
9718
|
9719
|
9720
|
9721
|
9722
|
9723
|
9724
|
9725
|
9726
|
9727
|
9728
|
9729
|
9730
|
9731
|
9732