ソースを参照

test: default value for email configuration item;nit necessary to close php comment
::by sergio giraldo
@ 20230910T0958CEST, gpg signed

Sergio Giraldo 2 年 前
コミット
6728053ab0
2 ファイル変更3 行追加4 行削除
  1. 2 4
      cfg/conf.sample.php
  2. 1 0
      tst/ViewTest.php

+ 2 - 4
cfg/conf.sample.php

@@ -1,5 +1,4 @@
-;<?php http_response_code(403); 
-/*
+;<?php http_response_code(403); /*
 ; config file for PrivateBin
 ;
 ; An explanation of each setting can be find online at https://github.com/PrivateBin/PrivateBin/wiki/Configuration.
@@ -263,5 +262,4 @@ dir = PATH "data"
 ; (optional) the "signature" (access key) issued by YOURLS for the using account
 ; signature = ""
 ; (optional) the URL of the YOURLS API, called to shorten a PrivateBin URL
-; apiurl = "https://yourls.example.com/yourls-api.php"
-*/
+; apiurl = "https://yourls.example.com/yourls-api.php"

+ 1 - 0
tst/ViewTest.php

@@ -58,6 +58,7 @@ class ViewTest extends TestCase
         $page->assign('EXPIREDEFAULT', self::$expire_default);
         $page->assign('URLSHORTENER', '');
         $page->assign('QRCODE', true);
+        $page->assign('EMAIL', true);
         $page->assign('HTTPWARNING', true);
         $page->assign('HTTPSLINK', 'https://example.com/');
         $page->assign('COMPRESSION', 'zlib');