From d9401f9085cc43f89156a6b0ee8f5ffb5245b2a6 Mon Sep 17 00:00:00 2001 From: Ammarpad Date: Sat, 7 Dec 2024 13:41:48 +0100 Subject: [PATCH] tests: Remove unused private method Seems no longer in use since 595662 (If6b10b0ddcbd4b2) Change-Id: I0c20127820194f5875804a3a0e3f42d30585cd1c --- tests/phpunit/integration/SkinVectorTest.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/phpunit/integration/SkinVectorTest.php b/tests/phpunit/integration/SkinVectorTest.php index 605a839e7..9e84f68f9 100644 --- a/tests/phpunit/integration/SkinVectorTest.php +++ b/tests/phpunit/integration/SkinVectorTest.php @@ -34,25 +34,6 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase { return $template; } - /** - * @param string $nodeString an HTML of the node we want to verify - * @param string $tag Tag of the element we want to check - * @param string $attribute Attribute of the element we want to check - * @param string $search Value of the attribute we want to verify - * @return bool - */ - private function expectNodeAttribute( $nodeString, $tag, $attribute, $search ) { - $node = new \DOMDocument(); - $node->loadHTML( $nodeString ); - $element = $node->getElementsByTagName( $tag )->item( 0 ); - if ( !$element ) { - return false; - } - - $values = explode( ' ', $element->getAttribute( $attribute ) ); - return in_array( $search, $values ); - } - /** * @covers \MediaWiki\Skins\Vector\SkinVectorLegacy::getTemplateData */