allow unit tests to pass
This commit is contained in:
parent
f4000150fa
commit
2a162d075c
2 changed files with 7 additions and 1 deletions
|
@ -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 a new issue