mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 09:10:05 +00:00
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:
parent
6626222029
commit
11421eab59
|
@ -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]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue