Update for deprecations in PHPUnit

"Using assertContains() with string haystacks is
deprecated and will not be supported in PHPUnit 9.
Refactor your test to use assertStringContainsString()
or assertStringContainsStringIgnoringCase() instead."

Change-Id: I88df8a91660eb332a0ec87070eff31cfcf8c4955
This commit is contained in:
Bartosz Dziewoński 2020-07-09 17:00:27 +02:00
parent 6626222029
commit 11421eab59

View file

@ -37,10 +37,10 @@ class SpecialLintErrorsTest extends \SpecialPageTestBase {
// Basic
$html = $this->executeSpecialPage( '', null, 'qqx' )[0];
$this->assertContains( '(linterrors-summary)', $html );
$this->assertContains( "(linter-category-$category)", $html );
$this->assertStringContainsString( '(linterrors-summary)', $html );
$this->assertStringContainsString( "(linter-category-$category)", $html );
$this->assertContains(
$this->assertStringContainsString(
"(linter-category-$category-desc)",
$this->executeSpecialPage( $category, null, 'qqx' )[0]
);