From 4ff3447c8c00887fe4f34f246c390542baa18c2a Mon Sep 17 00:00:00 2001
From: Andrew Nicols <andrew@nicols.co.uk>
Date: Fri, 6 Jan 2023 21:21:09 +0800
Subject: [PATCH] MDL-76362 question: Add test for number(null)

---
 question/engine/tests/question_engine_test.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/question/engine/tests/question_engine_test.php b/question/engine/tests/question_engine_test.php
index 3f6d433bf76..edb2aa9fcf8 100644
--- a/question/engine/tests/question_engine_test.php
+++ b/question/engine/tests/question_engine_test.php
@@ -319,6 +319,10 @@ class question_engine_test extends advanced_testcase {
                 '',
                 '',
             ],
+            'Test with null' => [
+                null,
+                '',
+            ],
             'Test with number is 0' => [
                 0,
                 '<h3 class="no">Question <span class="qno">0</span></h3>',