Page MenuHomePhabricator

Make EntityMetaTagsCreatorTestCase's provideTestGetMetaTags dataProvider static
Open, Needs TriagePublic

Description

EntityMetaTagsCreatorTestCase is an abstract class, which defines an abstract, non-static dataProvider function: provideTestGetMetaTags

The class is extended in these files:

  • Wikibase/view/tests/phpunit/DefaultMetaTagsCreatorTest.php
  • Wikibase/view/tests/phpunit/FingerprintableEntityMetaTagsCreatorTest.php
  • WikibaseLexeme/tests/phpunit/mediawiki/View/LexemeMetaTagsCreatorTest.php

Since this change involves another repo (WikibaseLexeme), it should be done in its own set of commits across Wikibase and WikibaseLexeme

Event Timeline

Change #1094474 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/WikibaseLexeme@master] Temporarily skip `LexemeMetaTagsCreatorTest`

https://gerrit.wikimedia.org/r/1094474

Change #1094476 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] Make dataProviders static in EntityMetaTagsCreatorTestCase

https://gerrit.wikimedia.org/r/1094476

Change #1094481 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/WikibaseLexeme@master] Re-enable tests, make provideTestGetMetaTags static

https://gerrit.wikimedia.org/r/1094481