]> git.koha-community.org Git - koha.git/commit
bug 2088: test suite refactoring to deal with t/override_context_prefs.pm
authorAndrew Moore <andrew.moore@liblime.com>
Thu, 8 May 2008 13:10:37 +0000 (08:10 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 11 May 2008 11:48:40 +0000 (06:48 -0500)
commitdb755a4307ac09543b4e9e93347f5b319c030bc1
tree54fe6c2205633882abfcfc8aed1da9dfa1ef0c18
parentdf0fccdcbf619b7ebe9c00a7696415d100e6f116
bug 2088: test suite refactoring to deal with t/override_context_prefs.pm

Some minor changes to get the test suite working a bit better:
I removed a superfluous method from t/lib/KohaTest.pm.
I made each barcode for the items added in KohaTest.pm unique so that they would actually get inserted.

Then, I removed t/override_context_prefs.pm. If you need that functionality, you're a database
dependent test and should be a module in t/lib.
So, I deleted all of the trivial .t tests that just 'use'd their modules and had no other
tests and replaced them with lib/KohaTest/*pm modules that do a little bit more checking
on those modules.
I removed the references to override_context_prefs.pm in all of the other .t modules.
They all pass now with no override_context_prefs.pm module.

The database_depenedent.pl test script still does not pass entirely. There's a problem with the zebra index
not being reset each time that the tables are truncated. I'll get to that.

no functional or documentation changes here.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
36 files changed:
t/Accounts.t [deleted file]
t/AuthoritiesMarc.t [deleted file]
t/Biblio.t [deleted file]
t/Breeding.t [deleted file]
t/Circulation.t [deleted file]
t/Date.t
t/Dates.t
t/Items.t
t/Letters.t [deleted file]
t/Log.t [deleted file]
t/Members.t [deleted file]
t/NewsChannels.t [deleted file]
t/Overdues.t [deleted file]
t/Print.t [deleted file]
t/Reserves.t [deleted file]
t/Search.t [deleted file]
t/Serials.t [deleted file]
t/Suggestions.t [deleted file]
t/Z3950.t [deleted file]
t/lib/KohaTest.pm
t/lib/KohaTest/Accounts.pm [new file with mode: 0644]
t/lib/KohaTest/AuthoritiesMarc.pm [new file with mode: 0644]
t/lib/KohaTest/Biblio.pm [new file with mode: 0644]
t/lib/KohaTest/Breeding.pm [new file with mode: 0644]
t/lib/KohaTest/Circulation.pm [new file with mode: 0644]
t/lib/KohaTest/Dates.pm [new file with mode: 0644]
t/lib/KohaTest/Log.pm [new file with mode: 0644]
t/lib/KohaTest/Members.pm [new file with mode: 0644]
t/lib/KohaTest/NewsChannels.pm [new file with mode: 0644]
t/lib/KohaTest/Overdues.pm [new file with mode: 0644]
t/lib/KohaTest/Print.pm [new file with mode: 0644]
t/lib/KohaTest/Reserves.pm [new file with mode: 0644]
t/lib/KohaTest/Serials.pm [new file with mode: 0644]
t/lib/KohaTest/Suggestions.pm [new file with mode: 0644]
t/lib/KohaTest/Z3950.pm [new file with mode: 0644]
t/override_context_prefs.pm [deleted file]