Bug 22908: (RMaint follow-up) Correction for tests
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 31 May 2019 06:19:05 +0000 (07:19 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 31 May 2019 06:21:34 +0000 (07:21 +0100)
18.11.x series does not contain bug 21241 and as such the tests for it
are not required. This patch removes those tests but leaves the tests
for 22908 intact.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Suggestions.t

index a82a88f..d7971bd 100644 (file)
@@ -197,11 +197,8 @@ is( @$messages, 1, 'ModSuggestion sends an email if the status is updated' );
 
 is( CountSuggestion('CHECKED'), 1, 'CountSuggestion returns the correct number of suggestions' );
 
-
-$mod_suggestion4->{manageddate} = 'invalid date!';
-ModSuggestion($mod_suggestion4);
 $messages = C4::Letters::GetQueuedMessages({
-    borrowernumber => $borrowernumber2
+    borrowernumber => $borrowernumber
 });
 is (scalar(@$messages), 1, 'No new letter should have been generated if the update raised an error');