]> BookStack Code Mirror - bookstack/blobdiff - tests/Unit/ConfigTest.php
feat(PageContent): set unique ids on nested headers
[bookstack] / tests / Unit / ConfigTest.php
index f45d201363294274588d2e2ad318b8f970714a61..207fb7f59e3865aa607a6a36dc66696f1c63f835 100644 (file)
@@ -76,6 +76,12 @@ class ConfigTest extends TestCase
         );
     }
 
+    public function test_dompdf_remote_fetching_controlled_by_allow_untrusted_server_fetching_false()
+    {
+        $this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'false', 'dompdf.defines.enable_remote', false);
+        $this->checkEnvConfigResult('ALLOW_UNTRUSTED_SERVER_FETCHING', 'true', 'dompdf.defines.enable_remote', true);
+    }
+
     /**
      * Set an environment variable of the given name and value
      * then check the given config key to see if it matches the given result.