]> git.koha-community.org Git - koha.git/commit
Bug 7567: (follow-up) make tests of get_opac_new more readable
authorGalen Charlton <gmc@esilibrary.com>
Mon, 7 Apr 2014 17:45:44 +0000 (17:45 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 7 Apr 2014 18:14:20 +0000 (18:14 +0000)
commitc3c07d93760afa4eada4ee7080f273d53990dcd8
tree5690bc8e1cd279c20ac26a0188dc60fe02bcac76
parentd49ae54b953b50ffdbf0635f995c4e8a796fdd01
Bug 7567: (follow-up) make tests of get_opac_new more readable

This patch updates two of the tests cases to directly compare
the results returned by get_opac_new with the expected value
by using is_deeply().  Consequently, it removes the use of magic
numbers (which do not stop being magic numbers if they're wrapped
in constants named F1, F2, etc.).

To test:

[1] Verify that prove -v t/db_dependent/NewsChannels.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/NewsChannels.t