diff --git a/tests/PhpSpreadsheetTests/Writer/Html/CallbackTest.php b/tests/PhpSpreadsheetTests/Writer/Html/CallbackTest.php
index f712419c..388dbd0e 100644
--- a/tests/PhpSpreadsheetTests/Writer/Html/CallbackTest.php
+++ b/tests/PhpSpreadsheetTests/Writer/Html/CallbackTest.php
@@ -33,7 +33,7 @@ EOF;
$html1 = $writer->generateHTMLall();
$writer->setEditHtmlCallback([$this, 'yellowBody']);
$html2 = $writer->generateHTMLall();
- $writer->resetEditHtmlCallback();
+ $writer->setEditHtmlCallback(null);
$html3 = $writer->generateHTMLall();
self::assertFalse(strpos($html1, 'background-color: yellow'));