Lines 174-179
SKIP:
Link Here
|
174 |
|
174 |
|
175 |
skip "C4::Koha can't \'GetDailyQuote\'!", 3 unless can_ok('C4::Koha','GetDailyQuote'); |
175 |
skip "C4::Koha can't \'GetDailyQuote\'!", 3 unless can_ok('C4::Koha','GetDailyQuote'); |
176 |
|
176 |
|
|
|
177 |
# Fill the quote table with the default needed and a spare |
178 |
$dbh->do("DELETE FROM quotes WHERE id=3 OR id=25;"); |
179 |
my $sql = "INSERT INTO quotes (id,source,text,timestamp) VALUES |
180 |
(25,'Richard Nixon','When the President does it, that means that it is not illegal.','0000-00-00 00:00:00'), |
181 |
(3,'Abraham Lincoln','Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.','0000-00-00 00:00:00');"; |
182 |
$dbh->do($sql); |
183 |
|
177 |
my $expected_quote = { |
184 |
my $expected_quote = { |
178 |
id => 3, |
185 |
id => 3, |
179 |
source => 'Abraham Lincoln', |
186 |
source => 'Abraham Lincoln', |
180 |
- |
|
|