]> git.koha-community.org Git - koha.git/commit
Bug 7841: add unit tests to detect no functional changes to getTranslatedLanguages()
authorMark Tompsett <mtompset@hotmail.com>
Thu, 15 May 2014 03:38:12 +0000 (23:38 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 19 May 2014 16:38:57 +0000 (16:38 +0000)
commit5b898a09bb065c9c104b50fc3562d4310cda6819
treee6d06d31890a74c9592c2f7c779bba0c56f9d266
parentbafeb881c99142fd3abf507a3c5bcddd2c12932a
Bug 7841: add unit tests to detect no functional changes to getTranslatedLanguages()

When called with undef, floody messages appear in the error
logs. Less floody messages appear when using 'en' as the
language.  This patch adds tests to verify that the behavior of
getTranslatedLanguages() doesn't change when a subsequent
patch updates it to not generate the warnings.

TEST PLAN
---------
1) apply the patch
2) prove -v t/db_dependent/Languages.t
   -- All the tests should pass, including the last two which
      a) check that when undef is used no language is marked
          as current.
      b) check that when 'en' is used there is a language marked
          as current.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Test pass, no koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Languages.t