http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7167 --- Comment #211 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to comment #209)
Jonathan, what I would probably do is mock C4::Context->config to set intranetdir so that C4::Update::Database will find a versions directory under t/db_dependent/data. Then I'd make the tests relative, so that the system checks not that there is one update applied, but that there is one more update applied than there was when the test started.
I mock C4::U::D::get_versions_path which is quite similar to mock C4::Context->config. The idea to make the tests relative seems better, thank you. I let you (or someone else!) have a look at the following patch. All remarks are welcomed :) -- You are receiving this mail because: You are watching all bug changes.