Issue #2814035 by klausi, dawehner: Make $modules property protected on BrowserTestBase and KernelTestBase (cherry picked from commit b33af7a9)