phpunit: Avoid hardcoding exact mw-parser-output class attribute

Needed by Ib130a055e46764544af0f1a46d2bc2b3a7ee85b7.

Bug: T341244
Change-Id: Icd9c079f5896ee83d86b9c2699636dc81d25a14c
This commit is contained in:
Timo Tijhof 2023-10-19 19:01:33 -07:00
parent 5144912045
commit 09438fd015

View file

@ -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 ) {