Convert remaining data providers to static methods

Created on 19 February 2024, 9 months ago
Updated 1 May 2024, 7 months ago

Problem/Motivation

Follow up to #3353210-30: [PHPUnit 10] @dataProvider methods must be declared static and public โ†’ .

List of remaining data providers that use mocks/prophecies to be converted:

  • ๐Ÿ“Œ Change @dataprovider to static in SqlContentEntityStorageSchemaTest Needs work
  • ๐Ÿ“Œ Change @dataprovider to static in CallableResolverTest Downport
  • Drupal\Tests\olivero\Unit\OliveroHexToHslTest::hexCodes()
  • Drupal\Tests\Core\Render\ElementTest::dataProviderIsRenderArray()
  • Drupal\Tests\Core\Render\RendererTest::providerTestRenderBasic()
  • Drupal\Tests\Core\Session\SuperUserAccessPolicyTest::calculatePermissionsProvider()
  • Drupal\Tests\Core\Session\SuperUserAccessPolicyTest::alterPermissionsProvider()
  • Drupal\Tests\Core\Session\UserRolesAccessPolicyTest::calculatePermissionsProvider()
  • Drupal\Tests\views\Unit\Plugin\views\filter\NumericFilterTest::provideAcceptExposedInput()
  • Drupal\Tests\update\Kernel\UpdateCalculateProjectDataTest::providerProjectStatus()
๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
PHPUnitย  โ†’

Last updated about 22 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024