allow unit tests to pass

This commit is contained in:
El RIDO 2022-10-23 09:12:31 +02:00
parent f4000150fa
commit 2a162d075c
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,9 @@ if (empty($ERROR)) :
<?php <?php
else: else:
?> ?>
<p><?php echo I18n::_('Could not create paste: %s', $ERROR); ?></p> <div id="errormessage">
<p><?php echo I18n::_('Could not create paste: %s', $ERROR); ?></p>
</div>
<?php <?php
endif; endif;
?> ?>

View File

@ -106,6 +106,10 @@ class ViewTest extends PHPUnit_Framework_TestCase
$content, $content,
$template . ': outputs error correctly' $template . ': outputs error correctly'
); );
if ($template === 'yourlsproxy') {
// yourlsproxy template only displays error message
continue;
}
$this->assertRegExp( $this->assertRegExp(
'#<[^>]+id="password"[^>]*>#', '#<[^>]+id="password"[^>]*>#',
$content, $content,