mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
phpunit: Avoid hardcoding exact mw-parser-output class attribute
Needed by Ib130a055e46764544af0f1a46d2bc2b3a7ee85b7. Bug: T341244 Change-Id: Icd9c079f5896ee83d86b9c2699636dc81d25a14c
This commit is contained in:
parent
5144912045
commit
09438fd015
|
@ -120,7 +120,7 @@ class ActionVariablesIntegrationTest extends ApiTestCase {
|
|||
$actual = $export[$var];
|
||||
if ( $var === 'new_html' && is_array( $value ) ) {
|
||||
// Special case for new_html: avoid flaky tests, and only check containment
|
||||
$this->assertStringContainsString( '<div class="mw-parser-output', $actual );
|
||||
$this->assertStringContainsString( 'mw-parser-output', $actual );
|
||||
$this->assertDoesNotMatchRegularExpression( "/<!--\s*NewPP limit/", $actual );
|
||||
$this->assertDoesNotMatchRegularExpression( "/<!--\s*Transclusion/", $actual );
|
||||
foreach ( $value as $needle ) {
|
||||
|
|
Loading…
Reference in a new issue