C4::Context->preference needs to be mocked
Created attachment 33005 [details] [review] Bug 13172 t/Koha_Email.t was database dependent To test 1/ Stop your database server 2/ run t/Koha_Email.t 3/ Notice the errors 4/ Apply patch 5/ run t/Koha_Email.t again 6/ No errors (Don't forget to restart your db server after)
Created attachment 33014 [details] [review] Bug 13172 t/Koha_Email.t was database dependent To test 1/ Stop your database server 2/ run t/Koha_Email.t 3/ Notice the errors 4/ Apply patch 5/ run t/Koha_Email.t again 6/ No errors (Don't forget to restart your db server after) Signed-off-by: Robin Sheat <robin@catalyst.net.nz> Verified that it fixes a package build.
Going to break the rules a bit here and mark this as signed off because it's needed for package builds.
Created attachment 33015 [details] [review] [PASSED QA] Bug 13172 t/Koha_Email.t was database dependent To test 1/ Stop your database server 2/ run t/Koha_Email.t 3/ Notice the errors 4/ Apply patch 5/ run t/Koha_Email.t again 6/ No errors (Don't forget to restart your db server after) Signed-off-by: Robin Sheat <robin@catalyst.net.nz> Verified that it fixes a package build. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, tests pass now without database connection.
Patch pushed to master. Thanks Chris!