mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
allow unit tests to pass
This commit is contained in:
parent
f4000150fa
commit
2a162d075c
@ -17,7 +17,9 @@ if (empty($ERROR)) :
|
||||
<?php
|
||||
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
|
||||
endif;
|
||||
?>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user