allow unit tests to pass
This commit is contained in:
parent
f4000150fa
commit
2a162d075c
|
@ -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;
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue