$modules should be protected. This was true in D8 (and D7 for that matter) but will now be enforced in D9 since $modules is now a protected property in tests

Likewise, setUp() should be protected. One of the tests does this, the other does not. See https://api.drupal.org/api/drupal/core%21tests%21Drupal%21Tests%21Browse...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TR created an issue. See original summary.

TR’s picture

  • vuil committed 83840a7 on 8.x-1.x authored by TR
    Issue #3135325 by TR: Fix member visibility in tests
    
vuil’s picture

Status: Needs review » Fixed

Thank you!

I set the issue status as Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.