Issue #3443515 by longwave: Change @dataprovider to static in MenuAccessControlHandlerTest

(cherry picked from commit 6b6e90e291)
merge-requests/7807/head
catch 2024-04-25 21:46:35 +01:00
parent 065714a29a
commit e01331efed
1 changed files with 2 additions and 3 deletions

View File

@ -337,7 +337,7 @@ class FieldPluginBaseTest extends UnitTestCase {
* @return array
* Test data.
*/
public function providerTestRenderAsLinkWithPathAndOptions() {
public static function providerTestRenderAsLinkWithPathAndOptions() {
$data = [];
// Simple path with default options.
$data[] = ['test-path', [], '<a href="/test-path">value</a>'];
@ -363,8 +363,7 @@ class FieldPluginBaseTest extends UnitTestCase {
// executed for paths which aren't routed.
// Entity flag.
$entity = $this->createMock('Drupal\Core\Entity\EntityInterface');
$data[] = ['test-path', ['entity' => $entity], '<a href="/test-path">value</a>'];
$data[] = ['test-path', ['entity' => new \stdClass()], '<a href="/test-path">value</a>'];
// entity_type flag.
$entity_type_id = 'node';
$data[] = ['test-path', ['entity_type' => $entity_type_id], '<a href="/test-path">value</a>'];