]> BookStack Code Mirror - bookstack/blobdiff - tests/Unit/PageIncludeParserTest.php
Includes: Developed to get new system working with inline includes
[bookstack] / tests / Unit / PageIncludeParserTest.php
index de31504ff5976a1fde32dd080de447798d761882..d1912270eb4fc24865e516d2900d03eb4bebefdb 100644 (file)
@@ -37,7 +37,7 @@ class PageIncludeParserTest extends TestCase
     protected function runParserTest(string $html, array $contentById, string $expected)
     {
         $parser = new PageIncludeParser($html, function (int $id) use ($contentById) {
-            return $contentById[strval($id)] ?? null;
+            return $contentById[strval($id)] ?? '';
         });
 
         $result = $parser->parse();