Protect variables in tests

Created on 31 December 2023, 11 months ago
Updated 14 January 2024, 10 months ago

Problem/Motivation

A drupal-rector scan reveals following errors:

\web\modules\contrib\rate\tests\src\Functional\RateWidgetTranslationTest.php:
LINE 17: Property Drupal\Tests\rate\Functional\RateWidgetTranslationTest::$modules property must be protected.
\web\modules\contrib\rate\tests\src\Kernel\RateTypeAccessTest.php:
LINE 28: Property Drupal\Tests\rate\Kernel\RateTypeAccessTest::$modules property must be protected.

Steps to reproduce

Run update_status scan on the rate module.

Proposed resolution

Set variables to protected.

Remaining tasks

Provide a patch.

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇦🇹Austria jordik

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

Comments & Activities

Production build 0.71.5 2024