[Koha-bugs] [Bug 15323] ./t/Prices.t fails without a valid database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 30 12:32:49 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15323

--- Comment #8 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 49678
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49678&action=edit
Bug 15323: Use fixtures for the active currency

prove t/Prices.t
fails after bug 15084 has been pushed
It's caused by
  commit 1538e9ecf47642c4974693ff499c3e95e4d71977
    Bug 15084: Replace C4::Budgets::GetCurrencies with
    Koha::Acquisition::Currencies->search

Koha::Number::Price->_format_params calls
Koha::Acquisition::Currencies->get_active, which requests the DB.
The currency data should be mocked.

Test plan:
sudo service mysql stop
prove t/Prices.t
 should return green

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list