[koha-commits] main Koha release repository branch master updated. v3.12.00-beta1-902-g9509062
Git repo owner
gitmaster at git.koha-community.org
Fri Aug 9 18:27:15 CEST 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via 950906207237d8056e9f8b775e1d52223a757729 (commit)
via a765d5f88e125e0f43e2e5cfe766bc22f0fd0d08 (commit)
via eb90241c7941760a79c48c745c8fd938780490a8 (commit)
from 5cba6457aa00f3f3b2038f70057df300d9c6b9c3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 950906207237d8056e9f8b775e1d52223a757729
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Tue May 21 17:14:24 2013 +0200
Bug 10298: Adapt existing code
set_solr and set_zebra is not really useful. It is preferable to use
mock_preference directly.
To test:
1/ Launch Solr
2/ prove -r t/searchengine/
It should produce:
% prove -r t/searchengine/
t/searchengine/000_conn/conn.t ........... ok
t/searchengine/001_search/search_base.t .. ok
t/searchengine/002_index/index_base.t .... IndexRecord called with biblio 2
Indexing biblio 2
t/searchengine/002_index/index_base.t .... ok
t/searchengine/003_query/buildquery.t .... ok
t/searchengine/004_config/load_config.t .. ok
All tests successful.
Files=5, Tests=21, 4 wallclock secs ( 0.03 usr 0.01 sys + 2.74 cusr
0.20 csys = 2.98 CPU)
Result: PASS
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
Had to get Solr going again to test this, man .. they could make that
easier
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit a765d5f88e125e0f43e2e5cfe766bc22f0fd0d08
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Fri May 24 13:32:24 2013 +0200
Bug 10298: Followup: Adapt existing code
This unit tests file does not need the t::lib::Mocks::Context module.
To test:
prove t/db_dependent/Circulation_issuingrules.t
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Passes koha-qa.pl, test checks out.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit eb90241c7941760a79c48c745c8fd938780490a8
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Tue May 21 17:13:35 2013 +0200
Bug 10298: Mock C4::Context->preference
t::lib::Mocks::Context tried to deal with preferences but did not manage
to.
This patch removes this module and add 2 routines in t::lib::Mocks in
order to mock C4::context->preference and C4::Context->config.
To test:
===START t/test.pl===
use Modern::Perl;
use t::lib::Mocks;
use C4::Context;
say "initial value for version: " . C4::Context->preference('Version');
say "initial value for language: " . C4::Context->preference('language');
t::lib::Mocks::mock_preference('Version', "new version for testing");
say "version is mocked with: " . C4::Context->preference('Version');
say "language is not yet mocked: " . C4::Context->preference('language');
t::lib::Mocks::mock_preference('language', 'new langage for testing');
t::lib::Mocks::mock_preference('Version', 'another version for testing');
say "version is mocked with another value: " . C4::Context->preference('Version');
say "language is finally mocked: " . C4::Context->preference('language');
===END===
Try to execute this file and check that the output is consistent.
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
-----------------------------------------------------------------------
Summary of changes:
t/db_dependent/Circulation_issuingrules.t | 1 -
t/lib/Mocks.pm | 46 +++++++++++++++++++---------
t/lib/Mocks/Context.pm | 13 --------
t/searchengine/000_conn/conn.t | 16 +++++-----
t/searchengine/001_search/search_base.t | 2 +-
t/searchengine/002_index/index_base.t | 2 +-
t/searchengine/003_query/buildquery.t | 5 +--
t/searchengine/004_config/load_config.t | 3 +-
8 files changed, 44 insertions(+), 44 deletions(-)
delete mode 100644 t/lib/Mocks/Context.pm
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list