@@ -, +, @@ # Failed test 'Got a quote based on today's date.' # at t/db_dependent/Koha.t line 126. # Compared $data->{"source"} # got : 'Herbert Hoover' # expect : 'Abraham Lincoln' # Be sure to run this test on a clean install of sample data. # Looks like you failed 1 test of 4. --- t/db_dependent/Koha.t | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) --- a/t/db_dependent/Koha.t +++ a/t/db_dependent/Koha.t @@ -106,11 +106,6 @@ SKIP: cmp_deeply ($quote, $expected_quote, "Got a quote based on id.") or diag('Be sure to run this test on a clean install of sample data.'); -# test random quote retrieval - - $quote = GetDailyQuote('random'=>1); - ok ($quote, "Got a random quote."); - # test quote retrieval based on today's date my $query = 'UPDATE quotes SET timestamp = ? WHERE id = ?'; @@ -125,6 +120,11 @@ SKIP: $quote = GetDailyQuote(); # this is the "default" mode of selection cmp_deeply ($quote, $expected_quote, "Got a quote based on today's date.") or diag('Be sure to run this test on a clean install of sample data.'); + +# test random quote retrieval + + $quote = GetDailyQuote('random'=>1); + ok ($quote, "Got a random quote."); } }; } --