dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09781f
)
Remove redundant comment-stripping in OutputPageTest
author
Timo Tijhof
<krinklemail@gmail.com>
Fri, 21 Aug 2015 14:52:09 +0000
(16:52 +0200)
committer
Timo Tijhof
<krinklemail@gmail.com>
Fri, 21 Aug 2015 14:52:09 +0000
(16:52 +0200)
Follows-up
471a3bfb3d
which removed the cacheReport from the output.
Change-Id: I3eb701cf5cd5a46f2f9aed23cb830347d999043e
tests/phpunit/includes/OutputPageTest.php
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/OutputPageTest.php
b/tests/phpunit/includes/OutputPageTest.php
index
85c2220
..
8c8b8b2
100644
(file)
--- a/
tests/phpunit/includes/OutputPageTest.php
+++ b/
tests/phpunit/includes/OutputPageTest.php
@@
-256,8
+256,7
@@
class OutputPageTest extends MediaWikiTestCase {
) ),
) );
$links = $method->invokeArgs( $out, $args );
- // Strip comments to avoid variation due to wgDBname in WikiID and cache key
- $actualHtml = preg_replace( '#/\*[^*]+\*/#', '', implode( "\n", $links['html'] ) );
+ $actualHtml = implode( "\n", $links['html'] );
$this->assertEquals( $expectedHtml, $actualHtml );
}
}