From 2a162d075c962ea212d253811b4e19cc8fac6474 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 23 Oct 2022 09:12:31 +0200 Subject: [PATCH] allow unit tests to pass --- tpl/yourlsproxy.php | 4 +++- tst/ViewTest.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tpl/yourlsproxy.php b/tpl/yourlsproxy.php index c451c5a2..f642047d 100644 --- a/tpl/yourlsproxy.php +++ b/tpl/yourlsproxy.php @@ -17,7 +17,9 @@ if (empty($ERROR)) : -

+
+

+
diff --git a/tst/ViewTest.php b/tst/ViewTest.php index 1e4d9374..3e8a8aea 100644 --- a/tst/ViewTest.php +++ b/tst/ViewTest.php @@ -106,6 +106,10 @@ class ViewTest extends PHPUnit_Framework_TestCase $content, $template . ': outputs error correctly' ); + if ($template === 'yourlsproxy') { + // yourlsproxy template only displays error message + continue; + } $this->assertRegExp( '#<[^>]+id="password"[^>]*>#', $content,