diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index b13d3db..36ed0f6 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -20,6 +20,13 @@
 class UrlGenerator implements UrlGeneratorInterface {
 
   /**
+   * The route provider.
+   *
+   * @var \Drupal\Core\Routing\RouteProviderInterface
+   */
+  protected $provider;
+
+  /**
    * @var RequestContext
    */
   protected $context;
diff --git a/core/modules/action/tests/src/Functional/ConfigurationTest.php b/core/modules/action/tests/src/Functional/ConfigurationTest.php
index 23d0a38..0cbaa16 100644
--- a/core/modules/action/tests/src/Functional/ConfigurationTest.php
+++ b/core/modules/action/tests/src/Functional/ConfigurationTest.php
@@ -24,7 +24,7 @@ class ConfigurationTest extends BrowserTestBase {
   /**
    * Tests configuration of advanced actions through administration interface.
    */
-  function testActionConfiguration() {
+  public function testActionConfiguration() {
     // Create a user with permission to view the actions administration pages.
     $user = $this->drupalCreateUser(array('administer actions'));
     $this->drupalLogin($user);
diff --git a/core/modules/aggregator/src/Tests/AggregatorAdminTest.php b/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
index 487e0ef..654558d 100644
--- a/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
+++ b/core/modules/aggregator/src/Tests/AggregatorAdminTest.php
@@ -59,7 +59,7 @@ public function testSettingsPage() {
   /**
    * Tests the overview page.
    */
-  function testOverviewPage() {
+  public function testOverviewPage() {
     $feed = $this->createFeed($this->getRSS091Sample());
     $this->drupalGet('admin/config/services/aggregator');
 
diff --git a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
index 9738915..cb60142 100644
--- a/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
+++ b/core/modules/ban/tests/src/Functional/IpAddressBlockingTest.php
@@ -23,7 +23,7 @@ class IpAddressBlockingTest extends BrowserTestBase {
   /**
    * Tests various user input to confirm correct validation and saving of data.
    */
-  function testIPAddressValidation() {
+  public function testIPAddressValidation() {
     // Create user.
     $admin_user = $this->drupalCreateUser(array('ban IP addresses'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php b/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
index 22bb9ca..ca41a32 100644
--- a/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
+++ b/core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
@@ -75,7 +75,7 @@ public function testBasicAuth() {
   /**
    * Test the global login flood control.
    */
-  function testGlobalLoginFloodControl() {
+  public function testGlobalLoginFloodControl() {
     $this->config('user.flood')
       ->set('ip_limit', 2)
       // Set a high per-user limit out so that it is not relevant in the test.
@@ -100,7 +100,7 @@ function testGlobalLoginFloodControl() {
   /**
    * Test the per-user login flood control.
    */
-  function testPerUserLoginFloodControl() {
+  public function testPerUserLoginFloodControl() {
     $this->config('user.flood')
       // Set a high global limit out so that it is not relevant in the test.
       ->set('ip_limit', 4000)
@@ -138,7 +138,7 @@ function testPerUserLoginFloodControl() {
   /**
    * Tests compatibility with locale/UI translation.
    */
-  function testLocale() {
+  public function testLocale() {
     ConfigurableLanguage::createFromLangcode('de')->save();
     $this->config('system.site')->set('default_langcode', 'de')->save();
 
@@ -154,7 +154,7 @@ function testLocale() {
   /**
    * Tests if a comprehensive message is displayed when the route is denied.
    */
-  function testUnauthorizedErrorMessage() {
+  public function testUnauthorizedErrorMessage() {
     $account = $this->drupalCreateUser();
     $url = Url::fromRoute('router_test.11');
 
diff --git a/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php b/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
index 516aeb4..8b3c9c2 100644
--- a/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
+++ b/core/modules/big_pipe/src/EventSubscriber/NoBigPipeRouteAlterSubscriber.php
@@ -40,7 +40,7 @@ public function onRoutingRouteAlterSetNoBigPipe(RouteBuildEvent $event) {
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[RoutingEvents::ALTER][] = ['onRoutingRouteAlterSetNoBigPipe'];
     return $events;
   }
diff --git a/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php b/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
index 9123129..7143c25 100644
--- a/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
+++ b/core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
@@ -38,7 +38,7 @@ public function testNonHtmlResponse($response_class) {
     $big_pipe_response_attachments_processor->processAttachments($non_html_response);
   }
 
-  function nonHtmlResponseProvider() {
+  public function nonHtmlResponseProvider() {
     return [
       'AjaxResponse, which implements AttachmentsInterface' => [AjaxResponse::class],
       'A dummy that implements AttachmentsInterface' => [get_class($this->prophesize(AttachmentsInterface::class)->reveal())],
diff --git a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
index 2c85587..c67b379 100644
--- a/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
+++ b/core/modules/block/src/EventSubscriber/BlockPageDisplayVariantSubscriber.php
@@ -26,7 +26,7 @@ public function onSelectPageDisplayVariant(PageDisplayVariantSelectionEvent $eve
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = array('onSelectPageDisplayVariant');
     return $events;
   }
diff --git a/core/modules/block/src/Tests/BlockAdminThemeTest.php b/core/modules/block/src/Tests/BlockAdminThemeTest.php
index ab444d5..600fa05 100644
--- a/core/modules/block/src/Tests/BlockAdminThemeTest.php
+++ b/core/modules/block/src/Tests/BlockAdminThemeTest.php
@@ -21,7 +21,7 @@ class BlockAdminThemeTest extends WebTestBase {
   /**
    * Check for the accessibility of the admin theme on the block admin page.
    */
-  function testAdminTheme() {
+  public function testAdminTheme() {
     // Create administrative user.
     $admin_user = $this->drupalCreateUser(array('administer blocks', 'administer themes'));
     $this->drupalLogin($admin_user);
@@ -42,7 +42,7 @@ function testAdminTheme() {
   /**
    * Ensure contextual links are disabled in Seven theme.
    */
-  function testSevenAdminTheme() {
+  public function testSevenAdminTheme() {
     // Create administrative user.
     $admin_user = $this->drupalCreateUser([
       'access administration pages',
diff --git a/core/modules/block/src/Tests/BlockCacheTest.php b/core/modules/block/src/Tests/BlockCacheTest.php
index 8988580..08301d6 100644
--- a/core/modules/block/src/Tests/BlockCacheTest.php
+++ b/core/modules/block/src/Tests/BlockCacheTest.php
@@ -69,7 +69,7 @@ protected function setUp() {
   /**
    * Test "user.roles" cache context.
    */
-  function testCachePerRole() {
+  public function testCachePerRole() {
     \Drupal::state()->set('block_test.cache_contexts', ['user.roles']);
 
     // Enable our test block. Set some content for it to display.
@@ -116,7 +116,7 @@ function testCachePerRole() {
   /**
    * Test a cacheable block without any additional cache context.
    */
-  function testCachePermissions() {
+  public function testCachePermissions() {
     // user.permissions is a required context, so a user with different
     // permissions will see a different version of the block.
     \Drupal::state()->set('block_test.cache_contexts', []);
@@ -142,7 +142,7 @@ function testCachePermissions() {
   /**
    * Test non-cacheable block.
    */
-  function testNoCache() {
+  public function testNoCache() {
     \Drupal::state()->set('block_test.cache_max_age', 0);
 
     $current_content = $this->randomMachineName();
@@ -162,7 +162,7 @@ function testNoCache() {
   /**
    * Test "user" cache context.
    */
-  function testCachePerUser() {
+  public function testCachePerUser() {
     \Drupal::state()->set('block_test.cache_contexts', ['user']);
 
     $current_content = $this->randomMachineName();
@@ -191,7 +191,7 @@ function testCachePerUser() {
   /**
    * Test "url" cache context.
    */
-  function testCachePerPage() {
+  public function testCachePerPage() {
     \Drupal::state()->set('block_test.cache_contexts', ['url']);
 
     $current_content = $this->randomMachineName();
diff --git a/core/modules/block/src/Tests/BlockFormInBlockTest.php b/core/modules/block/src/Tests/BlockFormInBlockTest.php
index 20d24b2..7f15720 100644
--- a/core/modules/block/src/Tests/BlockFormInBlockTest.php
+++ b/core/modules/block/src/Tests/BlockFormInBlockTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Test to see if form in block's redirect isn't cached.
    */
-  function testCachePerPage() {
+  public function testCachePerPage() {
     $form_values = ['email' => 'test@example.com'];
 
     // Go to "test-page" and test if the block is enabled.
diff --git a/core/modules/block/src/Tests/BlockHtmlTest.php b/core/modules/block/src/Tests/BlockHtmlTest.php
index baf5d4b..6d722c9 100644
--- a/core/modules/block/src/Tests/BlockHtmlTest.php
+++ b/core/modules/block/src/Tests/BlockHtmlTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
   /**
    * Tests for valid HTML for a block.
    */
-  function testHtml() {
+  public function testHtml() {
     $this->drupalGet('');
 
     // Ensure that a block's ID is converted to an HTML valid ID, and that
diff --git a/core/modules/block/src/Tests/BlockInvalidRegionTest.php b/core/modules/block/src/Tests/BlockInvalidRegionTest.php
index 99ef06d..ad49bf2 100644
--- a/core/modules/block/src/Tests/BlockInvalidRegionTest.php
+++ b/core/modules/block/src/Tests/BlockInvalidRegionTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests that blocks assigned to invalid regions work correctly.
    */
-  function testBlockInInvalidRegion() {
+  public function testBlockInInvalidRegion() {
     // Enable a test block and place it in an invalid region.
     $block = $this->drupalPlaceBlock('test_html');
     \Drupal::configFactory()->getEditable('block.block.' . $block->id())->set('region', 'invalid_region')->save();
diff --git a/core/modules/block/src/Tests/BlockRenderOrderTest.php b/core/modules/block/src/Tests/BlockRenderOrderTest.php
index faf667e..de26292 100644
--- a/core/modules/block/src/Tests/BlockRenderOrderTest.php
+++ b/core/modules/block/src/Tests/BlockRenderOrderTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Tests the render order of the blocks.
    */
-  function testBlockRenderOrder() {
+  public function testBlockRenderOrder() {
     // Enable test blocks and place them in the same region.
     $region = 'header';
     $test_blocks = array(
diff --git a/core/modules/block/src/Tests/BlockTemplateSuggestionsTest.php b/core/modules/block/src/Tests/BlockTemplateSuggestionsTest.php
index d5ce8e6..26a3c0b 100644
--- a/core/modules/block/src/Tests/BlockTemplateSuggestionsTest.php
+++ b/core/modules/block/src/Tests/BlockTemplateSuggestionsTest.php
@@ -22,7 +22,7 @@ class BlockTemplateSuggestionsTest extends WebTestBase {
   /**
    * Tests template suggestions from block_theme_suggestions_block().
    */
-  function testBlockThemeHookSuggestions() {
+  public function testBlockThemeHookSuggestions() {
     // Define a block with a derivative to be preprocessed, which includes both
     // an underscore (not transformed) and a hyphen (transformed to underscore),
     // and generates possibilities for each level of derivative.
diff --git a/core/modules/block/src/Tests/BlockTest.php b/core/modules/block/src/Tests/BlockTest.php
index b13a912..5d8f62a 100644
--- a/core/modules/block/src/Tests/BlockTest.php
+++ b/core/modules/block/src/Tests/BlockTest.php
@@ -18,7 +18,7 @@ class BlockTest extends BlockTestBase {
   /**
    * Tests block visibility.
    */
-  function testBlockVisibility() {
+  public function testBlockVisibility() {
     $block_name = 'system_powered_by_block';
     // Create a random title for the block.
     $title = $this->randomMachineName(8);
@@ -99,7 +99,7 @@ public function testBlockToggleVisibility() {
   /**
    * Test block visibility when leaving "pages" textarea empty.
    */
-  function testBlockVisibilityListedEmpty() {
+  public function testBlockVisibilityListedEmpty() {
     $block_name = 'system_powered_by_block';
     // Create a random title for the block.
     $title = $this->randomMachineName(8);
@@ -219,7 +219,7 @@ public function testAddBlockFromLibraryWithWeight() {
   /**
    * Test configuring and moving a module-define block to specific regions.
    */
-  function testBlock() {
+  public function testBlock() {
     // Place page title block to test error messages.
     $this->drupalPlaceBlock('page_title_block');
 
@@ -311,7 +311,7 @@ public function testBlockThemeSelector() {
   /**
    * Test block display of theme titles.
    */
-  function testThemeName() {
+  public function testThemeName() {
     // Enable the help block.
     $this->drupalPlaceBlock('help_block', array('region' => 'help'));
     $this->drupalPlaceBlock('local_tasks_block');
@@ -328,7 +328,7 @@ function testThemeName() {
   /**
    * Test block title display settings.
    */
-  function testHideBlockTitle() {
+  public function testHideBlockTitle() {
     $block_name = 'system_powered_by_block';
     // Create a random title for the block.
     $title = $this->randomMachineName(8);
@@ -371,7 +371,7 @@ function testHideBlockTitle() {
    *   The machine name of the theme region to move the block to, for example
    *   'header' or 'sidebar_first'.
    */
-  function moveBlockToRegion(array $block, $region) {
+  public function moveBlockToRegion(array $block, $region) {
     // Set the created block to a specific region.
     $block += array('theme' => $this->config('system.theme')->get('default'));
     $edit = array();
diff --git a/core/modules/block/src/Tests/BlockUiTest.php b/core/modules/block/src/Tests/BlockUiTest.php
index f2bcaae..b9457df 100644
--- a/core/modules/block/src/Tests/BlockUiTest.php
+++ b/core/modules/block/src/Tests/BlockUiTest.php
@@ -94,7 +94,7 @@ public function testBlockDemoUiPage() {
   /**
    * Test block admin page exists and functions correctly.
    */
-  function testBlockAdminUiPage() {
+  public function testBlockAdminUiPage() {
     // Visit the blocks admin ui.
     $this->drupalGet('admin/structure/block');
     // Look for the blocks table.
diff --git a/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php b/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
index 9442df5..aad7a8b 100644
--- a/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
+++ b/core/modules/block/src/Tests/NewDefaultThemeBlocksTest.php
@@ -21,7 +21,7 @@ class NewDefaultThemeBlocksTest extends WebTestBase {
   /**
    * Check the enabled Bartik blocks are correctly copied over.
    */
-  function testNewDefaultThemeBlocks() {
+  public function testNewDefaultThemeBlocks() {
     $default_theme = $this->config('system.theme')->get('default');
 
     // Add two instances of the user login block.
diff --git a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
index 218832d..191b571 100644
--- a/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
+++ b/core/modules/block/src/Tests/NonDefaultBlockAdminTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Test non-default theme admin.
    */
-  function testNonDefaultBlockAdmin() {
+  public function testNonDefaultBlockAdmin() {
     $admin_user = $this->drupalCreateUser(array('administer blocks', 'administer themes'));
     $this->drupalLogin($admin_user);
     $new_theme = 'bartik';
diff --git a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php b/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
index 5a46ddd..25e9f25 100644
--- a/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
+++ b/core/modules/block_content/src/Tests/Views/BlockContentFieldFilterTest.php
@@ -35,7 +35,7 @@ class BlockContentFieldFilterTest extends BlockContentTestBase {
   /**
    * {@inheritdoc}
    */
-  function setUp() {
+  public function setUp() {
     parent::setUp();
 
     // Add two new languages.
diff --git a/core/modules/book/src/Plugin/Block/BookNavigationBlock.php b/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
index 6967077..38aecc0 100644
--- a/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
+++ b/core/modules/book/src/Plugin/Block/BookNavigationBlock.php
@@ -93,7 +93,7 @@ public function defaultConfiguration() {
   /**
    * {@inheritdoc}
    */
-  function blockForm($form, FormStateInterface $form_state) {
+  public function blockForm($form, FormStateInterface $form_state) {
     $options = array(
       'all pages' => $this->t('Show block on all pages'),
       'book pages' => $this->t('Show block only on book pages'),
diff --git a/core/modules/book/src/Tests/BookTest.php b/core/modules/book/src/Tests/BookTest.php
index e5367a2..878ee80 100644
--- a/core/modules/book/src/Tests/BookTest.php
+++ b/core/modules/book/src/Tests/BookTest.php
@@ -80,7 +80,7 @@ protected function setUp() {
    *
    * @return \Drupal\node\NodeInterface[]
    */
-  function createBook() {
+  public function createBook() {
     // Create new book.
     $this->drupalLogin($this->bookAuthor);
 
@@ -151,7 +151,7 @@ public function testBookNavigationCacheContext() {
   /**
    * Tests saving the book outline on an empty book.
    */
-  function testEmptyBook() {
+  public function testEmptyBook() {
     // Create a new empty book.
     $this->drupalLogin($this->bookAuthor);
     $book = $this->createBookNode('new');
@@ -166,7 +166,7 @@ function testEmptyBook() {
   /**
    * Tests book functionality through node interfaces.
    */
-  function testBook() {
+  public function testBook() {
     // Create new book.
     $nodes = $this->createBook();
     $book = $this->book;
@@ -247,7 +247,7 @@ function testBook() {
    * @param array $breadcrumb
    *   The nodes that should be displayed in the breadcrumb.
    */
-  function checkBookNode(EntityInterface $node, $nodes, $previous = FALSE, $up = FALSE, $next = FALSE, array $breadcrumb) {
+  public function checkBookNode(EntityInterface $node, $nodes, $previous = FALSE, $up = FALSE, $next = FALSE, array $breadcrumb) {
     // $number does not use drupal_static as it should not be reset
     // since it uniquely identifies each call to checkBookNode().
     static $number = 0;
@@ -319,7 +319,7 @@ function checkBookNode(EntityInterface $node, $nodes, $previous = FALSE, $up = F
    * @return string
    *   A regular expression that locates sub-nodes of the outline.
    */
-  function generateOutlinePattern($nodes) {
+  public function generateOutlinePattern($nodes) {
     $outline = '';
     foreach ($nodes as $node) {
       $outline .= '(node\/' . $node->id() . ')(.*?)(' . $node->label() . ')(.*?)';
@@ -339,7 +339,7 @@ function generateOutlinePattern($nodes) {
    * @return \Drupal\node\NodeInterface
    *   The created node.
    */
-  function createBookNode($book_nid, $parent = NULL) {
+  public function createBookNode($book_nid, $parent = NULL) {
     // $number does not use drupal_static as it should not be reset
     // since it uniquely identifies each call to createBookNode().
     static $number = 0; // Used to ensure that when sorted nodes stay in same order.
@@ -373,7 +373,7 @@ function createBookNode($book_nid, $parent = NULL) {
   /**
    * Tests book export ("printer-friendly version") functionality.
    */
-  function testBookExport() {
+  public function testBookExport() {
     // Create a book.
     $nodes = $this->createBook();
 
@@ -418,7 +418,7 @@ function testBookExport() {
   /**
    * Tests the functionality of the book navigation block.
    */
-  function testBookNavigationBlock() {
+  public function testBookNavigationBlock() {
     $this->drupalLogin($this->adminUser);
 
     // Enable the block.
@@ -495,7 +495,7 @@ public function testGetTableOfContents() {
   /**
    * Tests the book navigation block when an access module is installed.
    */
-  function testNavigationBlockOnAccessModuleInstalled() {
+  public function testNavigationBlockOnAccessModuleInstalled() {
     $this->drupalLogin($this->adminUser);
     $block = $this->drupalPlaceBlock('book_navigation', array('block_mode' => 'book pages'));
 
@@ -526,7 +526,7 @@ function testNavigationBlockOnAccessModuleInstalled() {
   /**
    * Tests the access for deleting top-level book nodes.
    */
-  function testBookDelete() {
+  public function testBookDelete() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $nodes = $this->createBook();
     $this->drupalLogin($this->adminUser);
diff --git a/core/modules/ckeditor/src/CKEditorPluginBase.php b/core/modules/ckeditor/src/CKEditorPluginBase.php
index 2fb4798..c0f1c3c 100644
--- a/core/modules/ckeditor/src/CKEditorPluginBase.php
+++ b/core/modules/ckeditor/src/CKEditorPluginBase.php
@@ -33,21 +33,21 @@
   /**
    * {@inheritdoc}
    */
-  function isInternal() {
+  public function isInternal() {
     return FALSE;
   }
 
   /**
    * {@inheritdoc}
    */
-  function getDependencies(Editor $editor) {
+  public function getDependencies(Editor $editor) {
     return array();
   }
 
   /**
    * {@inheritdoc}
    */
-  function getLibraries(Editor $editor) {
+  public function getLibraries(Editor $editor) {
     return array();
   }
 
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
index 8529adb..8607029 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
@@ -79,7 +79,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
    * @see \Drupal\editor\Form\EditorImageDialog
    * @see editor_image_upload_settings_form()
    */
-  function validateImageUploadSettings(array $element, FormStateInterface $form_state) {
+  public function validateImageUploadSettings(array $element, FormStateInterface $form_state) {
     $settings = &$form_state->getValue(array('editor', 'settings', 'plugins', 'drupalimage', 'image_upload'));
     $form_state->get('editor')->setImageUploadSettings($settings);
     $form_state->unsetValue(array('editor', 'settings', 'plugins', 'drupalimage'));
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
index 16c3759..f591978 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
@@ -77,7 +77,7 @@ public function getCssFiles(Editor $editor) {
   /**
    * {@inheritdoc}
    */
-  function isEnabled(Editor $editor) {
+  public function isEnabled(Editor $editor) {
     if (!$editor->hasAssociatedFilterFormat()) {
       return FALSE;
     }
diff --git a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
index 145f741..5405bcf 100644
--- a/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
+++ b/core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
@@ -127,7 +127,7 @@ public function settingsForm(array $form, FormStateInterface $form_state, Editor
   /**
    * {@inheritdoc}
    */
-  function getCssFiles(Editor $editor) {
+  public function getCssFiles(Editor $editor) {
     return array(
         drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css'
     );
diff --git a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
index d10180d..9eeac18 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorAdminTest.php
@@ -48,7 +48,7 @@ protected function setUp() {
   /**
    * Tests configuring a text editor for an existing text format.
    */
-  function testExistingFormat() {
+  public function testExistingFormat() {
     $ckeditor = $this->container->get('plugin.manager.editor')->createInstance('ckeditor');
 
     $this->drupalLogin($this->adminUser);
@@ -222,7 +222,7 @@ function testExistingFormat() {
    * This test only needs to ensure that the basics of the CKEditor
    * configuration form work; details are tested in testExistingFormat().
    */
-  function testNewFormat() {
+  public function testNewFormat() {
     $this->drupalLogin($this->adminUser);
     $this->drupalGet('admin/config/content/formats/add');
 
diff --git a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
index 6efe647..51dbbcd 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorLoadingTest.php
@@ -74,7 +74,7 @@ protected function setUp() {
   /**
    * Tests loading of CKEditor CSS, JS and JS settings.
    */
-  function testLoading() {
+  public function testLoading() {
     // The untrusted user:
     // - has access to 1 text format (plain_text);
     // - doesn't have access to the filtered_html text format, so: no text editor.
@@ -197,7 +197,7 @@ protected function testLoadingWithoutInternalButtons() {
   /**
    * Tests loading of theme's CKEditor stylesheets defined in the .info file.
    */
-  function testExternalStylesheets() {
+  public function testExternalStylesheets() {
     $theme_handler = \Drupal::service('theme_handler');
     // Case 1: Install theme which has an absolute external CSS URL.
     $theme_handler->install(['test_ckeditor_stylesheets_external']);
diff --git a/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php b/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
index d70980e..1a2f767 100644
--- a/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
+++ b/core/modules/ckeditor/src/Tests/CKEditorStylesComboAdminTest.php
@@ -59,7 +59,7 @@ protected function setUp() {
   /**
    * Tests StylesCombo settings for an existing text format.
    */
-  function testExistingFormat() {
+  public function testExistingFormat() {
     $ckeditor = $this->container->get('plugin.manager.editor')->createInstance('ckeditor');
     $default_settings = $ckeditor->getDefaultSettings();
 
diff --git a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
index 3711a54..716838b 100644
--- a/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+++ b/core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
@@ -68,7 +68,7 @@ protected function setUp() {
   /**
    * Tests CKEditor::getJSSettings().
    */
-  function testGetJSSettings() {
+  public function testGetJSSettings() {
     $editor = Editor::load('filtered_html');
 
     // Default toolbar.
@@ -216,7 +216,7 @@ function testGetJSSettings() {
   /**
    * Tests CKEditor::buildToolbarJSSetting().
    */
-  function testBuildToolbarJSSetting() {
+  public function testBuildToolbarJSSetting() {
     $editor = Editor::load('filtered_html');
 
     // Default toolbar.
@@ -247,7 +247,7 @@ function testBuildToolbarJSSetting() {
   /**
    * Tests CKEditor::buildContentsCssJSSetting().
    */
-  function testBuildContentsCssJSSetting() {
+  public function testBuildContentsCssJSSetting() {
     $editor = Editor::load('filtered_html');
 
     // Default toolbar.
@@ -284,7 +284,7 @@ function testBuildContentsCssJSSetting() {
   /**
    * Tests Internal::getConfig().
    */
-  function testInternalGetConfig() {
+  public function testInternalGetConfig() {
     $editor = Editor::load('filtered_html');
     $internal_plugin = $this->container->get('plugin.manager.ckeditor.plugin')->createInstance('internal');
 
@@ -305,7 +305,7 @@ function testInternalGetConfig() {
   /**
    * Tests StylesCombo::getConfig().
    */
-  function testStylesComboGetConfig() {
+  public function testStylesComboGetConfig() {
     $editor = Editor::load('filtered_html');
     $stylescombo_plugin = $this->container->get('plugin.manager.ckeditor.plugin')->createInstance('stylescombo');
 
@@ -364,7 +364,7 @@ function testStylesComboGetConfig() {
   /**
    * Tests language list availability in CKEditor.
    */
-  function testLanguages() {
+  public function testLanguages() {
     // Get CKEditor supported language codes and spot-check.
     $this->enableModules(array('language'));
     $this->installConfig(array('language'));
@@ -389,7 +389,7 @@ function testLanguages() {
   /**
    * Tests that CKEditor plugins participate in JS translation.
    */
-  function testJSTranslation() {
+  public function testJSTranslation() {
     $this->enableModules(array('language', 'locale'));
     $this->installSchema('locale', 'locales_source');
     $this->installSchema('locale', 'locales_location');
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
index 932b05c..b7567f4 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/Llama.php
@@ -29,28 +29,28 @@ class Llama extends PluginBase implements CKEditorPluginInterface {
   /**
    * {@inheritdoc}
    */
-  function getDependencies(Editor $editor) {
+  public function getDependencies(Editor $editor) {
     return array();
   }
 
   /**
    * {@inheritdoc}
    */
-  function getLibraries(Editor $editor) {
+  public function getLibraries(Editor $editor) {
     return array();
   }
 
   /**
    * {@inheritdoc}
    */
-  function isInternal() {
+  public function isInternal() {
     return FALSE;
   }
 
   /**
    * {@inheritdoc}
    */
-  function getFile() {
+  public function getFile() {
     return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
   }
 
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
index 7520dfd..b43d8cf 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
@@ -17,7 +17,7 @@ class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
   /**
    * {@inheritdoc}
    */
-  function getButtons() {
+  public function getButtons() {
     return array(
       'Llama' => array(
         'label' => t('Insert Llama'),
@@ -28,7 +28,7 @@ function getButtons() {
   /**
    * {@inheritdoc}
    */
-  function getFile() {
+  public function getFile() {
     return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';
   }
 
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
index 01cb992..5ece17a 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextual.php
@@ -18,7 +18,7 @@ class LlamaContextual extends Llama implements CKEditorPluginContextualInterface
   /**
    * {@inheritdoc}
    */
-  function isEnabled(Editor $editor) {
+  public function isEnabled(Editor $editor) {
     // Automatically enable this plugin if the Underline button is enabled.
     $settings = $editor->getSettings();
     foreach ($settings['toolbar']['rows'] as $row) {
@@ -34,7 +34,7 @@ function isEnabled(Editor $editor) {
   /**
    * {@inheritdoc}
    */
-  function getFile() {
+  public function getFile() {
     return drupal_get_path('module', 'ckeditor_test') . '/js/llama_contextual.js';
   }
 
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
index 43060d9..8dc9e62 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
@@ -22,7 +22,7 @@ class LlamaContextualAndButton extends Llama implements CKEditorPluginContextual
   /**
    * {@inheritdoc}
    */
-  function isEnabled(Editor $editor) {
+  public function isEnabled(Editor $editor) {
     // Automatically enable this plugin if the Strike button is enabled.
     $settings = $editor->getSettings();
     foreach ($settings['toolbar']['rows'] as $row) {
@@ -38,7 +38,7 @@ function isEnabled(Editor $editor) {
   /**
    * {@inheritdoc}
    */
-  function getButtons() {
+  public function getButtons() {
     return array(
       'Llama' => array(
         'label' => t('Insert Llama'),
@@ -49,14 +49,14 @@ function getButtons() {
   /**
    * {@inheritdoc}
    */
-  function getFile() {
+  public function getFile() {
     return drupal_get_path('module', 'ckeditor_test') . '/js/llama_contextual_and_button.js';
   }
 
   /**
    * {@inheritdoc}
    */
-  function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
+  public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
     // Defaults.
     $config = array('ultra_llama_mode' => FALSE);
     $settings = $editor->getSettings();
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
index 294b39c..83df207 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
@@ -19,7 +19,7 @@ class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditor
   /**
    * {@inheritdoc}
    */
-  function getButtons() {
+  public function getButtons() {
     return array(
       'LlamaCSS' => array(
         'label' => t('Insert Llama CSS'),
@@ -30,7 +30,7 @@ function getButtons() {
   /**
    * {@inheritdoc}
    */
-  function getCssFiles(Editor $editor) {
+  public function getCssFiles(Editor $editor) {
     return array(
       drupal_get_path('module', 'ckeditor_test') . '/css/llama.css'
     );
@@ -39,7 +39,7 @@ function getCssFiles(Editor $editor) {
   /**
    * {@inheritdoc}
    */
-  function getFile() {
+  public function getFile() {
     return drupal_get_path('module', 'ckeditor_test') . '/js/llama_css.js';
   }
 
diff --git a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
index 157deb8..83696bb 100644
--- a/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
+++ b/core/modules/color/tests/src/Functional/ColorConfigSchemaTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
   /**
    * Tests whether the color config schema is valid.
    */
-  function testValidColorConfigSchema() {
+  public function testValidColorConfigSchema() {
     $settings_path = 'admin/appearance/settings/bartik';
     $edit['scheme'] = '';
     $edit['palette[bg]'] = '#123456';
diff --git a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
index e80202f..9f6914c 100644
--- a/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
+++ b/core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Ensures color preview.html is sanitized.
    */
-  function testColorPreview() {
+  public function testColorPreview() {
     // Install the color test theme.
     \Drupal::service('theme_handler')->install(['color_test_theme']);
     $this->drupalLogin($this->bigUser);
diff --git a/core/modules/color/tests/src/Functional/ColorTest.php b/core/modules/color/tests/src/Functional/ColorTest.php
index dc44566..47e1074 100644
--- a/core/modules/color/tests/src/Functional/ColorTest.php
+++ b/core/modules/color/tests/src/Functional/ColorTest.php
@@ -84,7 +84,7 @@ protected function setUp() {
   /**
    * Tests the Color module functionality.
    */
-  function testColor() {
+  public function testColor() {
     foreach ($this->themes as $theme => $test_values) {
       $this->_testColor($theme, $test_values);
     }
@@ -99,7 +99,7 @@ function testColor() {
    *   An associative array of test settings (i.e. 'Main background', 'Text
    *   color', 'Color set', etc) for the theme which being tested.
    */
-  function _testColor($theme, $test_values) {
+  public function _testColor($theme, $test_values) {
     $this->config('system.theme')
       ->set('default', $theme)
       ->save();
@@ -151,7 +151,7 @@ function _testColor($theme, $test_values) {
   /**
    * Tests whether the provided color is valid.
    */
-  function testValidColor() {
+  public function testValidColor() {
     $this->config('system.theme')
       ->set('default', 'bartik')
       ->save();
@@ -176,7 +176,7 @@ function testValidColor() {
   /**
    * Test whether the custom logo is used in the color preview.
    */
-  function testLogoSettingOverride() {
+  public function testLogoSettingOverride() {
     $this->drupalLogin($this->bigUser);
     $edit = array(
       'default_logo' => FALSE,
@@ -192,7 +192,7 @@ function testLogoSettingOverride() {
   /**
    * Test whether the scheme can be set, viewed anonymously and reset.
    */
-  function testOverrideAndResetScheme() {
+  public function testOverrideAndResetScheme() {
     $settings_path = 'admin/appearance/settings/bartik';
     $this->config('system.theme')
       ->set('default', 'bartik')
diff --git a/core/modules/comment/src/Tests/CommentActionsTest.php b/core/modules/comment/src/Tests/CommentActionsTest.php
index 220be20..992da8a 100644
--- a/core/modules/comment/src/Tests/CommentActionsTest.php
+++ b/core/modules/comment/src/Tests/CommentActionsTest.php
@@ -22,7 +22,7 @@ class CommentActionsTest extends CommentTestBase {
   /**
    * Tests comment publish and unpublish actions.
    */
-  function testCommentPublishUnpublishActions() {
+  public function testCommentPublishUnpublishActions() {
     $this->drupalLogin($this->webUser);
     $comment_text = $this->randomMachineName();
     $subject = $this->randomMachineName();
@@ -42,7 +42,7 @@ function testCommentPublishUnpublishActions() {
   /**
    * Tests the unpublish comment by keyword action.
    */
-  function testCommentUnpublishByKeyword() {
+  public function testCommentUnpublishByKeyword() {
     $this->drupalLogin($this->adminUser);
     $keyword_1 = $this->randomMachineName();
     $keyword_2 = $this->randomMachineName();
diff --git a/core/modules/comment/src/Tests/CommentAdminTest.php b/core/modules/comment/src/Tests/CommentAdminTest.php
index 5ae57cb..1727074 100644
--- a/core/modules/comment/src/Tests/CommentAdminTest.php
+++ b/core/modules/comment/src/Tests/CommentAdminTest.php
@@ -21,7 +21,7 @@ protected function setUp() {
   /**
    * Test comment approval functionality through admin/content/comment.
    */
-  function testApprovalAdminInterface() {
+  public function testApprovalAdminInterface() {
     // Set anonymous comments to require approval.
     user_role_change_permissions(RoleInterface::ANONYMOUS_ID, array(
       'access comments' => TRUE,
@@ -103,7 +103,7 @@ function testApprovalAdminInterface() {
   /**
    * Tests comment approval functionality through the node interface.
    */
-  function testApprovalNodeInterface() {
+  public function testApprovalNodeInterface() {
     // Set anonymous comments to require approval.
     user_role_change_permissions(RoleInterface::ANONYMOUS_ID, array(
       'access comments' => TRUE,
diff --git a/core/modules/comment/src/Tests/CommentAnonymousTest.php b/core/modules/comment/src/Tests/CommentAnonymousTest.php
index 660d754..42438a1 100644
--- a/core/modules/comment/src/Tests/CommentAnonymousTest.php
+++ b/core/modules/comment/src/Tests/CommentAnonymousTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests anonymous comment functionality.
    */
-  function testAnonymous() {
+  public function testAnonymous() {
     $this->drupalLogin($this->adminUser);
     $this->setCommentAnonymous(COMMENT_ANONYMOUS_MAYNOT_CONTACT);
     $this->drupalLogout();
diff --git a/core/modules/comment/src/Tests/CommentBlockTest.php b/core/modules/comment/src/Tests/CommentBlockTest.php
index de92238..3b48bb8 100644
--- a/core/modules/comment/src/Tests/CommentBlockTest.php
+++ b/core/modules/comment/src/Tests/CommentBlockTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests the recent comments block.
    */
-  function testRecentCommentBlock() {
+  public function testRecentCommentBlock() {
     $this->drupalLogin($this->adminUser);
     $block = $this->drupalPlaceBlock('views_block:comments_recent-block_1');
 
diff --git a/core/modules/comment/src/Tests/CommentCSSTest.php b/core/modules/comment/src/Tests/CommentCSSTest.php
index f015f3f..b651e63 100644
--- a/core/modules/comment/src/Tests/CommentCSSTest.php
+++ b/core/modules/comment/src/Tests/CommentCSSTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Tests CSS classes on comments.
    */
-  function testCommentClasses() {
+  public function testCommentClasses() {
     // Create all permutations for comments, users, and nodes.
     $parameters = array(
       'node_uid' => array(0, $this->webUser->id()),
diff --git a/core/modules/comment/src/Tests/CommentFieldsTest.php b/core/modules/comment/src/Tests/CommentFieldsTest.php
index 46de1be..bfa6c1f 100644
--- a/core/modules/comment/src/Tests/CommentFieldsTest.php
+++ b/core/modules/comment/src/Tests/CommentFieldsTest.php
@@ -24,7 +24,7 @@ class CommentFieldsTest extends CommentTestBase {
   /**
    * Tests that the default 'comment_body' field is correctly added.
    */
-  function testCommentDefaultFields() {
+  public function testCommentDefaultFields() {
     // Do not make assumptions on default node types created by the test
     // installation profile, and create our own.
     $this->drupalCreateContentType(array('type' => 'test_node_type'));
@@ -183,7 +183,7 @@ public function testCommentFieldCreate() {
   /**
    * Tests that comment module works when installed after a content module.
    */
-  function testCommentInstallAfterContentModule() {
+  public function testCommentInstallAfterContentModule() {
     // Create a user to do module administration.
     $this->adminUser = $this->drupalCreateUser(array('access administration pages', 'administer modules'));
     $this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/src/Tests/CommentLanguageTest.php b/core/modules/comment/src/Tests/CommentLanguageTest.php
index c60f827..6856c20 100644
--- a/core/modules/comment/src/Tests/CommentLanguageTest.php
+++ b/core/modules/comment/src/Tests/CommentLanguageTest.php
@@ -76,7 +76,7 @@ protected function setUp() {
   /**
    * Test that comment language is properly set.
    */
-  function testCommentLanguage() {
+  public function testCommentLanguage() {
 
     // Create two nodes, one for english and one for french, and comment each
     // node using both english and french as content language by changing URL
diff --git a/core/modules/comment/src/Tests/CommentNodeAccessTest.php b/core/modules/comment/src/Tests/CommentNodeAccessTest.php
index e69bfde..0ad6f31 100644
--- a/core/modules/comment/src/Tests/CommentNodeAccessTest.php
+++ b/core/modules/comment/src/Tests/CommentNodeAccessTest.php
@@ -43,7 +43,7 @@ protected function setUp() {
   /**
    * Test that threaded comments can be viewed.
    */
-  function testThreadedCommentView() {
+  public function testThreadedCommentView() {
     // Set comments to have subject required and preview disabled.
     $this->drupalLogin($this->adminUser);
     $this->setCommentPreview(DRUPAL_DISABLED);
diff --git a/core/modules/comment/src/Tests/CommentNodeChangesTest.php b/core/modules/comment/src/Tests/CommentNodeChangesTest.php
index 9fed4df..11c6853 100644
--- a/core/modules/comment/src/Tests/CommentNodeChangesTest.php
+++ b/core/modules/comment/src/Tests/CommentNodeChangesTest.php
@@ -16,7 +16,7 @@ class CommentNodeChangesTest extends CommentTestBase {
   /**
    * Tests that comments are deleted with the node.
    */
-  function testNodeDeletion() {
+  public function testNodeDeletion() {
     $this->drupalLogin($this->webUser);
     $comment = $this->postComment($this->node, $this->randomMachineName(), $this->randomMachineName());
     $this->assertTrue($comment->id(), 'The comment could be loaded.');
diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php
index e43e0bc..62a03f8 100644
--- a/core/modules/comment/src/Tests/CommentNonNodeTest.php
+++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php
@@ -108,7 +108,7 @@ protected function setUp() {
    * @return \Drupal\comment\CommentInterface
    *   The new comment entity.
    */
-  function postComment(EntityInterface $entity, $comment, $subject = '', $contact = NULL) {
+  public function postComment(EntityInterface $entity, $comment, $subject = '', $contact = NULL) {
     $edit = array();
     $edit['comment_body[0][value]'] = $comment;
 
@@ -180,7 +180,7 @@ function postComment(EntityInterface $entity, $comment, $subject = '', $contact
    * @return bool
    *   Boolean indicating whether the comment was found.
    */
-  function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
+  public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
     if ($comment) {
       $regex = '/' . ($reply ? '<div class="indented">(.*?)' : '');
       $regex .= '<a id="comment-' . $comment->id() . '"(.*?)';
@@ -201,7 +201,7 @@ function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
    * @return bool
    *   Contact info is available.
    */
-  function commentContactInfoAvailable() {
+  public function commentContactInfoAvailable() {
     return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent());
   }
 
@@ -215,7 +215,7 @@ function commentContactInfoAvailable() {
    * @param bool $approval
    *   Operation is found on approval page.
    */
-  function performCommentOperation($comment, $operation, $approval = FALSE) {
+  public function performCommentOperation($comment, $operation, $approval = FALSE) {
     $edit = array();
     $edit['operation'] = $operation;
     $edit['comments[' . $comment->id() . ']'] = TRUE;
@@ -239,7 +239,7 @@ function performCommentOperation($comment, $operation, $approval = FALSE) {
    * @return int
    *   Comment ID.
    */
-  function getUnapprovedComment($subject) {
+  public function getUnapprovedComment($subject) {
     $this->drupalGet('admin/content/comment/approval');
     preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getRawContent(), $match);
 
@@ -249,7 +249,7 @@ function getUnapprovedComment($subject) {
   /**
    * Tests anonymous comment functionality.
    */
-  function testCommentFunctionality() {
+  public function testCommentFunctionality() {
     $limited_user = $this->drupalCreateUser(array(
       'administer entity_test fields'
     ));
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index aa7d099..4823d38 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -15,7 +15,7 @@ class CommentPagerTest extends CommentTestBase {
   /**
    * Confirms comment paging works correctly with flat and threaded comments.
    */
-  function testCommentPaging() {
+  public function testCommentPaging() {
     $this->drupalLogin($this->adminUser);
 
     // Set comment variables.
@@ -93,7 +93,7 @@ function testCommentPaging() {
   /**
    * Confirms comment paging works correctly with flat and threaded comments.
    */
-  function testCommentPermalink() {
+  public function testCommentPermalink() {
     $this->drupalLogin($this->adminUser);
 
     // Set comment variables.
@@ -125,7 +125,7 @@ function testCommentPermalink() {
   /**
    * Tests comment ordering and threading.
    */
-  function testCommentOrderingThreading() {
+  public function testCommentOrderingThreading() {
     $this->drupalLogin($this->adminUser);
 
     // Set comment variables.
@@ -205,7 +205,7 @@ function testCommentOrderingThreading() {
    * @param array $expected_order
    *   An array of keys from $comments describing the expected order.
    */
-  function assertCommentOrder(array $comments, array $expected_order) {
+  public function assertCommentOrder(array $comments, array $expected_order) {
     $expected_cids = array();
 
     // First, rekey the expected order by cid.
@@ -224,7 +224,7 @@ function assertCommentOrder(array $comments, array $expected_order) {
   /**
    * Tests calculation of first page with new comment.
    */
-  function testCommentNewPageIndicator() {
+  public function testCommentNewPageIndicator() {
     $this->drupalLogin($this->adminUser);
 
     // Set comment variables.
@@ -304,7 +304,7 @@ function testCommentNewPageIndicator() {
   /**
    * Confirms comment paging works correctly with two pagers.
    */
-  function testTwoPagers() {
+  public function testTwoPagers() {
     // Add another field to article content-type.
     $this->addDefaultCommentField('node', 'article', 'comment_2');
     // Set default to display comment list with unique pager id.
diff --git a/core/modules/comment/src/Tests/CommentPreviewTest.php b/core/modules/comment/src/Tests/CommentPreviewTest.php
index 837a78a..cc5da05 100644
--- a/core/modules/comment/src/Tests/CommentPreviewTest.php
+++ b/core/modules/comment/src/Tests/CommentPreviewTest.php
@@ -26,7 +26,7 @@ class CommentPreviewTest extends CommentTestBase {
   /**
    * Tests comment preview.
    */
-  function testCommentPreview() {
+  public function testCommentPreview() {
     // As admin user, configure comment settings.
     $this->drupalLogin($this->adminUser);
     $this->setCommentPreview(DRUPAL_OPTIONAL);
@@ -123,7 +123,7 @@ public function testCommentPreviewDuplicateSubmission() {
   /**
    * Tests comment edit, preview, and save.
    */
-  function testCommentEditPreviewSave() {
+  public function testCommentEditPreviewSave() {
     $web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'skip comment approval', 'edit own comments'));
     $this->drupalLogin($this->adminUser);
     $this->setCommentPreview(DRUPAL_OPTIONAL);
diff --git a/core/modules/comment/src/Tests/CommentRssTest.php b/core/modules/comment/src/Tests/CommentRssTest.php
index ec673df..ea892a9 100644
--- a/core/modules/comment/src/Tests/CommentRssTest.php
+++ b/core/modules/comment/src/Tests/CommentRssTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests comments as part of an RSS feed.
    */
-  function testCommentRss() {
+  public function testCommentRss() {
     // Find comment in RSS feed.
     $this->drupalLogin($this->webUser);
     $this->postComment($this->node, $this->randomMachineName(), $this->randomMachineName());
diff --git a/core/modules/comment/src/Tests/CommentStatisticsTest.php b/core/modules/comment/src/Tests/CommentStatisticsTest.php
index 0c370d1..891e954 100644
--- a/core/modules/comment/src/Tests/CommentStatisticsTest.php
+++ b/core/modules/comment/src/Tests/CommentStatisticsTest.php
@@ -38,7 +38,7 @@ protected function setUp() {
   /**
    * Tests the node comment statistics.
    */
-  function testCommentNodeCommentStatistics() {
+  public function testCommentNodeCommentStatistics() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Set comments to have subject and preview disabled.
     $this->drupalLogin($this->adminUser);
diff --git a/core/modules/comment/src/Tests/CommentTestBase.php b/core/modules/comment/src/Tests/CommentTestBase.php
index c99dd32..84fa8af 100644
--- a/core/modules/comment/src/Tests/CommentTestBase.php
+++ b/core/modules/comment/src/Tests/CommentTestBase.php
@@ -184,7 +184,7 @@ public function postComment($entity, $comment, $subject = '', $contact = NULL, $
    * @return bool
    *   Boolean indicating whether the comment was found.
    */
-  function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
+  public function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
     if ($comment) {
       $comment_element = $this->cssSelect('.comment-wrapper ' . ($reply ? '.indented ' : '') . '#comment-' . $comment->id() . ' ~ article');
       if (empty($comment_element)) {
@@ -214,7 +214,7 @@ function commentExists(CommentInterface $comment = NULL, $reply = FALSE) {
    * @param \Drupal\comment\CommentInterface $comment
    *   Comment to delete.
    */
-  function deleteComment(CommentInterface $comment) {
+  public function deleteComment(CommentInterface $comment) {
     $this->drupalPostForm('comment/' . $comment->id() . '/delete', array(), t('Delete'));
     $this->assertText(t('The comment and all its replies have been deleted.'), 'Comment deleted.');
   }
@@ -289,7 +289,7 @@ public function setCommentForm($enabled, $field_name = 'comment') {
    *   - 1: Contact information allowed but not required.
    *   - 2: Contact information required.
    */
-  function setCommentAnonymous($level) {
+  public function setCommentAnonymous($level) {
     $this->setCommentSettings('anonymous', $level, format_string('Anonymous commenting set to level @level.', array('@level' => $level)));
   }
 
@@ -333,7 +333,7 @@ public function setCommentSettings($name, $value, $message, $field_name = 'comme
    * @return bool
    *   Contact info is available.
    */
-  function commentContactInfoAvailable() {
+  public function commentContactInfoAvailable() {
     return preg_match('/(input).*?(name="name").*?(input).*?(name="mail").*?(input).*?(name="homepage")/s', $this->getRawContent());
   }
 
@@ -347,7 +347,7 @@ function commentContactInfoAvailable() {
    * @param bool $approval
    *   Operation is found on approval page.
    */
-  function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) {
+  public function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) {
     $edit = array();
     $edit['operation'] = $operation;
     $edit['comments[' . $comment->id() . ']'] = TRUE;
@@ -371,7 +371,7 @@ function performCommentOperation(CommentInterface $comment, $operation, $approva
    * @return int
    *   Comment id.
    */
-  function getUnapprovedComment($subject) {
+  public function getUnapprovedComment($subject) {
     $this->drupalGet('admin/content/comment/approval');
     preg_match('/href="(.*?)#comment-([^"]+)"(.*?)>(' . $subject . ')/', $this->getRawContent(), $match);
 
diff --git a/core/modules/comment/src/Tests/CommentThreadingTest.php b/core/modules/comment/src/Tests/CommentThreadingTest.php
index c8ea93e..7c3150c 100644
--- a/core/modules/comment/src/Tests/CommentThreadingTest.php
+++ b/core/modules/comment/src/Tests/CommentThreadingTest.php
@@ -13,7 +13,7 @@ class CommentThreadingTest extends CommentTestBase {
   /**
    * Tests the comment threading.
    */
-  function testCommentThreading() {
+  public function testCommentThreading() {
     // Set comments to have a subject with preview disabled.
     $this->drupalLogin($this->adminUser);
     $this->setCommentPreview(DRUPAL_DISABLED);
diff --git a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
index c7b7227..d9f0fb8 100644
--- a/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
+++ b/core/modules/comment/src/Tests/CommentTokenReplaceTest.php
@@ -29,7 +29,7 @@ class CommentTokenReplaceTest extends CommentTestBase {
   /**
    * Creates a comment, then tests the tokens generated from it.
    */
-  function testCommentTokenReplacement() {
+  public function testCommentTokenReplacement() {
     $token_service = \Drupal::token();
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
     $url_options = array(
diff --git a/core/modules/comment/src/Tests/CommentTranslationUITest.php b/core/modules/comment/src/Tests/CommentTranslationUITest.php
index e89bd3f..27d6199 100644
--- a/core/modules/comment/src/Tests/CommentTranslationUITest.php
+++ b/core/modules/comment/src/Tests/CommentTranslationUITest.php
@@ -60,7 +60,7 @@ protected function setUp() {
   /**
    * {@inheritdoc}
    */
-  function setupBundle() {
+  public function setupBundle() {
     parent::setupBundle();
     $this->drupalCreateContentType(array('type' => $this->nodeBundle, 'name' => $this->nodeBundle));
     // Add a comment field to the article content type.
@@ -181,7 +181,7 @@ protected function doTestAuthoringInfo() {
   /**
    * Tests translate link on comment content admin page.
    */
-  function testTranslateLinkCommentAdminPage() {
+  public function testTranslateLinkCommentAdminPage() {
     $this->adminUser = $this->drupalCreateUser(array_merge(parent::getTranslatorPermissions(), array('access administration pages', 'administer comments', 'skip comment approval')));
     $this->drupalLogin($this->adminUser);
 
diff --git a/core/modules/comment/src/Tests/CommentUninstallTest.php b/core/modules/comment/src/Tests/CommentUninstallTest.php
index 4d86df9..fb92b4f 100644
--- a/core/modules/comment/src/Tests/CommentUninstallTest.php
+++ b/core/modules/comment/src/Tests/CommentUninstallTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
    *
    * @throws \Drupal\Core\Extension\ModuleUninstallValidatorException
    */
-  function testCommentUninstallWithField() {
+  public function testCommentUninstallWithField() {
     // Ensure that the field exists before uninstallation.
     $field_storage = FieldStorageConfig::loadByName('comment', 'comment_body');
     $this->assertNotNull($field_storage, 'The comment_body field exists.');
@@ -55,7 +55,7 @@ function testCommentUninstallWithField() {
   /**
    * Tests if uninstallation succeeds if the field has been deleted beforehand.
    */
-  function testCommentUninstallWithoutField() {
+  public function testCommentUninstallWithoutField() {
     // Manually delete the comment_body field before module uninstallation.
     $field_storage = FieldStorageConfig::loadByName('comment', 'comment_body');
     $this->assertNotNull($field_storage, 'The comment_body field exists.');
diff --git a/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php b/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
index 63a0082..3d3901d 100644
--- a/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
+++ b/core/modules/comment/src/Tests/Views/ArgumentUserUIDTest.php
@@ -20,7 +20,7 @@ class ArgumentUserUIDTest extends CommentTestBase {
    */
   public static $testViews = array('test_comment_user_uid');
 
-  function testCommentUserUIDTest() {
+  public function testCommentUserUIDTest() {
     // Add an additional comment which is not created by the user.
     $new_user = User::create(['name' => 'new user']);
     $new_user->save();
diff --git a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
index c0cf374..962ffd9 100644
--- a/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
+++ b/core/modules/comment/src/Tests/Views/CommentFieldFilterTest.php
@@ -31,7 +31,7 @@ class CommentFieldFilterTest extends CommentTestBase {
    */
   public $commentTitles = array();
 
-  function setUp() {
+  public function setUp() {
     parent::setUp();
     $this->drupalLogin($this->drupalCreateUser(['access comments']));
 
diff --git a/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php b/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
index ee8281b..a5198d0 100644
--- a/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
+++ b/core/modules/comment/src/Tests/Views/FilterUserUIDTest.php
@@ -22,7 +22,7 @@ class FilterUserUIDTest extends CommentTestBase {
    */
   public static $testViews = array('test_comment_user_uid');
 
-  function testCommentUserUIDTest() {
+  public function testCommentUserUIDTest() {
     $view = Views::getView('test_comment_user_uid');
     $view->setDisplay();
     $view->removeHandler('default', 'argument', 'uid_touch');
diff --git a/core/modules/config/src/ConfigSubscriber.php b/core/modules/config/src/ConfigSubscriber.php
index 9b6c842..4ad40d5 100644
--- a/core/modules/config/src/ConfigSubscriber.php
+++ b/core/modules/config/src/ConfigSubscriber.php
@@ -29,7 +29,7 @@ public function onConfigImporterValidate(ConfigImporterEvent $event) {
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[ConfigEvents::IMPORT_VALIDATE][] = array('onConfigImporterValidate', 20);
     return $events;
   }
diff --git a/core/modules/config/src/Tests/ConfigDependencyWebTest.php b/core/modules/config/src/Tests/ConfigDependencyWebTest.php
index 5eb5206..ff09e4f 100644
--- a/core/modules/config/src/Tests/ConfigDependencyWebTest.php
+++ b/core/modules/config/src/Tests/ConfigDependencyWebTest.php
@@ -29,7 +29,7 @@ class ConfigDependencyWebTest extends WebTestBase {
    *
    * @see \Drupal\Core\Config\Entity\ConfigDependencyDeleteFormTrait
    */
-  function testConfigDependencyDeleteFormTrait() {
+  public function testConfigDependencyDeleteFormTrait() {
     $this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
 
     /** @var \Drupal\Core\Config\Entity\ConfigEntityStorage $storage */
diff --git a/core/modules/config/src/Tests/ConfigEntityListMultilingualTest.php b/core/modules/config/src/Tests/ConfigEntityListMultilingualTest.php
index f5c12d8..722c251 100644
--- a/core/modules/config/src/Tests/ConfigEntityListMultilingualTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityListMultilingualTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests the listing UI with different language scenarios.
    */
-  function testListUI() {
+  public function testListUI() {
     // Log in as an administrative user to access the full menu trail.
     $this->drupalLogin($this->drupalCreateUser(array('access administration pages', 'administer site configuration')));
 
diff --git a/core/modules/config/src/Tests/ConfigEntityListTest.php b/core/modules/config/src/Tests/ConfigEntityListTest.php
index 9d31de0..c4480f3 100644
--- a/core/modules/config/src/Tests/ConfigEntityListTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityListTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests entity list builder methods.
    */
-  function testList() {
+  public function testList() {
     $controller = \Drupal::entityManager()->getListBuilder('config_test');
 
     // Test getStorage() method.
@@ -147,7 +147,7 @@ function testList() {
   /**
    * Tests the listing UI.
    */
-  function testListUI() {
+  public function testListUI() {
     // Log in as an administrative user to access the full menu trail.
     $this->drupalLogin($this->drupalCreateUser(array('access administration pages', 'administer site configuration')));
 
diff --git a/core/modules/config/src/Tests/ConfigEntityTest.php b/core/modules/config/src/Tests/ConfigEntityTest.php
index a8a8f0f..871a17d 100644
--- a/core/modules/config/src/Tests/ConfigEntityTest.php
+++ b/core/modules/config/src/Tests/ConfigEntityTest.php
@@ -32,7 +32,7 @@ class ConfigEntityTest extends WebTestBase {
   /**
    * Tests CRUD operations.
    */
-  function testCRUD() {
+  public function testCRUD() {
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
     // Verify default properties on a newly created empty entity.
     $empty = entity_create('config_test');
@@ -230,7 +230,7 @@ function testCRUD() {
   /**
    * Tests CRUD operations through the UI.
    */
-  function testCRUDUI() {
+  public function testCRUDUI() {
     $this->drupalLogin($this->drupalCreateUser(['administer site configuration']));
 
     $id = strtolower($this->randomMachineName());
diff --git a/core/modules/config/src/Tests/ConfigExportUITest.php b/core/modules/config/src/Tests/ConfigExportUITest.php
index d3133d8..4fc7d73 100644
--- a/core/modules/config/src/Tests/ConfigExportUITest.php
+++ b/core/modules/config/src/Tests/ConfigExportUITest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Tests export of configuration.
    */
-  function testExport() {
+  public function testExport() {
     // Verify the export page with export submit button is available.
     $this->drupalGet('admin/config/development/configuration/full/export');
     $this->assertFieldById('edit-submit', t('Export'));
diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php
index afa9b99..58a0f2b 100644
--- a/core/modules/config/src/Tests/ConfigImportUITest.php
+++ b/core/modules/config/src/Tests/ConfigImportUITest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Tests importing configuration.
    */
-  function testImport() {
+  public function testImport() {
     $name = 'system.site';
     $dynamic_name = 'config_test.dynamic.new';
     /** @var \Drupal\Core\Config\StorageInterface $sync */
@@ -221,7 +221,7 @@ function testImport() {
   /**
    * Tests concurrent importing of configuration.
    */
-  function testImportLock() {
+  public function testImportLock() {
     // Create updated configuration object.
     $new_site_name = 'Config import test ' . $this->randomString();
     $this->prepareSiteNameUpdate($new_site_name);
@@ -248,7 +248,7 @@ function testImportLock() {
   /**
    * Tests verification of site UUID before importing configuration.
    */
-  function testImportSiteUuidValidation() {
+  public function testImportSiteUuidValidation() {
     $sync = \Drupal::service('config.storage.sync');
     // Create updated configuration object.
     $config_data = $this->config('system.site')->get();
@@ -265,7 +265,7 @@ function testImportSiteUuidValidation() {
   /**
    * Tests the screen that shows differences between active and sync.
    */
-  function testImportDiff() {
+  public function testImportDiff() {
     $sync = $this->container->get('config.storage.sync');
     $config_name = 'config_test.system';
     $change_key = 'foo';
@@ -377,7 +377,7 @@ public function testConfigUninstallConfigException() {
     $this->assertText('Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.');
   }
 
-  function prepareSiteNameUpdate($new_site_name) {
+  public function prepareSiteNameUpdate($new_site_name) {
     $sync = $this->container->get('config.storage.sync');
     // Create updated configuration object.
     $config_data = $this->config('system.site')->get();
@@ -388,7 +388,7 @@ function prepareSiteNameUpdate($new_site_name) {
   /**
    * Tests an import that results in an error.
    */
-  function testImportErrorLog() {
+  public function testImportErrorLog() {
     $name_primary = 'config_test.dynamic.primary';
     $name_secondary = 'config_test.dynamic.secondary';
     $sync = $this->container->get('config.storage.sync');
diff --git a/core/modules/config/src/Tests/ConfigImportUploadTest.php b/core/modules/config/src/Tests/ConfigImportUploadTest.php
index 9836d77..cd51655 100644
--- a/core/modules/config/src/Tests/ConfigImportUploadTest.php
+++ b/core/modules/config/src/Tests/ConfigImportUploadTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
   /**
    * Tests importing configuration.
    */
-  function testImport() {
+  public function testImport() {
     // Verify access to the config upload form.
     $this->drupalGet('admin/config/development/configuration/full/import');
     $this->assertResponse(200);
diff --git a/core/modules/config/src/Tests/ConfigInstallWebTest.php b/core/modules/config/src/Tests/ConfigInstallWebTest.php
index 7006997..28b1fa7 100644
--- a/core/modules/config/src/Tests/ConfigInstallWebTest.php
+++ b/core/modules/config/src/Tests/ConfigInstallWebTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests module re-installation.
    */
-  function testIntegrationModuleReinstallation() {
+  public function testIntegrationModuleReinstallation() {
     $default_config = 'config_integration_test.settings';
     $default_configuration_entity = 'config_test.dynamic.config_integration_test';
 
diff --git a/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php b/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php
index f966e5f..0403a8f 100644
--- a/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php
+++ b/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests translating the site name.
    */
-  function testSiteNameTranslation() {
+  public function testSiteNameTranslation() {
     $adminUser = $this->drupalCreateUser(array('administer site configuration', 'administer languages'));
     $this->drupalLogin($adminUser);
 
diff --git a/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php b/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
index da3a9f1..7194ba8 100644
--- a/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_collection_install_test/src/EventSubscriber.php
@@ -42,7 +42,7 @@ public function addCollections(ConfigCollectionInfo $collection_info) {
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[ConfigEvents::COLLECTION_INFO][] = array('addCollections');
     return $events;
   }
diff --git a/core/modules/config/tests/config_events_test/src/EventSubscriber.php b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
index bfa70db..464925b 100644
--- a/core/modules/config/tests/config_events_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_events_test/src/EventSubscriber.php
@@ -48,7 +48,7 @@ public function configEventRecorder(ConfigCrudEvent $event, $name) {
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[ConfigEvents::SAVE][] = array('configEventRecorder');
     $events[ConfigEvents::DELETE][] = array('configEventRecorder');
     $events[ConfigEvents::RENAME][] = array('configEventRecorder');
diff --git a/core/modules/config/tests/config_import_test/src/EventSubscriber.php b/core/modules/config/tests/config_import_test/src/EventSubscriber.php
index f4ae97f..cf284ec 100644
--- a/core/modules/config/tests/config_import_test/src/EventSubscriber.php
+++ b/core/modules/config/tests/config_import_test/src/EventSubscriber.php
@@ -131,7 +131,7 @@ public function onConfigDelete(ConfigCrudEvent $event) {
    * @return array
    *   An array of event listener definitions.
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[ConfigEvents::SAVE][] = array('onConfigSave', 40);
     $events[ConfigEvents::DELETE][] = array('onConfigDelete', 40);
     $events[ConfigEvents::IMPORT_VALIDATE] = array('onConfigImporterValidate');
diff --git a/core/modules/config/tests/config_test/src/ConfigTestController.php b/core/modules/config/tests/config_test/src/ConfigTestController.php
index d60c62e..84c332b 100644
--- a/core/modules/config/tests/config_test/src/ConfigTestController.php
+++ b/core/modules/config/tests/config_test/src/ConfigTestController.php
@@ -33,7 +33,7 @@ public function editTitle(ConfigTest $config_test) {
    * @return \Symfony\Component\HttpFoundation\RedirectResponse
    *   A redirect response to the config_test listing page.
    */
-  function enable(ConfigTest $config_test) {
+  public function enable(ConfigTest $config_test) {
     $config_test->enable()->save();
     return new RedirectResponse($config_test->url('collection', array('absolute' => TRUE)));
   }
@@ -47,7 +47,7 @@ function enable(ConfigTest $config_test) {
    * @return \Symfony\Component\HttpFoundation\RedirectResponse
    *   A redirect response to the config_test listing page.
    */
-  function disable(ConfigTest $config_test) {
+  public function disable(ConfigTest $config_test) {
     $config_test->disable()->save();
     return new RedirectResponse($config_test->url('collection', array('absolute' => TRUE)));
   }
diff --git a/core/modules/contact/src/Tests/ContactAuthenticatedUserTest.php b/core/modules/contact/src/Tests/ContactAuthenticatedUserTest.php
index eb7c527..0103200 100644
--- a/core/modules/contact/src/Tests/ContactAuthenticatedUserTest.php
+++ b/core/modules/contact/src/Tests/ContactAuthenticatedUserTest.php
@@ -21,7 +21,7 @@ class ContactAuthenticatedUserTest extends WebTestBase {
   /**
    * Tests that name and email fields are not present for authenticated users.
    */
-  function testContactSiteWideTextfieldsLoggedInTestCase() {
+  public function testContactSiteWideTextfieldsLoggedInTestCase() {
     $this->drupalLogin($this->drupalCreateUser(array('access site-wide contact form')));
     $this->drupalGet('contact');
 
diff --git a/core/modules/contact/src/Tests/ContactPersonalTest.php b/core/modules/contact/src/Tests/ContactPersonalTest.php
index 936aed5..d1135c6 100644
--- a/core/modules/contact/src/Tests/ContactPersonalTest.php
+++ b/core/modules/contact/src/Tests/ContactPersonalTest.php
@@ -58,7 +58,7 @@ protected function setUp() {
   /**
    * Tests that mails for contact messages are correctly sent.
    */
-  function testSendPersonalContactMessage() {
+  public function testSendPersonalContactMessage() {
     // Ensure that the web user's email needs escaping.
     $mail = $this->webUser->getUsername() . '&escaped@example.com';
     $this->webUser->setEmail($mail)->save();
@@ -103,7 +103,7 @@ function testSendPersonalContactMessage() {
   /**
    * Tests access to the personal contact form.
    */
-  function testPersonalContactAccess() {
+  public function testPersonalContactAccess() {
     // Test allowed access to admin user's contact form.
     $this->drupalLogin($this->webUser);
     $this->drupalGet('user/' . $this->adminUser->id() . '/contact');
@@ -223,7 +223,7 @@ function testPersonalContactAccess() {
   /**
    * Tests the personal contact form flood protection.
    */
-  function testPersonalContactFlood() {
+  public function testPersonalContactFlood() {
     $flood_limit = 3;
     $this->config('contact.settings')->set('flood.limit', $flood_limit)->save();
 
@@ -248,7 +248,7 @@ function testPersonalContactFlood() {
   /**
    * Tests the personal contact form based access when an admin adds users.
    */
-  function testAdminContact() {
+  public function testAdminContact() {
     user_role_grant_permissions(RoleInterface::ANONYMOUS_ID, array('access user contact forms'));
     $this->checkContactAccess(200);
     $this->checkContactAccess(403, FALSE);
diff --git a/core/modules/contact/src/Tests/ContactSitewideTest.php b/core/modules/contact/src/Tests/ContactSitewideTest.php
index c148715..3a17141 100644
--- a/core/modules/contact/src/Tests/ContactSitewideTest.php
+++ b/core/modules/contact/src/Tests/ContactSitewideTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests configuration options and the site-wide contact form.
    */
-  function testSiteWideContact() {
+  public function testSiteWideContact() {
     // Create and log in administrative user.
     $admin_user = $this->drupalCreateUser(array(
       'access site-wide contact form',
@@ -344,7 +344,7 @@ function testSiteWideContact() {
   /**
    * Tests auto-reply on the site-wide contact form.
    */
-  function testAutoReply() {
+  public function testAutoReply() {
     // Create and log in administrative user.
     $admin_user = $this->drupalCreateUser(array('access site-wide contact form', 'administer contact forms', 'administer permissions', 'administer users'));
     $this->drupalLogin($admin_user);
@@ -406,7 +406,7 @@ function testAutoReply() {
    * @param array $third_party_settings
    *   Array of third party settings to be added to the posted form data.
    */
-  function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []) {
+  public function addContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $third_party_settings = []) {
     $edit = array();
     $edit['label'] = $label;
     $edit['id'] = $id;
@@ -438,7 +438,7 @@ function addContactForm($id, $label, $recipients, $reply, $selected, $message =
    * @param string $redirect
    *   The path where user will be redirect after this form has been submitted..
    */
-  function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/') {
+  public function updateContactForm($id, $label, $recipients, $reply, $selected, $message = 'Your message has been sent.', $redirect = '/') {
     $edit = array();
     $edit['label'] = $label;
     $edit['recipients'] = $recipients;
@@ -463,7 +463,7 @@ function updateContactForm($id, $label, $recipients, $reply, $selected, $message
    * @param string $message
    *   The message body.
    */
-  function submitContact($name, $mail, $subject, $id, $message) {
+  public function submitContact($name, $mail, $subject, $id, $message) {
     $edit = array();
     $edit['name'] = $name;
     $edit['mail'] = $mail;
@@ -480,7 +480,7 @@ function submitContact($name, $mail, $subject, $id, $message) {
   /**
    * Deletes all forms.
    */
-  function deleteContactForms() {
+  public function deleteContactForms() {
     $contact_forms = ContactForm::loadMultiple();;
     foreach ($contact_forms as $id => $contact_form) {
       if ($id == 'personal') {
diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php
index 6fd2254..9dbbaf3 100644
--- a/core/modules/content_translation/src/ContentTranslationHandler.php
+++ b/core/modules/content_translation/src/ContentTranslationHandler.php
@@ -598,7 +598,7 @@ public function entityFormEntityBuild($entity_type, EntityInterface $entity, arr
    *
    * Validates the submitted content translation metadata.
    */
-  function entityFormValidate($form, FormStateInterface $form_state) {
+  public function entityFormValidate($form, FormStateInterface $form_state) {
     if (!$form_state->isValueEmpty('content_translation')) {
       $translation = $form_state->getValue('content_translation');
       // Validate the "authored by" field.
@@ -618,7 +618,7 @@ function entityFormValidate($form, FormStateInterface $form_state) {
    * Updates metadata fields, which should be updated only after the validation
    * has run and before the entity is saved.
    */
-  function entityFormSubmit($form, FormStateInterface $form_state) {
+  public function entityFormSubmit($form, FormStateInterface $form_state) {
     /** @var \Drupal\Core\Entity\ContentEntityFormInterface $form_object */
     $form_object = $form_state->getFormObject();
     /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
@@ -661,7 +661,7 @@ public function entityFormSourceChange($form, FormStateInterface $form_state) {
    *
    * Takes care of entity deletion.
    */
-  function entityFormDelete($form, FormStateInterface $form_state) {
+  public function entityFormDelete($form, FormStateInterface $form_state) {
     $form_object = $form_state->getFormObject()->getEntity();
     $entity = $form_object->getEntity();
     if (count($entity->getTranslationLanguages()) > 1) {
@@ -674,7 +674,7 @@ function entityFormDelete($form, FormStateInterface $form_state) {
    *
    * Takes care of content translation deletion.
    */
-  function entityFormDeleteTranslation($form, FormStateInterface $form_state) {
+  public function entityFormDeleteTranslation($form, FormStateInterface $form_state) {
     /** @var \Drupal\Core\Entity\ContentEntityFormInterface $form_object */
     $form_object = $form_state->getFormObject();
     /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
diff --git a/core/modules/content_translation/src/ContentTranslationManager.php b/core/modules/content_translation/src/ContentTranslationManager.php
index a1c2391..add72cb 100644
--- a/core/modules/content_translation/src/ContentTranslationManager.php
+++ b/core/modules/content_translation/src/ContentTranslationManager.php
@@ -40,7 +40,7 @@ public function __construct(EntityManagerInterface $manager, ContentTranslationU
   /**
    * {@inheritdoc}
    */
-  function getTranslationHandler($entity_type_id) {
+  public function getTranslationHandler($entity_type_id) {
     return $this->entityManager->getHandler($entity_type_id, 'translation');
   }
 
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
index d7490c0..fb34e89 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php
@@ -43,7 +43,7 @@ protected function setUp() {
   /**
    * Tests that the settings UI works as expected.
    */
-  function testSettingsUI() {
+  public function testSettingsUI() {
     // Check for the content_translation_menu_links_discovered_alter() changes.
     $this->drupalGet('admin/config');
     $this->assertLink('Content language and translation');
@@ -200,7 +200,7 @@ function testSettingsUI() {
   /**
    * Tests the language settings checkbox on account settings page.
    */
-  function testAccountLanguageSettingsUI() {
+  public function testAccountLanguageSettingsUI() {
     // Make sure the checkbox is available and not checked by default.
     $this->drupalGet('admin/config/people/accounts');
     $this->assertField('language[content_translation]');
@@ -245,7 +245,7 @@ protected function assertSettings($entity_type, $bundle, $enabled, $edit) {
   /**
    * Tests that field setting depends on bundle translatability.
    */
-  function testFieldTranslatableSettingsUI() {
+  public function testFieldTranslatableSettingsUI() {
     // At least one field needs to be translatable to enable article for
     // translation. Create an extra field to be used for this purpose. We use
     // the UI to test our form alterations.
@@ -280,7 +280,7 @@ function testFieldTranslatableSettingsUI() {
   /**
    * Tests the translatable settings checkbox for untranslatable entities.
    */
-  function testNonTranslatableTranslationSettingsUI() {
+  public function testNonTranslatableTranslationSettingsUI() {
     $this->drupalGet('admin/config/regional/content-language');
     $this->assertNoField('settings[entity_test][entity_test][translatable]');
   }
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
index 5f881a7..4753803 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationSyncImageTest.php
@@ -82,7 +82,7 @@ protected function getEditorPermissions() {
   /**
    * Tests image field field synchronization.
    */
-  function testImageFieldSync() {
+  public function testImageFieldSync() {
     // Check that the alt and title fields are enabled for the image field.
     $this->drupalLogin($this->editor);
     $this->drupalGet('entity_test_mul/structure/' . $this->entityTypeId . '/fields/' . $this->entityTypeId . '.' . $this->entityTypeId . '.' . $this->fieldName);
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php b/core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php
index 2f8be23..1db0a18 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUISkipTest.php
@@ -21,7 +21,7 @@ class ContentTranslationUISkipTest extends WebTestBase {
   /**
    * Tests the content_translation_ui_skip key functionality.
    */
-  function testUICheckSkip() {
+  public function testUICheckSkip() {
     $admin_user = $this->drupalCreateUser(array(
       'translate any entity',
       'administer content translation',
diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
index 3c50983..f77a726 100644
--- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
+++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php
@@ -52,7 +52,7 @@
   /**
    * Tests the basic translation UI.
    */
-  function testTranslationUI() {
+  public function testTranslationUI() {
     $this->doTestBasicTranslation();
     $this->doTestTranslationOverview();
     $this->doTestOutdatedStatus();
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
index f650270..120d362 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
@@ -58,7 +58,7 @@ protected function setUp() {
   /**
    * Tests config import updates.
    */
-  function testConfigImportUpdates() {
+  public function testConfigImportUpdates() {
     $entity_type_id = 'entity_test_mul';
     $config_id = $entity_type_id . '.' . $entity_type_id;
     $config_name = 'language.content_settings.' . $config_id;
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
index 291cdf9..f1ff3dc 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
@@ -29,7 +29,7 @@ protected function setUp() {
   /**
    * Tests that enabling translation via the API triggers schema updates.
    */
-  function testSettingsApi() {
+  public function testSettingsApi() {
     $this->container->get('content_translation.manager')->setEnabled('entity_test_mul', 'entity_test_mul', TRUE);
     $result =
       db_field_exists('entity_test_mul_property_data', 'content_translation_source') &&
diff --git a/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php b/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
index e5d2c85..fd2f49b 100644
--- a/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
+++ b/core/modules/contextual/src/Tests/ContextualDynamicContextTest.php
@@ -64,7 +64,7 @@ protected function setUp() {
    * Ensures that contextual link placeholders always exist, even if the user is
    * not allowed to use contextual links.
    */
-  function testDifferentPermissions() {
+  public function testDifferentPermissions() {
     $this->drupalLogin($this->editorUser);
 
     // Create three nodes in the following order:
diff --git a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
index 680303d..b7686e7 100644
--- a/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
+++ b/core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
@@ -22,7 +22,7 @@ class ContextualUnitTest extends KernelTestBase {
   /**
    * Provides testcases for testContextualLinksToId() and
    */
-  function _contextual_links_id_testcases() {
+  public function _contextual_links_id_testcases() {
     // Test branch conditions:
     // - one group.
     // - one dynamic path argument.
@@ -110,7 +110,7 @@ function _contextual_links_id_testcases() {
   /**
    * Tests _contextual_links_to_id().
    */
-  function testContextualLinksToId() {
+  public function testContextualLinksToId() {
     $tests = $this->_contextual_links_id_testcases();
     foreach ($tests as $test) {
       $this->assertIdentical(_contextual_links_to_id($test['links']), $test['id']);
@@ -120,7 +120,7 @@ function testContextualLinksToId() {
   /**
    * Tests _contextual_id_to_links().
    */
-  function testContextualIdToLinks() {
+  public function testContextualIdToLinks() {
     $tests = $this->_contextual_links_id_testcases();
     foreach ($tests as $test) {
       $this->assertIdentical(_contextual_id_to_links($test['id']), $test['links']);
diff --git a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
index 8cdabf1..a133a51 100644
--- a/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
+++ b/core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDatelistWidget.php
@@ -85,7 +85,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
   /**
    * {@inheritdoc}
    */
-  function settingsForm(array $form, FormStateInterface $form_state) {
+  public function settingsForm(array $form, FormStateInterface $form_state) {
     $element = parent::settingsForm($form, $form_state);
 
     $element['date_order'] = array(
diff --git a/core/modules/datetime/src/Tests/DateTimeFieldTest.php b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
index f7aeae8..22b6b17 100644
--- a/core/modules/datetime/src/Tests/DateTimeFieldTest.php
+++ b/core/modules/datetime/src/Tests/DateTimeFieldTest.php
@@ -35,7 +35,7 @@ protected function getTestFieldType() {
   /**
    * Tests date field functionality.
    */
-  function testDateField() {
+  public function testDateField() {
     $field_name = $this->fieldStorage->getName();
 
     // Loop through defined timezones to test that date-only fields work at the
@@ -192,7 +192,7 @@ function testDateField() {
   /**
    * Tests date and time field.
    */
-  function testDatetimeField() {
+  public function testDatetimeField() {
     $field_name = $this->fieldStorage->getName();
     // Change the field to a datetime field.
     $this->fieldStorage->setSetting('datetime_type', 'datetime');
@@ -332,7 +332,7 @@ function testDatetimeField() {
   /**
    * Tests Date List Widget functionality.
    */
-  function testDatelistWidget() {
+  public function testDatelistWidget() {
     $field_name = $this->fieldStorage->getName();
 
     // Ensure field is set to a date only field.
@@ -574,7 +574,7 @@ protected function datelistDataProvider() {
   /**
    * Test default value functionality.
    */
-  function testDefaultValue() {
+  public function testDefaultValue() {
     // Create a test content type.
     $this->drupalCreateContentType(array('type' => 'date_content'));
 
@@ -696,7 +696,7 @@ function testDefaultValue() {
   /**
    * Test that invalid values are caught and marked as invalid.
    */
-  function testInvalidField() {
+  public function testInvalidField() {
     // Change the field to a datetime field.
     $this->fieldStorage->setSetting('datetime_type', 'datetime');
     $this->fieldStorage->save();
diff --git a/core/modules/dblog/src/Tests/ConnectionFailureTest.php b/core/modules/dblog/src/Tests/ConnectionFailureTest.php
index d800224..d4376e0 100644
--- a/core/modules/dblog/src/Tests/ConnectionFailureTest.php
+++ b/core/modules/dblog/src/Tests/ConnectionFailureTest.php
@@ -17,7 +17,7 @@ class ConnectionFailureTest extends WebTestBase {
   /**
    * Tests logging of connection failures.
    */
-  function testConnectionFailureLogging() {
+  public function testConnectionFailureLogging() {
     $logger = \Drupal::service('logger.factory');
 
     // MySQL errors like "1153 - Got a packet bigger than 'max_allowed_packet'
diff --git a/core/modules/editor/src/Element.php b/core/modules/editor/src/Element.php
index b83e9dc..a430542 100644
--- a/core/modules/editor/src/Element.php
+++ b/core/modules/editor/src/Element.php
@@ -32,7 +32,7 @@ public function __construct(PluginManagerInterface $plugin_manager) {
   /**
    * Additional #pre_render callback for 'text_format' elements.
    */
-  function preRenderTextFormat(array $element) {
+  public function preRenderTextFormat(array $element) {
     // Allow modules to programmatically enforce no client-side editor by
     // setting the #editor property to FALSE.
     if (isset($element['#editor']) && !$element['#editor']) {
diff --git a/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php b/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
index 5d50342..f2e203b 100644
--- a/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
+++ b/core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
@@ -43,7 +43,7 @@ public function isCompatible(FieldItemListInterface $items) {
   /**
    * {@inheritdoc}
    */
-  function getMetadata(FieldItemListInterface $items) {
+  public function getMetadata(FieldItemListInterface $items) {
     $format_id = $items[0]->format;
     $metadata['format'] = $format_id;
     $metadata['formatHasTransformations'] = $this->textFormatHasTransformationFilters($format_id);
diff --git a/core/modules/editor/src/Tests/EditorPrivateFileReferenceFilterTest.php b/core/modules/editor/src/Tests/EditorPrivateFileReferenceFilterTest.php
index 5f689b3..3556767 100644
--- a/core/modules/editor/src/Tests/EditorPrivateFileReferenceFilterTest.php
+++ b/core/modules/editor/src/Tests/EditorPrivateFileReferenceFilterTest.php
@@ -36,7 +36,7 @@ class EditorPrivateFileReferenceFilterTest extends BrowserTestBase {
   /**
    * Tests the editor file reference filter with private files.
    */
-  function testEditorPrivateFileReferenceFilter() {
+  public function testEditorPrivateFileReferenceFilter() {
     $author = $this->drupalCreateUser();
     $this->drupalLogin($author);
 
diff --git a/core/modules/editor/src/Tests/EditorSecurityTest.php b/core/modules/editor/src/Tests/EditorSecurityTest.php
index c771439..71174bd 100644
--- a/core/modules/editor/src/Tests/EditorSecurityTest.php
+++ b/core/modules/editor/src/Tests/EditorSecurityTest.php
@@ -222,7 +222,7 @@ protected function setUp() {
    *
    * Tests 8 scenarios. Tests only with a text editor that is not XSS-safe.
    */
-  function testInitialSecurity() {
+  public function testInitialSecurity() {
     $expected = array(
       array(
         'node_id' => 1,
@@ -302,7 +302,7 @@ function testInitialSecurity() {
    * format and contains a <script> tag to the Full HTML text format, the
    * <script> tag would be executed. Unless we apply appropriate filtering.
    */
-  function testSwitchingSecurity() {
+  public function testSwitchingSecurity() {
     $expected = array(
       array(
         'node_id' => 1,
@@ -415,7 +415,7 @@ function testSwitchingSecurity() {
   /**
    * Tests the standard text editor XSS filter being overridden.
    */
-  function testEditorXssFilterOverride() {
+  public function testEditorXssFilterOverride() {
     // First: the Standard text editor XSS filter.
     $this->drupalLogin($this->normalUser);
     $this->drupalGet('node/2/edit');
diff --git a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
index c196751..2a3a54c 100644
--- a/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
+++ b/core/modules/editor/tests/modules/src/Plugin/Editor/UnicornEditor.php
@@ -26,14 +26,14 @@ class UnicornEditor extends EditorBase {
   /**
    * {@inheritdoc}
    */
-  function getDefaultSettings() {
+  public function getDefaultSettings() {
     return array('ponies_too' => TRUE);
   }
 
   /**
    * {@inheritdoc}
    */
-  function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
+  public function settingsForm(array $form, FormStateInterface $form_state, Editor $editor) {
     $form['ponies_too'] = array(
       '#title' => t('Pony mode'),
       '#type' => 'checkbox',
@@ -45,7 +45,7 @@ function settingsForm(array $form, FormStateInterface $form_state, Editor $edito
   /**
    * {@inheritdoc}
    */
-  function getJSSettings(Editor $editor) {
+  public function getJSSettings(Editor $editor) {
     $js_settings = array();
     $settings = $editor->getSettings();
     if ($settings['ponies_too']) {
diff --git a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
index 51eee97..053e5dd 100644
--- a/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
+++ b/core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
@@ -43,7 +43,7 @@ protected function setUp() {
   /**
    * Tests the editor file reference filter.
    */
-  function testEditorFileReferenceFilter() {
+  public function testEditorFileReferenceFilter() {
     $filter = $this->filters['editor_file_reference'];
 
     $test = function($input) use ($filter) {
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
index 30f67d1..e48bd73 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php
@@ -53,7 +53,7 @@ protected function setUp() {
   /**
    * Tests boolean field.
    */
-  function testBooleanField() {
+  public function testBooleanField() {
     $on = $this->randomMachineName();
     $off = $this->randomMachineName();
     $label = $this->randomMachineName();
diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
index 0d0c475..bdb7013 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
@@ -77,7 +77,7 @@ protected function setUp() {
   /**
    * Tests the formatter settings page for the Boolean formatter.
    */
-  function testBooleanFormatterSettings() {
+  public function testBooleanFormatterSettings() {
     // List the options we expect to see on the settings form. Omit the one
     // with the Unicode check/x characters, which does not appear to work
     // well in WebTestBase.
diff --git a/core/modules/field/src/Tests/Email/EmailFieldTest.php b/core/modules/field/src/Tests/Email/EmailFieldTest.php
index 7c22861..c1ebe69 100644
--- a/core/modules/field/src/Tests/Email/EmailFieldTest.php
+++ b/core/modules/field/src/Tests/Email/EmailFieldTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
   /**
    * Tests email field.
    */
-  function testEmailField() {
+  public function testEmailField() {
     // Create a field with settings to validate.
     $field_name = Unicode::strtolower($this->randomMachineName());
     $this->fieldStorage = FieldStorageConfig::create(array(
diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceFieldDefaultValueTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceFieldDefaultValueTest.php
index 6433958..5c1d314 100644
--- a/core/modules/field/src/Tests/EntityReference/EntityReferenceFieldDefaultValueTest.php
+++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceFieldDefaultValueTest.php
@@ -47,7 +47,7 @@ protected function setUp() {
   /**
    * Tests that default values are correctly translated to UUIDs in config.
    */
-  function testEntityReferenceDefaultValue() {
+  public function testEntityReferenceDefaultValue() {
     // Create a node to be referenced.
     $referenced_node = $this->drupalCreateNode(array('type' => 'referenced_content'));
 
@@ -109,7 +109,7 @@ function testEntityReferenceDefaultValue() {
    *
    * @see \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::onDependencyRemoval()
    */
-  function testEntityReferenceDefaultConfigValue() {
+  public function testEntityReferenceDefaultConfigValue() {
     // Create a node to be referenced.
     $referenced_node_type = $this->drupalCreateContentType(array('type' => 'referenced_config_to_delete'));
     $referenced_node_type2 = $this->drupalCreateContentType(array('type' => 'referenced_config_to_preserve'));
diff --git a/core/modules/field/src/Tests/FieldAccessTest.php b/core/modules/field/src/Tests/FieldAccessTest.php
index 0553406..f04abae 100644
--- a/core/modules/field/src/Tests/FieldAccessTest.php
+++ b/core/modules/field/src/Tests/FieldAccessTest.php
@@ -75,7 +75,7 @@ protected function setUp() {
   /**
    * Test that hook_entity_field_access() is called.
    */
-  function testFieldAccess() {
+  public function testFieldAccess() {
 
     // Assert the text is visible.
     $this->drupalGet('node/' . $this->node->id());
diff --git a/core/modules/field/src/Tests/FieldTestBase.php b/core/modules/field/src/Tests/FieldTestBase.php
index 4fe944f..3786c34 100644
--- a/core/modules/field/src/Tests/FieldTestBase.php
+++ b/core/modules/field/src/Tests/FieldTestBase.php
@@ -19,7 +19,7 @@
    * @return
    *   An array of random values, in the format expected for field values.
    */
-  function _generateTestFieldValues($cardinality) {
+  public function _generateTestFieldValues($cardinality) {
     $values = array();
     for ($i = 0; $i < $cardinality; $i++) {
       // field_test fields treat 0 as 'empty value'.
@@ -45,7 +45,7 @@ function _generateTestFieldValues($cardinality) {
    * @param $column
    *   (Optional) The name of the column to check. Defaults to 'value'.
    */
-  function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
+  public function assertFieldValues(EntityInterface $entity, $field_name, $expected_values, $langcode = LanguageInterface::LANGCODE_DEFAULT, $column = 'value') {
     // Re-load the entity to make sure we have the latest changes.
     $storage = $this->container->get('entity_type.manager')
       ->getStorage($entity->getEntityTypeId());
diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php
index 16625a9..95f25af 100644
--- a/core/modules/field/src/Tests/FormTest.php
+++ b/core/modules/field/src/Tests/FormTest.php
@@ -91,7 +91,7 @@ protected function setUp() {
     );
   }
 
-  function testFieldFormSingle() {
+  public function testFieldFormSingle() {
     $field_storage = $this->fieldStorageSingle;
     $field_name = $field_storage['field_name'];
     $this->field['field_name'] = $field_name;
@@ -165,7 +165,7 @@ function testFieldFormSingle() {
   /**
    * Tests field widget default values on entity forms.
    */
-  function testFieldFormDefaultValue() {
+  public function testFieldFormDefaultValue() {
     $field_storage = $this->fieldStorageSingle;
     $field_name = $field_storage['field_name'];
     $this->field['field_name'] = $field_name;
@@ -194,7 +194,7 @@ function testFieldFormDefaultValue() {
     $this->assertTrue($entity->{$field_name}->isEmpty(), 'Field is now empty.');
   }
 
-  function testFieldFormSingleRequired() {
+  public function testFieldFormSingleRequired() {
     $field_storage = $this->fieldStorageSingle;
     $field_name = $field_storage['field_name'];
     $this->field['field_name'] = $field_name;
@@ -231,7 +231,7 @@ function testFieldFormSingleRequired() {
     $this->assertRaw(t('@name field is required.', array('@name' => $this->field['label'])), 'Required field with no value fails validation');
   }
 
-  function testFieldFormUnlimited() {
+  public function testFieldFormUnlimited() {
     $field_storage = $this->fieldStorageUnlimited;
     $field_name = $field_storage['field_name'];
     $this->field['field_name'] = $field_name;
@@ -341,7 +341,7 @@ public function testFieldFormUnlimitedRequired() {
   /**
    * Tests widget handling of multiple required radios.
    */
-  function testFieldFormMultivalueWithRequiredRadio() {
+  public function testFieldFormMultivalueWithRequiredRadio() {
     // Create a multivalue test field.
     $field_storage = $this->fieldStorageUnlimited;
     $field_name = $field_storage['field_name'];
@@ -389,7 +389,7 @@ function testFieldFormMultivalueWithRequiredRadio() {
     $this->assertNoField("{$field_name}[2][value]", 'No extraneous widget is displayed');
   }
 
-  function testFieldFormJSAddMore() {
+  public function testFieldFormJSAddMore() {
     $field_storage = $this->fieldStorageUnlimited;
     $field_name = $field_storage['field_name'];
     $this->field['field_name'] = $field_name;
@@ -448,7 +448,7 @@ function testFieldFormJSAddMore() {
   /**
    * Tests widgets handling multiple values.
    */
-  function testFieldFormMultipleWidget() {
+  public function testFieldFormMultipleWidget() {
     // Create a field with fixed cardinality, configure the form to use a
     // "multiple" widget.
     $field_storage = $this->fieldStorageMultiple;
@@ -493,7 +493,7 @@ function testFieldFormMultipleWidget() {
   /**
    * Tests fields with no 'edit' access.
    */
-  function testFieldFormAccess() {
+  public function testFieldFormAccess() {
     $entity_type = 'entity_test_rev';
     // Create a "regular" field.
     $field_storage = $this->fieldStorageSingle;
@@ -585,7 +585,7 @@ function testFieldFormAccess() {
   /**
    * Tests hiding a field in a form.
    */
-  function testHiddenField() {
+  public function testHiddenField() {
     $entity_type = 'entity_test_rev';
     $field_storage = $this->fieldStorageSingle;
     $field_storage['entity_type'] = $entity_type;
diff --git a/core/modules/field/src/Tests/NestedFormTest.php b/core/modules/field/src/Tests/NestedFormTest.php
index 8b3402d..3eed2aa 100644
--- a/core/modules/field/src/Tests/NestedFormTest.php
+++ b/core/modules/field/src/Tests/NestedFormTest.php
@@ -52,7 +52,7 @@ protected function setUp() {
   /**
    * Tests Field API form integration within a subform.
    */
-  function testNestedFieldForm() {
+  public function testNestedFieldForm() {
     // Add two fields on the 'entity_test'
     FieldStorageConfig::create($this->fieldStorageSingle)->save();
     FieldStorageConfig::create($this->fieldStorageUnlimited)->save();
diff --git a/core/modules/field/src/Tests/Number/NumberFieldTest.php b/core/modules/field/src/Tests/Number/NumberFieldTest.php
index 14777ec..047b74f 100644
--- a/core/modules/field/src/Tests/Number/NumberFieldTest.php
+++ b/core/modules/field/src/Tests/Number/NumberFieldTest.php
@@ -38,7 +38,7 @@ protected function setUp() {
   /**
    * Test decimal field.
    */
-  function testNumberDecimalField() {
+  public function testNumberDecimalField() {
     // Create a field with settings to validate.
     $field_name = Unicode::strtolower($this->randomMachineName());
     FieldStorageConfig::create(array(
@@ -125,7 +125,7 @@ function testNumberDecimalField() {
   /**
    * Test integer field.
    */
-  function testNumberIntegerField() {
+  public function testNumberIntegerField() {
     $minimum = rand(-4000, -2000);
     $maximum = rand(2000, 4000);
 
@@ -271,7 +271,7 @@ function testNumberIntegerField() {
   /**
   * Test float field.
   */
-  function testNumberFloatField() {
+ public function testNumberFloatField() {
     // Create a field with settings to validate.
     $field_name = Unicode::strtolower($this->randomMachineName());
     FieldStorageConfig::create(array(
@@ -361,7 +361,7 @@ function testNumberFloatField() {
   /**
    * Test default formatter behavior
    */
-  function testNumberFormatter() {
+  public function testNumberFormatter() {
     $type = Unicode::strtolower($this->randomMachineName());
     $float_field = Unicode::strtolower($this->randomMachineName());
     $integer_field = Unicode::strtolower($this->randomMachineName());
@@ -492,7 +492,7 @@ function testNumberFormatter() {
   /**
    * Tests setting the minimum value of a float field through the interface.
    */
-  function testCreateNumberFloatField() {
+  public function testCreateNumberFloatField() {
     // Create a float field.
     $field_name = Unicode::strtolower($this->randomMachineName());
     FieldStorageConfig::create(array(
@@ -517,7 +517,7 @@ function testCreateNumberFloatField() {
   /**
    * Tests setting the minimum value of a decimal field through the interface.
    */
-  function testCreateNumberDecimalField() {
+  public function testCreateNumberDecimalField() {
     // Create a decimal field.
     $field_name = Unicode::strtolower($this->randomMachineName());
     FieldStorageConfig::create(array(
@@ -542,7 +542,7 @@ function testCreateNumberDecimalField() {
   /**
    * Helper function to set the minimum value of a field.
    */
-  function assertSetMinimumValue($field, $minimum_value) {
+  public function assertSetMinimumValue($field, $minimum_value) {
     $field_configuration_url = 'entity_test/structure/entity_test/fields/entity_test.entity_test.' . $field->getName();
 
     // Set the minimum value.
diff --git a/core/modules/field/src/Tests/String/StringFieldTest.php b/core/modules/field/src/Tests/String/StringFieldTest.php
index 0ac5748..3122f81 100644
--- a/core/modules/field/src/Tests/String/StringFieldTest.php
+++ b/core/modules/field/src/Tests/String/StringFieldTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
   /**
    * Test widgets.
    */
-  function testTextfieldWidgets() {
+  public function testTextfieldWidgets() {
     $this->_testTextfieldWidgets('string', 'string_textfield');
     $this->_testTextfieldWidgets('string_long', 'string_textarea');
   }
@@ -49,7 +49,7 @@ function testTextfieldWidgets() {
   /**
    * Helper function for testTextfieldWidgets().
    */
-  function _testTextfieldWidgets($field_type, $widget_type) {
+  public function _testTextfieldWidgets($field_type, $widget_type) {
     // Create a field.
     $field_name = Unicode::strtolower($this->randomMachineName());
     $field_storage = FieldStorageConfig::create(array(
diff --git a/core/modules/field/src/Tests/TranslationWebTest.php b/core/modules/field/src/Tests/TranslationWebTest.php
index eed78a2..5ad1331 100644
--- a/core/modules/field/src/Tests/TranslationWebTest.php
+++ b/core/modules/field/src/Tests/TranslationWebTest.php
@@ -85,7 +85,7 @@ protected function setUp() {
   /**
    * Tests field translations when creating a new revision.
    */
-  function testFieldFormTranslationRevisions() {
+  public function testFieldFormTranslationRevisions() {
     $web_user = $this->drupalCreateUser(array('view test entity', 'administer entity_test content'));
     $this->drupalLogin($web_user);
 
diff --git a/core/modules/field/src/Tests/Views/FieldTestBase.php b/core/modules/field/src/Tests/Views/FieldTestBase.php
index 0f977a8..f62680e 100644
--- a/core/modules/field/src/Tests/Views/FieldTestBase.php
+++ b/core/modules/field/src/Tests/Views/FieldTestBase.php
@@ -54,7 +54,7 @@ protected function setUp() {
     ViewTestData::createTestViews(get_class($this), array('field_test_views'));
   }
 
-  function setUpFieldStorages($amount = 3, $type = 'string') {
+  public function setUpFieldStorages($amount = 3, $type = 'string') {
     // Create three fields.
     $field_names = array();
     for ($i = 0; $i < $amount; $i++) {
@@ -69,7 +69,7 @@ function setUpFieldStorages($amount = 3, $type = 'string') {
     return $field_names;
   }
 
-  function setUpFields($bundle = 'page') {
+  public function setUpFields($bundle = 'page') {
     foreach ($this->fieldStorages as $key => $field_storage) {
       $this->fields[$key] = FieldConfig::create([
         'field_storage' => $field_storage,
diff --git a/core/modules/field/src/Tests/reEnableModuleFieldTest.php b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
index b718e75..ea9fb35 100644
--- a/core/modules/field/src/Tests/reEnableModuleFieldTest.php
+++ b/core/modules/field/src/Tests/reEnableModuleFieldTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
    *
    * @see field_system_info_alter()
    */
-  function testReEnabledField() {
+  public function testReEnabledField() {
 
     // Add a telephone field to the article content type.
     $field_storage = FieldStorageConfig::create(array(
diff --git a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
index b01926a..faeb712 100644
--- a/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
+++ b/core/modules/field/tests/src/Kernel/BulkDeleteTest.php
@@ -58,7 +58,7 @@ class BulkDeleteTest extends FieldKernelTestBase {
    * @param $actual_hooks
    *   The array of actual hook invocations recorded by field_test_memorize().
    */
-  function checkHooksInvocations($expected_hooks, $actual_hooks) {
+  public function checkHooksInvocations($expected_hooks, $actual_hooks) {
     foreach ($expected_hooks as $hook => $invocations) {
       $actual_invocations = $actual_hooks[$hook];
 
@@ -158,7 +158,7 @@ protected function setUp() {
    * This tests how EntityFieldQuery interacts with field deletion and could be
    * moved to FieldCrudTestCase, but depends on this class's setUp().
    */
-  function testDeleteField() {
+  public function testDeleteField() {
     $bundle = reset($this->bundles);
     $field_storage = reset($this->fieldStorages);
     $field_name = $field_storage->getName();
@@ -307,7 +307,7 @@ public function testPurgeWithDeletedAndActiveField() {
    * Verify that field data items and fields are purged when a field storage is
    * deleted.
    */
-  function testPurgeField() {
+  public function testPurgeField() {
     // Start recording hook invocations.
     field_test_memorize();
 
@@ -368,7 +368,7 @@ function testPurgeField() {
    * Verify that field storages are preserved and purged correctly as multiple
    * fields are deleted and purged.
    */
-  function testPurgeFieldStorage() {
+  public function testPurgeFieldStorage() {
     // Start recording hook invocations.
     field_test_memorize();
 
diff --git a/core/modules/field/tests/src/Kernel/DisplayApiTest.php b/core/modules/field/tests/src/Kernel/DisplayApiTest.php
index c1218a6..927efa6 100644
--- a/core/modules/field/tests/src/Kernel/DisplayApiTest.php
+++ b/core/modules/field/tests/src/Kernel/DisplayApiTest.php
@@ -119,7 +119,7 @@ protected function setUp() {
   /**
    * Tests the FieldItemListInterface::view() method.
    */
-  function testFieldItemListView() {
+  public function testFieldItemListView() {
     $items = $this->entity->get($this->fieldName);
 
     \Drupal::service('theme_handler')->install(['classy']);
@@ -218,7 +218,7 @@ function testFieldItemListView() {
   /**
    * Tests the FieldItemInterface::view() method.
    */
-  function testFieldItemView() {
+  public function testFieldItemView() {
     // No display settings: check that default display settings are used.
     $settings = \Drupal::service('plugin.manager.field.formatter')->getDefaultSettings('field_test_default');
     $setting = $settings['test_formatter_setting'];
@@ -282,7 +282,7 @@ function testFieldItemView() {
   /**
    * Tests that the prepareView() formatter method still fires for empty values.
    */
-  function testFieldEmpty() {
+  public function testFieldEmpty() {
     // Uses \Drupal\field_test\Plugin\Field\FieldFormatter\TestFieldEmptyFormatter.
     $display = array(
       'label' => 'hidden',
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
index ba96bc9..82012bb 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachOtherTest.php
@@ -23,7 +23,7 @@ protected function setUp() {
   /**
    * Test rendering fields with EntityDisplay build().
    */
-  function testEntityDisplayBuild() {
+  public function testEntityDisplayBuild() {
     $this->createFieldWithStorage('_2');
 
     $entity_type = 'entity_test';
@@ -133,7 +133,7 @@ function testEntityDisplayBuild() {
   /**
    * Tests rendering fields with EntityDisplay::buildMultiple().
    */
-  function testEntityDisplayViewMultiple() {
+  public function testEntityDisplayViewMultiple() {
     // Use a formatter that has a prepareView() step.
     $display = entity_get_display('entity_test', 'entity_test', 'full')
       ->setComponent($this->fieldTestData->field_name, array(
@@ -160,7 +160,7 @@ function testEntityDisplayViewMultiple() {
    * Complements unit test coverage in
    * \Drupal\Tests\Core\Entity\Sql\SqlContentEntityStorageTest.
    */
-  function testEntityCache() {
+  public function testEntityCache() {
     // Initialize random values and a test entity.
     $entity_init = EntityTest::create(array('type' => $this->fieldTestData->field->getTargetBundle()));
     $values = $this->_generateTestFieldValues($this->fieldTestData->field_storage->getCardinality());
@@ -243,7 +243,7 @@ function testEntityCache() {
    * This could be much more thorough, but it does verify that the correct
    * widgets show up.
    */
-  function testEntityFormDisplayBuildForm() {
+  public function testEntityFormDisplayBuildForm() {
     $this->createFieldWithStorage('_2');
 
     $entity_type = 'entity_test';
@@ -288,7 +288,7 @@ function testEntityFormDisplayBuildForm() {
   /**
    * Tests \Drupal\Core\Entity\Display\EntityFormDisplayInterface::extractFormValues().
    */
-  function testEntityFormDisplayExtractFormValues() {
+  public function testEntityFormDisplayExtractFormValues() {
     $this->createFieldWithStorage('_2');
 
     $entity_type = 'entity_test';
diff --git a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
index 8237ef4..87b78b0 100644
--- a/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldAttachStorageTest.php
@@ -24,7 +24,7 @@ protected function setUp() {
    * Works independently of the underlying field storage backend. Inserts or
    * updates random field data and then loads and verifies the data.
    */
-  function testFieldAttachSaveLoad() {
+  public function testFieldAttachSaveLoad() {
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('', $entity_type);
     $cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -72,7 +72,7 @@ function testFieldAttachSaveLoad() {
   /**
    * Test the 'multiple' load feature.
    */
-  function testFieldAttachLoadMultiple() {
+  public function testFieldAttachLoadMultiple() {
     $entity_type = 'entity_test_rev';
 
     // Define 2 bundles.
@@ -144,7 +144,7 @@ function testFieldAttachLoadMultiple() {
   /**
    * Tests insert and update with empty or NULL fields.
    */
-  function testFieldAttachSaveEmptyData() {
+  public function testFieldAttachSaveEmptyData() {
     $entity_type = 'entity_test';
     $this->createFieldWithStorage('', $entity_type);
 
@@ -192,7 +192,7 @@ function testFieldAttachSaveEmptyData() {
   /**
    * Test insert with empty or NULL fields, with default value.
    */
-  function testFieldAttachSaveEmptyDataDefaultValue() {
+  public function testFieldAttachSaveEmptyDataDefaultValue() {
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('', $entity_type);
 
@@ -225,7 +225,7 @@ function testFieldAttachSaveEmptyDataDefaultValue() {
   /**
    * Test entity deletion.
    */
-  function testFieldAttachDelete() {
+  public function testFieldAttachDelete() {
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('', $entity_type);
     $cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -285,7 +285,7 @@ function testFieldAttachDelete() {
   /**
    * Test entity_bundle_create().
    */
-  function testEntityCreateBundle() {
+  public function testEntityCreateBundle() {
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('', $entity_type);
     $cardinality = $this->fieldTestData->field_storage->getCardinality();
@@ -313,7 +313,7 @@ function testEntityCreateBundle() {
   /**
    * Test entity_bundle_delete().
    */
-  function testEntityDeleteBundle() {
+  public function testEntityDeleteBundle() {
     $entity_type = 'entity_test_rev';
     $this->createFieldWithStorage('', $entity_type);
 
diff --git a/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
index a61d645..360ea92 100644
--- a/core/modules/field/tests/src/Kernel/FieldCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldCrudTest.php
@@ -37,7 +37,7 @@ class FieldCrudTest extends FieldKernelTestBase {
    */
   protected $fieldDefinition;
 
-  function setUp() {
+  protected function setUp() {
     parent::setUp();
 
     $this->fieldStorageDefinition = array(
@@ -63,7 +63,7 @@ function setUp() {
   /**
    * Test the creation of a field.
    */
-  function testCreateField() {
+  public function testCreateField() {
     // Set a state flag so that field_test.module knows to add an in-memory
     // constraint for this field.
     \Drupal::state()->set('field_test_add_constraint', $this->fieldStorage->getName());
@@ -174,7 +174,7 @@ public function testCreateFieldCustomStorage() {
   /**
    * Test reading back a field definition.
    */
-  function testReadField() {
+  public function testReadField() {
     FieldConfig::create($this->fieldDefinition)->save();
 
     // Read the field back.
@@ -187,7 +187,7 @@ function testReadField() {
   /**
    * Test the update of a field.
    */
-  function testUpdateField() {
+  public function testUpdateField() {
     FieldConfig::create($this->fieldDefinition)->save();
 
     // Check that basic changes are saved.
@@ -209,7 +209,7 @@ function testUpdateField() {
   /**
    * Test the deletion of a field.
    */
-  function testDeleteField() {
+  public function testDeleteField() {
     // TODO: Test deletion of the data stored in the field also.
     // Need to check that data for a 'deleted' field / storage doesn't get loaded
     // Need to check data marked deleted is cleaned on cron (not implemented yet...)
@@ -243,7 +243,7 @@ function testDeleteField() {
   /**
    * Tests the cross deletion behavior between field storages and fields.
    */
-  function testDeleteFieldCrossDeletion() {
+  public function testDeleteFieldCrossDeletion() {
     $field_definition_2 = $this->fieldDefinition;
     $field_definition_2['bundle'] .= '_another_bundle';
     entity_test_create_bundle($field_definition_2['bundle']);
diff --git a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
index 8cd0291..c5d7549 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportChangeTest.php
@@ -25,7 +25,7 @@ class FieldImportChangeTest extends FieldKernelTestBase {
   /**
    * Tests importing an updated field.
    */
-  function testImportChange() {
+  public function testImportChange() {
     $this->installConfig(['field_test_config']);
     $field_storage_id = 'field_test_import';
     $field_id = "entity_test.entity_test.$field_storage_id";
diff --git a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
index 3478dd3..a0b5d9f 100644
--- a/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldImportCreateTest.php
@@ -16,7 +16,7 @@ class FieldImportCreateTest extends FieldKernelTestBase {
   /**
    * Tests creating field storages and fields during default config import.
    */
-  function testImportCreateDefault() {
+  public function testImportCreateDefault() {
     $field_name = 'field_test_import';
     $field_storage_id = "entity_test.$field_name";
     $field_id = "entity_test.entity_test.$field_name";
@@ -70,7 +70,7 @@ function testImportCreateDefault() {
   /**
    * Tests creating field storages and fields during config import.
    */
-  function testImportCreate() {
+  public function testImportCreate() {
     // A field storage with one single field.
     $field_name = 'field_test_import_sync';
     $field_storage_id = "entity_test.$field_name";
diff --git a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
index da1948c..fa731db 100644
--- a/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldStorageCrudTest.php
@@ -31,7 +31,7 @@ class FieldStorageCrudTest extends FieldKernelTestBase {
   /**
    * Test the creation of a field storage.
    */
-  function testCreate() {
+  public function testCreate() {
     $field_storage_definition = array(
       'field_name' => 'field_2',
       'entity_type' => 'entity_test',
@@ -186,7 +186,7 @@ function testCreate() {
    * This behavior is needed to allow field storage creation within updates,
    * since plugin classes (and thus the field type schema) cannot be accessed.
    */
-  function testCreateWithExplicitSchema() {
+  public function testCreateWithExplicitSchema() {
     $schema = array(
       'dummy' => 'foobar'
     );
@@ -202,7 +202,7 @@ function testCreateWithExplicitSchema() {
   /**
    * Tests reading field storage definitions.
    */
-  function testRead() {
+  public function testRead() {
     $field_storage_definition = array(
       'field_name' => 'field_1',
       'entity_type' => 'entity_test',
@@ -234,7 +234,7 @@ function testRead() {
   /**
    * Test creation of indexes on data column.
    */
-  function testIndexes() {
+  public function testIndexes() {
     // Check that indexes specified by the field type are used by default.
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'field_1',
@@ -284,7 +284,7 @@ function testIndexes() {
   /**
    * Test the deletion of a field storage.
    */
-  function testDelete() {
+  public function testDelete() {
     // TODO: Also test deletion of the data stored in the field ?
 
     // Create two fields (so we can test that only one is deleted).
@@ -363,7 +363,7 @@ function testDelete() {
     }
   }
 
-  function testUpdateFieldType() {
+  public function testUpdateFieldType() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'field_type',
       'entity_type' => 'entity_test',
@@ -384,7 +384,7 @@ function testUpdateFieldType() {
   /**
    * Test updating a field storage.
    */
-  function testUpdate() {
+  public function testUpdate() {
     // Create a field with a defined cardinality, so that we can ensure it's
     // respected. Since cardinality enforcement is consistent across database
     // systems, it makes a good test case.
@@ -426,7 +426,7 @@ function testUpdate() {
   /**
    * Test field type modules forbidding an update.
    */
-  function testUpdateForbid() {
+  public function testUpdateForbid() {
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'forbidden',
       'entity_type' => 'entity_test',
diff --git a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
index 6d44384..6164887 100644
--- a/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldTypePluginManagerTest.php
@@ -17,7 +17,7 @@ class FieldTypePluginManagerTest extends FieldKernelTestBase {
   /**
    * Tests the default settings convenience methods.
    */
-  function testDefaultSettings() {
+  public function testDefaultSettings() {
     $field_type_manager = \Drupal::service('plugin.manager.field.field_type');
     foreach (array('test_field', 'shape', 'hidden_test_field') as $type) {
       $definition = $field_type_manager->getDefinition($type);
diff --git a/core/modules/field/tests/src/Kernel/FieldValidationTest.php b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
index 3715832..2173c1a 100644
--- a/core/modules/field/tests/src/Kernel/FieldValidationTest.php
+++ b/core/modules/field/tests/src/Kernel/FieldValidationTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests that the number of values is validated against the field cardinality.
    */
-  function testCardinalityConstraint() {
+  public function testCardinalityConstraint() {
     $cardinality = $this->fieldTestData->field_storage->getCardinality();
     $entity = $this->entity;
 
@@ -62,7 +62,7 @@ function testCardinalityConstraint() {
   /**
    * Tests that constraints defined by the field type are validated.
    */
-  function testFieldConstraints() {
+  public function testFieldConstraints() {
     $cardinality = $this->fieldTestData->field_storage->getCardinality();
     $entity = $this->entity;
 
diff --git a/core/modules/field/tests/src/Kernel/TranslationTest.php b/core/modules/field/tests/src/Kernel/TranslationTest.php
index 78172a3..d0a6f73 100644
--- a/core/modules/field/tests/src/Kernel/TranslationTest.php
+++ b/core/modules/field/tests/src/Kernel/TranslationTest.php
@@ -106,7 +106,7 @@ protected function setUp() {
   /**
    * Test translatable fields storage/retrieval.
    */
-  function testTranslatableFieldSaveLoad() {
+  public function testTranslatableFieldSaveLoad() {
     // Enable field translations for nodes.
     field_test_entity_info_translatable('node', TRUE);
     $entity_type = \Drupal::entityManager()->getDefinition('node');
diff --git a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
index 3eff2ca..b2dca18 100644
--- a/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
+++ b/core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
@@ -13,7 +13,7 @@ class WidgetPluginManagerTest extends FieldKernelTestBase {
   /**
    * Tests that the widget definitions alter hook works.
    */
-  function testWidgetDefinitionAlter() {
+  public function testWidgetDefinitionAlter() {
     $widget_definition = \Drupal::service('plugin.manager.field.widget')->getDefinition('test_field_widget_multiple');
 
     // Test if hook_field_widget_info_alter is being called.
diff --git a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
index 59469ac..162d4d4 100644
--- a/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
+++ b/core/modules/field_ui/src/Tests/FieldUIDeleteTest.php
@@ -48,7 +48,7 @@ protected function setUp() {
   /**
    * Tests that deletion removes field storages and fields as expected.
    */
-  function testDeleteField() {
+  public function testDeleteField() {
     $field_label = $this->randomMachineName();
     $field_name_input = 'test';
     $field_name = 'field_test';
diff --git a/core/modules/field_ui/src/Tests/FieldUIIndentationTest.php b/core/modules/field_ui/src/Tests/FieldUIIndentationTest.php
index 898b417..f3368e3 100644
--- a/core/modules/field_ui/src/Tests/FieldUIIndentationTest.php
+++ b/core/modules/field_ui/src/Tests/FieldUIIndentationTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
 
   }
 
-  function testIndentation() {
+  public function testIndentation() {
     $this->drupalGet('admin/structure/types/manage/page/display');
     $this->assertRaw('js-indentation indentation');
   }
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 4cd2901..c795158 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -59,7 +59,7 @@ protected function setUp() {
   /**
    * Tests formatter settings.
    */
-  function testFormatterUI() {
+  public function testFormatterUI() {
     $manage_fields = 'admin/structure/types/manage/' . $this->type;
     $manage_display = $manage_fields . '/display';
 
@@ -289,7 +289,7 @@ public function testWidgetUI() {
   /**
    * Tests switching view modes to use custom or 'default' settings'.
    */
-  function testViewModeCustom() {
+  public function testViewModeCustom() {
     // Create a field, and a node with some data for the field.
     $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->type, 'test', 'Test field');
     \Drupal::entityManager()->clearCachedFieldDefinitions();
@@ -371,7 +371,7 @@ public function testViewModeLocalTasks() {
   /**
    * Tests that fields with no explicit display settings do not break.
    */
-  function testNonInitializedFields() {
+  public function testNonInitializedFields() {
     // Create a test field.
     $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->type, 'test', 'Test');
 
@@ -384,7 +384,7 @@ function testNonInitializedFields() {
   /**
    * Tests hiding the view modes fieldset when there's only one available.
    */
-  function testSingleViewMode() {
+  public function testSingleViewMode() {
     $this->drupalGet('admin/structure/taxonomy/manage/' . $this->vocabulary . '/display');
     $this->assertNoText('Use custom display settings for the following view modes', 'Custom display settings fieldset found.');
 
@@ -395,7 +395,7 @@ function testSingleViewMode() {
   /**
    * Tests that a message is shown when there are no fields.
    */
-  function testNoFieldsDisplayOverview() {
+  public function testNoFieldsDisplayOverview() {
     // Create a fresh content type without any fields.
     NodeType::create(array(
       'type' => 'no_fields',
@@ -421,7 +421,7 @@ function testNoFieldsDisplayOverview() {
    * @return
    *   TRUE on pass, FALSE on fail.
    */
-  function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message) {
+  public function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message) {
     return $this->assertNodeViewTextHelper($node, $view_mode, $text, $message, FALSE);
   }
 
@@ -439,7 +439,7 @@ function assertNodeViewText(EntityInterface $node, $view_mode, $text, $message)
    * @return
    *   TRUE on pass, FALSE on fail.
    */
-  function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message) {
+  public function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message) {
     return $this->assertNodeViewTextHelper($node, $view_mode, $text, $message, TRUE);
   }
 
@@ -463,7 +463,7 @@ function assertNodeViewNoText(EntityInterface $node, $view_mode, $text, $message
    * @return
    *   TRUE on pass, FALSE on fail.
    */
-  function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $text, $message, $not_exists) {
+  public function assertNodeViewTextHelper(EntityInterface $node, $view_mode, $text, $message, $not_exists) {
     // Make sure caches on the tester side are refreshed after changes
     // submitted on the tested side.
     \Drupal::entityManager()->clearCachedFieldDefinitions();
diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
index cbe9f53..86f072c 100644
--- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php
+++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php
@@ -111,7 +111,7 @@ protected function setUp() {
    * In order to act on the same fields, and not create the fields over and over
    * again the following tests create, update and delete the same fields.
    */
-  function testCRUDFields() {
+  public function testCRUDFields() {
     $this->manageFieldsPage();
     $this->createField();
     $this->updateField();
@@ -128,7 +128,7 @@ function testCRUDFields() {
    * @param string $type
    *   (optional) The name of a content type.
    */
-  function manageFieldsPage($type = '') {
+  public function manageFieldsPage($type = '') {
     $type = empty($type) ? $this->contentType : $type;
     $this->drupalGet('admin/structure/types/manage/' . $type . '/fields');
     // Check all table columns.
@@ -178,7 +178,7 @@ function manageFieldsPage($type = '') {
    * @todo Assert properties can bet set in the form and read back in
    * $field_storage and $fields.
    */
-  function createField() {
+  public function createField() {
     // Create a test field.
     $this->fieldUIAddNewField('admin/structure/types/manage/' . $this->contentType, $this->fieldNameInput, $this->fieldLabel);
   }
@@ -186,7 +186,7 @@ function createField() {
   /**
    * Tests editing an existing field.
    */
-  function updateField() {
+  public function updateField() {
     $field_id = 'node.' . $this->contentType . '.' . $this->fieldName;
     // Go to the field edit page.
     $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/' . $field_id . '/storage');
@@ -217,7 +217,7 @@ function updateField() {
   /**
    * Tests adding an existing field in another content type.
    */
-  function addExistingField() {
+  public function addExistingField() {
     // Check "Re-use existing field" appears.
     $this->drupalGet('admin/structure/types/manage/page/fields/add-field');
     $this->assertRaw(t('Re-use an existing field'), '"Re-use existing field" was found.');
@@ -238,7 +238,7 @@ function addExistingField() {
    * We do not test if the number can be submitted with anything else than a
    * numeric value. That is tested already in FormTest::testNumber().
    */
-  function cardinalitySettings() {
+  public function cardinalitySettings() {
     $field_edit_path = 'admin/structure/types/manage/article/fields/node.article.body/storage';
 
     // Assert the cardinality other field cannot be empty when cardinality is
@@ -364,7 +364,7 @@ protected function addPersistentFieldStorage() {
    * @param $entity_type
    *   The entity type for the field.
    */
-  function assertFieldSettings($bundle, $field_name, $string = 'dummy test string', $entity_type = 'node') {
+  public function assertFieldSettings($bundle, $field_name, $string = 'dummy test string', $entity_type = 'node') {
     // Assert field storage settings.
     $field_storage = FieldStorageConfig::loadByName($entity_type, $field_name);
     $this->assertTrue($field_storage->getSetting('test_field_storage_setting') == $string, 'Field storage settings were found.');
@@ -377,7 +377,7 @@ function assertFieldSettings($bundle, $field_name, $string = 'dummy test string'
   /**
    * Tests that the 'field_prefix' setting works on Field UI.
    */
-  function testFieldPrefix() {
+  public function testFieldPrefix() {
     // Change default field prefix.
     $field_prefix = strtolower($this->randomMachineName(10));
     $this->config('field_ui.settings')->set('field_prefix', $field_prefix)->save();
@@ -403,7 +403,7 @@ function testFieldPrefix() {
   /**
    * Tests that default value is correctly validated and saved.
    */
-  function testDefaultValue() {
+  public function testDefaultValue() {
     // Create a test field storage and field.
     $field_name = 'test';
     FieldStorageConfig::create(array(
@@ -479,7 +479,7 @@ function testDefaultValue() {
   /**
    * Tests that deletion removes field storages and fields as expected.
    */
-  function testDeleteField() {
+  public function testDeleteField() {
     // Create a new field.
     $bundle_path1 = 'admin/structure/types/manage/' . $this->contentType;
     $this->fieldUIAddNewField($bundle_path1, $this->fieldNameInput, $this->fieldLabel);
@@ -513,7 +513,7 @@ function testDeleteField() {
   /**
    * Tests that Field UI respects disallowed field names.
    */
-  function testDisallowedFieldNames() {
+  public function testDisallowedFieldNames() {
     // Reset the field prefix so we can test properly.
     $this->config('field_ui.settings')->set('field_prefix', '')->save();
 
@@ -539,7 +539,7 @@ function testDisallowedFieldNames() {
   /**
    * Tests that Field UI respects locked fields.
    */
-  function testLockedField() {
+  public function testLockedField() {
     // Create a locked field and attach it to a bundle. We need to do this
     // programmatically as there's no way to create a locked field through UI.
     $field_name = strtolower($this->randomMachineName(8));
@@ -576,7 +576,7 @@ function testLockedField() {
   /**
    * Tests that Field UI respects the 'no_ui' flag in the field type definition.
    */
-  function testHiddenFields() {
+  public function testHiddenFields() {
     // Check that the field type is not available in the 'add new field' row.
     $this->drupalGet('admin/structure/types/manage/' . $this->contentType . '/fields/add-field');
     $this->assertFalse($this->xpath('//select[@id="edit-new-storage-type"]//option[@value="hidden_test_field"]'), "The 'add new field' select respects field types 'no_ui' property.");
@@ -627,7 +627,7 @@ function testHiddenFields() {
   /**
    * Tests that a duplicate field name is caught by validation.
    */
-  function testDuplicateFieldName() {
+  public function testDuplicateFieldName() {
     // field_tags already exists, so we're expecting an error when trying to
     // create a new field with the same name.
     $edit = array(
@@ -659,7 +659,7 @@ public function testExternalDestinations() {
   /**
    * Tests that deletion removes field storages and fields as expected for a term.
    */
-  function testDeleteTaxonomyField() {
+  public function testDeleteTaxonomyField() {
     // Create a new field.
     $bundle_path = 'admin/structure/taxonomy/manage/tags/overview';
 
@@ -677,7 +677,7 @@ function testDeleteTaxonomyField() {
   /**
    * Tests that help descriptions render valid HTML.
    */
-  function testHelpDescriptions() {
+  public function testHelpDescriptions() {
     // Create an image field
     FieldStorageConfig::create(array(
       'field_name' => 'field_image',
@@ -717,7 +717,7 @@ function testHelpDescriptions() {
   /**
    * Tests that the field list administration page operates correctly.
    */
-  function fieldListAdminPage() {
+  public function fieldListAdminPage() {
     $this->drupalGet('admin/reports/fields');
     $this->assertText($this->fieldName, 'Field name is displayed in field list.');
     $this->assertTrue($this->assertLinkByHref('admin/structure/types/manage/' . $this->contentType . '/fields'), 'Link to content type using field is displayed in field list.');
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index e92cef3..e18d1a6 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -17,7 +17,7 @@ protected function setUp() {
   /**
    * Test the public file transfer system.
    */
-  function testPublicFileTransfer() {
+  public function testPublicFileTransfer() {
     // Test generating a URL to a created file.
     $file = $this->createFile();
     $url = file_create_url($file->getFileUri());
@@ -86,7 +86,7 @@ protected function doPrivateFileTransferTest() {
   /**
    * Test file_create_url().
    */
-  function testFileCreateUrl() {
+  public function testFileCreateUrl() {
 
     // Tilde (~) is excluded from this test because it is encoded by
     // rawurlencode() in PHP 5.2 but not in PHP 5.3, as per RFC 3986.
diff --git a/core/modules/file/src/Tests/FileFieldDisplayTest.php b/core/modules/file/src/Tests/FileFieldDisplayTest.php
index 142751a..6c0e49f 100644
--- a/core/modules/file/src/Tests/FileFieldDisplayTest.php
+++ b/core/modules/file/src/Tests/FileFieldDisplayTest.php
@@ -15,7 +15,7 @@ class FileFieldDisplayTest extends FileFieldTestBase {
   /**
    * Tests normal formatter display on node display.
    */
-  function testNodeDisplay() {
+  public function testNodeDisplay() {
     $field_name = strtolower($this->randomMachineName());
     $type_name = 'article';
     $field_storage_settings = array(
@@ -102,7 +102,7 @@ function testNodeDisplay() {
   /**
    * Tests default display of File Field.
    */
-  function testDefaultFileFieldDisplay() {
+  public function testDefaultFileFieldDisplay() {
     $field_name = strtolower($this->randomMachineName());
     $type_name = 'article';
     $field_storage_settings = array(
@@ -129,7 +129,7 @@ function testDefaultFileFieldDisplay() {
   /**
    * Tests description toggle for field instance configuration.
    */
-  function testDescToggle() {
+  public function testDescToggle() {
     $type_name = 'test';
     $field_type = 'file';
     $field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldPathTest.php b/core/modules/file/src/Tests/FileFieldPathTest.php
index c9a15de..3f6f672 100644
--- a/core/modules/file/src/Tests/FileFieldPathTest.php
+++ b/core/modules/file/src/Tests/FileFieldPathTest.php
@@ -13,7 +13,7 @@ class FileFieldPathTest extends FileFieldTestBase {
   /**
    * Tests the normal formatter display on node display.
    */
-  function testUploadPath() {
+  public function testUploadPath() {
     /** @var \Drupal\node\NodeStorageInterface $node_storage */
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $field_name = strtolower($this->randomMachineName());
@@ -79,7 +79,7 @@ function testUploadPath() {
    * @param string $message
    *   The message to display with this assertion.
    */
-  function assertPathMatch($expected_path, $actual_path, $message) {
+  public function assertPathMatch($expected_path, $actual_path, $message) {
     // Strip off the extension of the expected path to allow for _0, _1, etc.
     // suffixes when the file hits a duplicate name.
     $pos = strrpos($expected_path, '.');
diff --git a/core/modules/file/src/Tests/FileFieldRSSContentTest.php b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
index 0422514..ef6c33c 100644
--- a/core/modules/file/src/Tests/FileFieldRSSContentTest.php
+++ b/core/modules/file/src/Tests/FileFieldRSSContentTest.php
@@ -21,7 +21,7 @@ class FileFieldRSSContentTest extends FileFieldTestBase {
   /**
    * Tests RSS enclosure formatter display for RSS feeds.
    */
-  function testFileFieldRSSContent() {
+  public function testFileFieldRSSContent() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $field_name = strtolower($this->randomMachineName());
     $type_name = 'article';
diff --git a/core/modules/file/src/Tests/FileFieldRevisionTest.php b/core/modules/file/src/Tests/FileFieldRevisionTest.php
index f5d00c7..68c72dc 100644
--- a/core/modules/file/src/Tests/FileFieldRevisionTest.php
+++ b/core/modules/file/src/Tests/FileFieldRevisionTest.php
@@ -21,7 +21,7 @@ class FileFieldRevisionTest extends FileFieldTestBase {
    *  - When the last revision that uses a file is deleted, the original file
    *    should be deleted also.
    */
-  function testRevisions() {
+  public function testRevisions() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldTestBase.php b/core/modules/file/src/Tests/FileFieldTestBase.php
index 307eb4d..6ba86f5 100644
--- a/core/modules/file/src/Tests/FileFieldTestBase.php
+++ b/core/modules/file/src/Tests/FileFieldTestBase.php
@@ -39,7 +39,7 @@ protected function setUp() {
    *
    * @return \Drupal\file\FileInterface
    */
-  function getTestFile($type_name, $size = NULL) {
+  public function getTestFile($type_name, $size = NULL) {
     // Get a file to upload.
     $file = current($this->drupalGetTestFiles($type_name, $size));
 
@@ -53,7 +53,7 @@ function getTestFile($type_name, $size = NULL) {
   /**
    * Retrieves the fid of the last inserted file.
    */
-  function getLastFileId() {
+  public function getLastFileId() {
     return (int) db_query('SELECT MAX(fid) FROM {file_managed}')->fetchField();
   }
 
@@ -73,7 +73,7 @@ function getLastFileId() {
    * @param array $widget_settings
    *   A list of widget settings that will be added to the widget defaults.
    */
-  function createFileField($name, $entity_type, $bundle, $storage_settings = array(), $field_settings = array(), $widget_settings = array()) {
+  public function createFileField($name, $entity_type, $bundle, $storage_settings = array(), $field_settings = array(), $widget_settings = array()) {
     $field_storage = FieldStorageConfig::create(array(
       'entity_type' => $entity_type,
       'field_name' => $name,
@@ -101,7 +101,7 @@ function createFileField($name, $entity_type, $bundle, $storage_settings = array
    * @param array $widget_settings
    *   A list of widget settings that will be added to the widget defaults.
    */
-  function attachFileField($name, $entity_type, $bundle, $field_settings = array(), $widget_settings = array()) {
+  public function attachFileField($name, $entity_type, $bundle, $field_settings = array(), $widget_settings = array()) {
     $field = array(
       'field_name' => $name,
       'label' => $name,
@@ -130,7 +130,7 @@ function attachFileField($name, $entity_type, $bundle, $field_settings = array()
   /**
    * Updates an existing file field with new settings.
    */
-  function updateFileField($name, $type_name, $field_settings = array(), $widget_settings = array()) {
+  public function updateFileField($name, $type_name, $field_settings = array(), $widget_settings = array()) {
     $field = FieldConfig::loadByName('node', $type_name, $name);
     $field->setSettings(array_merge($field->getSettings(), $field_settings));
     $field->save();
@@ -160,7 +160,7 @@ function updateFileField($name, $type_name, $field_settings = array(), $widget_s
    * @return int
    *   The node id.
    */
-  function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = array()) {
+  public function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = array()) {
     return $this->uploadNodeFiles([$file], $field_name, $nid_or_type, $new_revision, $extras);
   }
 
@@ -182,7 +182,7 @@ function uploadNodeFile(FileInterface $file, $field_name, $nid_or_type, $new_rev
    * @return int
    *   The node id.
    */
-  function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = array()) {
+  public function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision = TRUE, array $extras = array()) {
     $edit = array(
       'title[0][value]' => $this->randomMachineName(),
       'revision' => (string) (int) $new_revision,
@@ -234,7 +234,7 @@ function uploadNodeFiles(array $files, $field_name, $nid_or_type, $new_revision
    *
    * Note that if replacing a file, it must first be removed then added again.
    */
-  function removeNodeFile($nid, $new_revision = TRUE) {
+  public function removeNodeFile($nid, $new_revision = TRUE) {
     $edit = array(
       'revision' => (string) (int) $new_revision,
     );
@@ -246,7 +246,7 @@ function removeNodeFile($nid, $new_revision = TRUE) {
   /**
    * Replaces a file within a node.
    */
-  function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
+  public function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
     $edit = array(
       'files[' . $field_name . '_0]' => drupal_realpath($file->getFileUri()),
       'revision' => (string) (int) $new_revision,
@@ -259,7 +259,7 @@ function replaceNodeFile($file, $field_name, $nid, $new_revision = TRUE) {
   /**
    * Asserts that a file exists physically on disk.
    */
-  function assertFileExists($file, $message = NULL) {
+  public function assertFileExists($file, $message = NULL) {
     $message = isset($message) ? $message : format_string('File %file exists on the disk.', array('%file' => $file->getFileUri()));
     $this->assertTrue(is_file($file->getFileUri()), $message);
   }
@@ -267,7 +267,7 @@ function assertFileExists($file, $message = NULL) {
   /**
    * Asserts that a file exists in the database.
    */
-  function assertFileEntryExists($file, $message = NULL) {
+  public function assertFileEntryExists($file, $message = NULL) {
     $this->container->get('entity.manager')->getStorage('file')->resetCache();
     $db_file = File::load($file->id());
     $message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', array('%file' => $file->getFileUri()));
@@ -277,7 +277,7 @@ function assertFileEntryExists($file, $message = NULL) {
   /**
    * Asserts that a file does not exist on disk.
    */
-  function assertFileNotExists($file, $message = NULL) {
+  public function assertFileNotExists($file, $message = NULL) {
     $message = isset($message) ? $message : format_string('File %file exists on the disk.', array('%file' => $file->getFileUri()));
     $this->assertFalse(is_file($file->getFileUri()), $message);
   }
@@ -285,7 +285,7 @@ function assertFileNotExists($file, $message = NULL) {
   /**
    * Asserts that a file does not exist in the database.
    */
-  function assertFileEntryNotExists($file, $message) {
+  public function assertFileEntryNotExists($file, $message) {
     $this->container->get('entity.manager')->getStorage('file')->resetCache();
     $message = isset($message) ? $message : format_string('File %file exists in database at the correct path.', array('%file' => $file->getFileUri()));
     $this->assertFalse(File::load($file->id()), $message);
@@ -294,7 +294,7 @@ function assertFileEntryNotExists($file, $message) {
   /**
    * Asserts that a file's status is set to permanent in the database.
    */
-  function assertFileIsPermanent(FileInterface $file, $message = NULL) {
+  public function assertFileIsPermanent(FileInterface $file, $message = NULL) {
     $message = isset($message) ? $message : format_string('File %file is permanent.', array('%file' => $file->getFileUri()));
     $this->assertTrue($file->isPermanent(), $message);
   }
diff --git a/core/modules/file/src/Tests/FileFieldValidateTest.php b/core/modules/file/src/Tests/FileFieldValidateTest.php
index 9d43060..1932e2e 100644
--- a/core/modules/file/src/Tests/FileFieldValidateTest.php
+++ b/core/modules/file/src/Tests/FileFieldValidateTest.php
@@ -17,7 +17,7 @@ class FileFieldValidateTest extends FileFieldTestBase {
   /**
    * Tests the required property on file fields.
    */
-  function testRequired() {
+  public function testRequired() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
@@ -65,7 +65,7 @@ function testRequired() {
   /**
    * Tests the max file size validator.
    */
-  function testFileMaxSize() {
+  public function testFileMaxSize() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
@@ -114,7 +114,7 @@ function testFileMaxSize() {
   /**
    * Tests file extension checking.
    */
-  function testFileExtension() {
+  public function testFileExtension() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileFieldWidgetTest.php b/core/modules/file/src/Tests/FileFieldWidgetTest.php
index 414c86b..d3175ee 100644
--- a/core/modules/file/src/Tests/FileFieldWidgetTest.php
+++ b/core/modules/file/src/Tests/FileFieldWidgetTest.php
@@ -73,7 +73,7 @@ protected function createTemporaryFile($data, UserInterface $user = NULL) {
   /**
    * Tests upload and remove buttons for a single-valued File field.
    */
-  function testSingleValuedWidget() {
+  public function testSingleValuedWidget() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
@@ -131,7 +131,7 @@ function testSingleValuedWidget() {
   /**
    * Tests upload and remove buttons for multiple multi-valued File fields.
    */
-  function testMultiValuedWidget() {
+  public function testMultiValuedWidget() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     // Use explicit names instead of random names for those fields, because of a
@@ -301,7 +301,7 @@ function testMultiValuedWidget() {
   /**
    * Tests a file field with a "Private files" upload destination setting.
    */
-  function testPrivateFileSetting() {
+  public function testPrivateFileSetting() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Grant the admin user required permissions.
     user_role_grant_permissions($this->adminUser->roles[0]->target_id, array('administer node fields'));
@@ -341,7 +341,7 @@ function testPrivateFileSetting() {
   /**
    * Tests that download restrictions on private files work on comments.
    */
-  function testPrivateFileComment() {
+  public function testPrivateFileComment() {
     $user = $this->drupalCreateUser(array('access comments'));
 
     // Grant the admin user required comment permissions.
@@ -413,7 +413,7 @@ function testPrivateFileComment() {
   /**
    * Tests validation with the Upload button.
    */
-  function testWidgetValidation() {
+  public function testWidgetValidation() {
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
     $this->createFileField($field_name, 'node', $type_name);
diff --git a/core/modules/file/src/Tests/FileListingTest.php b/core/modules/file/src/Tests/FileListingTest.php
index 708f138..74c572b 100644
--- a/core/modules/file/src/Tests/FileListingTest.php
+++ b/core/modules/file/src/Tests/FileListingTest.php
@@ -59,7 +59,7 @@ protected function sumUsages($usage) {
   /**
    * Tests file overview with different user permissions.
    */
-  function testFileListingPages() {
+  public function testFileListingPages() {
     $file_usage = $this->container->get('file.usage');
     // Users without sufficient permissions should not see file listing.
     $this->drupalLogin($this->baseUser);
@@ -148,7 +148,7 @@ function testFileListingPages() {
   /**
    * Tests file listing usage page for entities with no canonical link template.
    */
-  function testFileListingUsageNoLink() {
+  public function testFileListingUsageNoLink() {
     // Login with user with right permissions and test listing.
     $this->drupalLogin($this->adminUser);
 
diff --git a/core/modules/file/src/Tests/FileManagedAccessTest.php b/core/modules/file/src/Tests/FileManagedAccessTest.php
index 391f91a..182c06d 100644
--- a/core/modules/file/src/Tests/FileManagedAccessTest.php
+++ b/core/modules/file/src/Tests/FileManagedAccessTest.php
@@ -14,7 +14,7 @@ class FileManagedAccessTest extends FileManagedTestBase {
   /**
    * Tests if public file is always accessible.
    */
-  function testFileAccess() {
+  public function testFileAccess() {
     // Create a new file entity.
     $file = File::create(array(
       'uid' => 1,
diff --git a/core/modules/file/src/Tests/FileManagedFileElementTest.php b/core/modules/file/src/Tests/FileManagedFileElementTest.php
index 07102a0..a57aee4 100644
--- a/core/modules/file/src/Tests/FileManagedFileElementTest.php
+++ b/core/modules/file/src/Tests/FileManagedFileElementTest.php
@@ -13,7 +13,7 @@ class FileManagedFileElementTest extends FileFieldTestBase {
   /**
    * Tests the managed_file element type.
    */
-  function testManagedFile() {
+  public function testManagedFile() {
     // Check that $element['#size'] is passed to the child upload element.
     $this->drupalGet('file/test');
     $this->assertFieldByXpath('//input[@name="files[nested_file]" and @size="13"]', NULL, 'The custom #size attribute is passed to the child upload element.');
diff --git a/core/modules/file/src/Tests/FileManagedTestBase.php b/core/modules/file/src/Tests/FileManagedTestBase.php
index a6e94fa..3c32f44 100644
--- a/core/modules/file/src/Tests/FileManagedTestBase.php
+++ b/core/modules/file/src/Tests/FileManagedTestBase.php
@@ -33,7 +33,7 @@ protected function setUp() {
    *   An array of strings containing with the hook name; for example, 'load',
    *   'save', 'insert', etc.
    */
-  function assertFileHooksCalled($expected) {
+  public function assertFileHooksCalled($expected) {
     \Drupal::state()->resetCache();
 
     // Determine which hooks were called.
@@ -68,7 +68,7 @@ function assertFileHooksCalled($expected) {
    * @param string|null $message
    *   Optional translated string message.
    */
-  function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
+  public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
     $actual_count = count(file_test_get_calls($hook));
 
     if (!isset($message)) {
@@ -93,7 +93,7 @@ function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
    * @param \Drupal\file\FileInterface $after
    *   File object to compare.
    */
-  function assertFileUnchanged(FileInterface $before, FileInterface $after) {
+  public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
     $this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', array('%file1' => $before->id(), '%file2' => $after->id())), 'File unchanged');
     $this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', array('%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id())), 'File unchanged');
     $this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', array('%file1' => $before->getFilename(), '%file2' => $after->getFilename())), 'File unchanged');
@@ -111,7 +111,7 @@ function assertFileUnchanged(FileInterface $before, FileInterface $after) {
    * @param \Drupal\file\FileInterface $file2
    *   File object to compare.
    */
-  function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
+  public function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
     $this->assertNotEqual($file1->id(), $file2->id(), t('Files have different ids: %file1 != %file2.', array('%file1' => $file1->id(), '%file2' => $file2->id())), 'Different file');
     $this->assertNotEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have different paths: %file1 != %file2.', array('%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri())), 'Different file');
   }
@@ -124,7 +124,7 @@ function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
    * @param \Drupal\file\FileInterface $file2
    *   File object to compare.
    */
-  function assertSameFile(FileInterface $file1, FileInterface $file2) {
+  public function assertSameFile(FileInterface $file1, FileInterface $file2) {
     $this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', array('%file1' => $file1->id(), '%file2-fid' => $file2->id())), 'Same file');
     $this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', array('%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri())), 'Same file');
   }
@@ -145,7 +145,7 @@ function assertSameFile(FileInterface $file1, FileInterface $file2) {
    * @return \Drupal\file\FileInterface
    *   File entity.
    */
-  function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
+  public function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
     // Don't count hook invocations caused by creating the file.
     \Drupal::state()->set('file_test.count_hook_invocations', FALSE);
     $file = File::create([
@@ -177,7 +177,7 @@ function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
    * @return string
    *   File URI.
    */
-  function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
+  public function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
     if (!isset($filepath)) {
       // Prefix with non-latin characters to ensure that all file-related
       // tests work with international filenames.
diff --git a/core/modules/file/src/Tests/FilePrivateTest.php b/core/modules/file/src/Tests/FilePrivateTest.php
index 2705ef2..e37254d 100644
--- a/core/modules/file/src/Tests/FilePrivateTest.php
+++ b/core/modules/file/src/Tests/FilePrivateTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Tests file access for file uploaded to a private node.
    */
-  function testPrivateFile() {
+  public function testPrivateFile() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $type_name = 'article';
     $field_name = strtolower($this->randomMachineName());
diff --git a/core/modules/file/src/Tests/FileTokenReplaceTest.php b/core/modules/file/src/Tests/FileTokenReplaceTest.php
index dfb9e51..3bf61e4 100644
--- a/core/modules/file/src/Tests/FileTokenReplaceTest.php
+++ b/core/modules/file/src/Tests/FileTokenReplaceTest.php
@@ -16,7 +16,7 @@ class FileTokenReplaceTest extends FileFieldTestBase {
   /**
    * Creates a file, then tests the tokens generated from it.
    */
-  function testFileTokenReplacement() {
+  public function testFileTokenReplacement() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $token_service = \Drupal::token();
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
diff --git a/core/modules/file/src/Tests/SaveUploadTest.php b/core/modules/file/src/Tests/SaveUploadTest.php
index 3aaa5cf..f30711c 100644
--- a/core/modules/file/src/Tests/SaveUploadTest.php
+++ b/core/modules/file/src/Tests/SaveUploadTest.php
@@ -75,7 +75,7 @@ protected function setUp() {
   /**
    * Test the file_save_upload() function.
    */
-  function testNormal() {
+  public function testNormal() {
     $max_fid_after = db_query('SELECT MAX(fid) AS fid FROM {file_managed}')->fetchField();
     $this->assertTrue($max_fid_after > $this->maxFidBefore, 'A new file was created.');
     $file1 = File::load($max_fid_after);
@@ -124,7 +124,7 @@ function testNormal() {
   /**
    * Test extension handling.
    */
-  function testHandleExtension() {
+  public function testHandleExtension() {
     // The file being tested is a .gif which is in the default safe list
     // of extensions to allow when the extension validator isn't used. This is
     // implicitly tested at the testNormal() test. Here we tell
@@ -185,7 +185,7 @@ function testHandleExtension() {
   /**
    * Test dangerous file handling.
    */
-  function testHandleDangerousFile() {
+  public function testHandleDangerousFile() {
     $config = $this->config('system.file');
     // Allow the .php extension and make sure it gets renamed to .txt for
     // safety. Also check to make sure its MIME type was changed.
@@ -228,7 +228,7 @@ function testHandleDangerousFile() {
   /**
    * Test file munge handling.
    */
-  function testHandleFileMunge() {
+  public function testHandleFileMunge() {
     // Ensure insecure uploads are disabled for this test.
     $this->config('system.file')->set('allow_insecure_uploads', 0)->save();
     $this->image = file_move($this->image, $this->image->getFileUri() . '.foo.' . $this->imageExtension);
@@ -277,7 +277,7 @@ function testHandleFileMunge() {
   /**
    * Test renaming when uploading over a file that already exists.
    */
-  function testExistingRename() {
+  public function testExistingRename() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_RENAME,
       'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -293,7 +293,7 @@ function testExistingRename() {
   /**
    * Test replacement when uploading over a file that already exists.
    */
-  function testExistingReplace() {
+  public function testExistingReplace() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_REPLACE,
       'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -309,7 +309,7 @@ function testExistingReplace() {
   /**
    * Test for failure when uploading over a file that already exists.
    */
-  function testExistingError() {
+  public function testExistingError() {
     $edit = array(
       'file_test_replace' => FILE_EXISTS_ERROR,
       'files[file_test_upload]' => drupal_realpath($this->image->getFileUri())
@@ -325,7 +325,7 @@ function testExistingError() {
   /**
    * Test for no failures when not uploading a file.
    */
-  function testNoUpload() {
+  public function testNoUpload() {
     $this->drupalPostForm('file-test/upload', array(), t('Submit'));
     $this->assertNoRaw(t('Epic upload FAIL!'), 'Failure message not found.');
   }
@@ -333,7 +333,7 @@ function testNoUpload() {
   /**
    * Tests for log entry on failing destination.
    */
-  function testDrupalMovingUploadedFileError() {
+  public function testDrupalMovingUploadedFileError() {
     // Create a directory and make it not writable.
     $test_directory = 'test_drupal_move_uploaded_file_fail';
     drupal_mkdir('temporary://' . $test_directory, 0000);
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
index c0a7c05..c1c36af 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php
@@ -25,7 +25,7 @@ public function getDescription() {
     return t('Dummy wrapper for simpletest (readonly).');
   }
 
-  function getDirectoryPath() {
+  public function getDirectoryPath() {
     return \Drupal::service('site.path') . '/files';
   }
 
@@ -34,7 +34,7 @@ function getDirectoryPath() {
    *
    * Return a dummy path for testing.
    */
-  function getInternalUri() {
+  public function getInternalUri() {
     return '/dummy/example.txt';
   }
 
@@ -43,7 +43,7 @@ function getInternalUri() {
    *
    * Return the HTML URI of a public file.
    */
-  function getExternalUrl() {
+  public function getExternalUrl() {
     return '/dummy/example.txt';
   }
 
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
index 12019e6..9f18d2a 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
@@ -27,7 +27,7 @@ public function getDescription() {
     return t('Dummy wrapper for simpletest (remote).');
   }
 
-  function realpath() {
+  public function realpath() {
     return FALSE;
   }
 
diff --git a/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php b/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
index 1428300..6ce8424 100644
--- a/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
+++ b/core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php
@@ -25,7 +25,7 @@ public function getDescription() {
     return t('Dummy wrapper for simpletest.');
   }
 
-  function getDirectoryPath() {
+  public function getDirectoryPath() {
     return \Drupal::service('site.path') . '/files';
   }
 
@@ -34,7 +34,7 @@ function getDirectoryPath() {
    *
    * Return a dummy path for testing.
    */
-  function getInternalUri() {
+  public function getInternalUri() {
     return '/dummy/example.txt';
   }
 
@@ -43,7 +43,7 @@ function getInternalUri() {
    *
    * Return the HTML URI of a public file.
    */
-  function getExternalUrl() {
+  public function getExternalUrl() {
     return '/dummy/example.txt';
   }
 
diff --git a/core/modules/file/tests/src/Kernel/CopyTest.php b/core/modules/file/tests/src/Kernel/CopyTest.php
index 8836bd4..350edcf 100644
--- a/core/modules/file/tests/src/Kernel/CopyTest.php
+++ b/core/modules/file/tests/src/Kernel/CopyTest.php
@@ -13,7 +13,7 @@ class CopyTest extends FileManagedUnitTestBase {
   /**
    * Test file copying in the normal, base case.
    */
-  function testNormal() {
+  public function testNormal() {
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
     $desired_uri = 'public://' . $this->randomMachineName();
@@ -42,7 +42,7 @@ function testNormal() {
   /**
    * Test renaming when copying over a file that already exists.
    */
-  function testExistingRename() {
+  public function testExistingRename() {
     // Setup a file to overwrite.
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
@@ -82,7 +82,7 @@ function testExistingRename() {
   /**
    * Test replacement when copying over a file that already exists.
    */
-  function testExistingReplace() {
+  public function testExistingReplace() {
     // Setup a file to overwrite.
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
@@ -121,7 +121,7 @@ function testExistingReplace() {
    * Test that copying over an existing file fails when FILE_EXISTS_ERROR is
    * specified.
    */
-  function testExistingError() {
+  public function testExistingError() {
     $contents = $this->randomMachineName(10);
     $source = $this->createFile();
     $target = $this->createFile(NULL, $contents);
diff --git a/core/modules/file/tests/src/Kernel/DeleteTest.php b/core/modules/file/tests/src/Kernel/DeleteTest.php
index b880571..b6fdff5 100644
--- a/core/modules/file/tests/src/Kernel/DeleteTest.php
+++ b/core/modules/file/tests/src/Kernel/DeleteTest.php
@@ -13,7 +13,7 @@ class DeleteTest extends FileManagedUnitTestBase {
   /**
    * Tries deleting a normal file (as opposed to a directory, symlink, etc).
    */
-  function testUnused() {
+  public function testUnused() {
     $file = $this->createFile();
 
     // Check that deletion removes the file and database record.
@@ -27,7 +27,7 @@ function testUnused() {
   /**
    * Tries deleting a file that is in use.
    */
-  function testInUse() {
+  public function testInUse() {
     $file = $this->createFile();
     $file_usage = $this->container->get('file.usage');
     $file_usage->add($file, 'testing', 'test', 1);
diff --git a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
index 4db377d..9d121f0 100644
--- a/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
+++ b/core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
@@ -46,7 +46,7 @@ protected function setUp() {
    *   Array with string containing with the hook name, e.g. 'load', 'save',
    *   'insert', etc.
    */
-  function assertFileHooksCalled($expected) {
+  public function assertFileHooksCalled($expected) {
     \Drupal::state()->resetCache();
 
     // Determine which hooks were called.
@@ -81,7 +81,7 @@ function assertFileHooksCalled($expected) {
    * @param string $message
    *   Optional translated string message.
    */
-  function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
+  public function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
     $actual_count = count(file_test_get_calls($hook));
 
     if (!isset($message)) {
@@ -106,7 +106,7 @@ function assertFileHookCalled($hook, $expected_count = 1, $message = NULL) {
    * @param \Drupal\file\FileInterface $after
    *   File object to compare.
    */
-  function assertFileUnchanged(FileInterface $before, FileInterface $after) {
+  public function assertFileUnchanged(FileInterface $before, FileInterface $after) {
     $this->assertEqual($before->id(), $after->id(), t('File id is the same: %file1 == %file2.', array('%file1' => $before->id(), '%file2' => $after->id())), 'File unchanged');
     $this->assertEqual($before->getOwner()->id(), $after->getOwner()->id(), t('File owner is the same: %file1 == %file2.', array('%file1' => $before->getOwner()->id(), '%file2' => $after->getOwner()->id())), 'File unchanged');
     $this->assertEqual($before->getFilename(), $after->getFilename(), t('File name is the same: %file1 == %file2.', array('%file1' => $before->getFilename(), '%file2' => $after->getFilename())), 'File unchanged');
@@ -124,7 +124,7 @@ function assertFileUnchanged(FileInterface $before, FileInterface $after) {
    * @param \Drupal\file\FileInterface $file2
    *   File object to compare.
    */
-  function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
+  public function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
     $this->assertNotEqual($file1->id(), $file2->id(), t('Files have different ids: %file1 != %file2.', array('%file1' => $file1->id(), '%file2' => $file2->id())), 'Different file');
     $this->assertNotEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have different paths: %file1 != %file2.', array('%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri())), 'Different file');
   }
@@ -137,7 +137,7 @@ function assertDifferentFile(FileInterface $file1, FileInterface $file2) {
    * @param \Drupal\file\FileInterface $file2
    *   File object to compare.
    */
-  function assertSameFile(FileInterface $file1, FileInterface $file2) {
+  public function assertSameFile(FileInterface $file1, FileInterface $file2) {
     $this->assertEqual($file1->id(), $file2->id(), t('Files have the same ids: %file1 == %file2.', array('%file1' => $file1->id(), '%file2-fid' => $file2->id())), 'Same file');
     $this->assertEqual($file1->getFileUri(), $file2->getFileUri(), t('Files have the same path: %file1 == %file2.', array('%file1' => $file1->getFileUri(), '%file2' => $file2->getFileUri())), 'Same file');
   }
@@ -158,7 +158,7 @@ function assertSameFile(FileInterface $file1, FileInterface $file2) {
    * @return \Drupal\file\FileInterface
    *   File entity.
    */
-  function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
+  public function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
     // Don't count hook invocations caused by creating the file.
     \Drupal::state()->set('file_test.count_hook_invocations', FALSE);
     $file = File::create([
@@ -190,7 +190,7 @@ function createFile($filepath = NULL, $contents = NULL, $scheme = NULL) {
    * @return string
    *   File URI.
    */
-  function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
+  public function createUri($filepath = NULL, $contents = NULL, $scheme = NULL) {
     if (!isset($filepath)) {
       // Prefix with non-latin characters to ensure that all file-related
       // tests work with international filenames.
diff --git a/core/modules/file/tests/src/Kernel/LoadTest.php b/core/modules/file/tests/src/Kernel/LoadTest.php
index c523d43..30e5f76 100644
--- a/core/modules/file/tests/src/Kernel/LoadTest.php
+++ b/core/modules/file/tests/src/Kernel/LoadTest.php
@@ -13,7 +13,7 @@ class LoadTest extends FileManagedUnitTestBase {
   /**
    * Try to load a non-existent file by fid.
    */
-  function testLoadMissingFid() {
+  public function testLoadMissingFid() {
     $this->assertFalse(File::load(-1), 'Try to load an invalid fid fails.');
     $this->assertFileHooksCalled(array());
   }
@@ -21,7 +21,7 @@ function testLoadMissingFid() {
   /**
    * Try to load a non-existent file by URI.
    */
-  function testLoadMissingFilepath() {
+  public function testLoadMissingFilepath() {
     $files = entity_load_multiple_by_properties('file', array('uri' => 'foobar://misc/druplicon.png'));
     $this->assertFalse(reset($files), "Try to load a file that doesn't exist in the database fails.");
     $this->assertFileHooksCalled(array());
@@ -30,7 +30,7 @@ function testLoadMissingFilepath() {
   /**
    * Try to load a non-existent file by status.
    */
-  function testLoadInvalidStatus() {
+  public function testLoadInvalidStatus() {
     $files = entity_load_multiple_by_properties('file', array('status' => -99));
     $this->assertFalse(reset($files), 'Trying to load a file with an invalid status fails.');
     $this->assertFileHooksCalled(array());
@@ -39,7 +39,7 @@ function testLoadInvalidStatus() {
   /**
    * Load a single file and ensure that the correct values are returned.
    */
-  function testSingleValues() {
+  public function testSingleValues() {
     // Create a new file entity from scratch so we know the values.
     $file = $this->createFile('druplicon.txt', NULL, 'public');
     $by_fid_file = File::load($file->id());
@@ -56,7 +56,7 @@ function testSingleValues() {
   /**
    * This will test loading file data from the database.
    */
-  function testMultiple() {
+  public function testMultiple() {
     // Create a new file entity.
     $file = $this->createFile('druplicon.txt', NULL, 'public');
 
diff --git a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
index 463ce02..479b788 100644
--- a/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
+++ b/core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php
@@ -57,7 +57,7 @@ protected function setUp() {
   /**
    * Test upload migration from Drupal 6 to Drupal 8.
    */
-  function testUpload() {
+  public function testUpload() {
     $this->container->get('entity.manager')
       ->getStorage('node')
       ->resetCache([1, 2]);
diff --git a/core/modules/file/tests/src/Kernel/MoveTest.php b/core/modules/file/tests/src/Kernel/MoveTest.php
index a56caea..0e08478 100644
--- a/core/modules/file/tests/src/Kernel/MoveTest.php
+++ b/core/modules/file/tests/src/Kernel/MoveTest.php
@@ -13,7 +13,7 @@ class MoveTest extends FileManagedUnitTestBase {
   /**
    * Move a normal file.
    */
-  function testNormal() {
+  public function testNormal() {
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
     $desired_filepath = 'public://' . $this->randomMachineName();
@@ -43,7 +43,7 @@ function testNormal() {
   /**
    * Test renaming when moving onto a file that already exists.
    */
-  function testExistingRename() {
+  public function testExistingRename() {
     // Setup a file to overwrite.
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
@@ -78,7 +78,7 @@ function testExistingRename() {
   /**
    * Test replacement when moving onto a file that already exists.
    */
-  function testExistingReplace() {
+  public function testExistingReplace() {
     // Setup a file to overwrite.
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
@@ -110,7 +110,7 @@ function testExistingReplace() {
   /**
    * Test replacement when moving onto itself.
    */
-  function testExistingReplaceSelf() {
+  public function testExistingReplaceSelf() {
     // Setup a file to overwrite.
     $contents = $this->randomMachineName(10);
     $source = $this->createFile(NULL, $contents);
@@ -133,7 +133,7 @@ function testExistingReplaceSelf() {
    * Test that moving onto an existing file fails when FILE_EXISTS_ERROR is
    * specified.
    */
-  function testExistingError() {
+  public function testExistingError() {
     $contents = $this->randomMachineName(10);
     $source = $this->createFile();
     $target = $this->createFile(NULL, $contents);
diff --git a/core/modules/file/tests/src/Kernel/SaveDataTest.php b/core/modules/file/tests/src/Kernel/SaveDataTest.php
index c5637d0..f9954e8 100644
--- a/core/modules/file/tests/src/Kernel/SaveDataTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveDataTest.php
@@ -13,7 +13,7 @@ class SaveDataTest extends FileManagedUnitTestBase {
   /**
    * Test the file_save_data() function when no filename is provided.
    */
-  function testWithoutFilename() {
+  public function testWithoutFilename() {
     $contents = $this->randomMachineName(8);
 
     $result = file_save_data($contents);
@@ -35,7 +35,7 @@ function testWithoutFilename() {
   /**
    * Test the file_save_data() function when a filename is provided.
    */
-  function testWithFilename() {
+  public function testWithFilename() {
     $contents = $this->randomMachineName(8);
 
     // Using filename with non-latin characters.
@@ -60,7 +60,7 @@ function testWithFilename() {
   /**
    * Test file_save_data() when renaming around an existing file.
    */
-  function testExistingRename() {
+  public function testExistingRename() {
     // Setup a file to overwrite.
     $existing = $this->createFile();
     $contents = $this->randomMachineName(8);
@@ -88,7 +88,7 @@ function testExistingRename() {
   /**
    * Test file_save_data() when replacing an existing file.
    */
-  function testExistingReplace() {
+  public function testExistingReplace() {
     // Setup a file to overwrite.
     $existing = $this->createFile();
     $contents = $this->randomMachineName(8);
@@ -115,7 +115,7 @@ function testExistingReplace() {
   /**
    * Test that file_save_data() fails overwriting an existing file.
    */
-  function testExistingError() {
+  public function testExistingError() {
     $contents = $this->randomMachineName(8);
     $existing = $this->createFile(NULL, $contents);
 
diff --git a/core/modules/file/tests/src/Kernel/SaveTest.php b/core/modules/file/tests/src/Kernel/SaveTest.php
index 69c7f2b..4de86ea 100644
--- a/core/modules/file/tests/src/Kernel/SaveTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveTest.php
@@ -10,7 +10,7 @@
  * @group file
  */
 class SaveTest extends FileManagedUnitTestBase {
-  function testFileSave() {
+  public function testFileSave() {
     // Create a new file entity.
     $file = File::create(array(
       'uid' => 1,
diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
index f8752c4..7dbc7fd 100644
--- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
@@ -52,7 +52,7 @@ protected function createFileWithSize($uri, $size, $uid, $status = FILE_STATUS_P
   /**
    * Test different users with the default status.
    */
-  function testFileSpaceUsed() {
+  public function testFileSpaceUsed() {
     $file = $this->container->get('entity.manager')->getStorage('file');
     // Test different users with default status.
     $this->assertEqual($file->spaceUsed(2), 70);
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index 8e26015..485f284 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -18,7 +18,7 @@ class UsageTest extends FileManagedUnitTestBase {
   /**
    * Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
    */
-  function testGetUsage() {
+  public function testGetUsage() {
     $file = $this->createFile();
     db_insert('file_usage')
       ->fields(array(
@@ -51,7 +51,7 @@ function testGetUsage() {
   /**
    * Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::add().
    */
-  function testAddUsage() {
+  public function testAddUsage() {
     $file = $this->createFile();
     $file_usage = $this->container->get('file.usage');
     $file_usage->add($file, 'testing', 'foo', 1);
@@ -77,7 +77,7 @@ function testAddUsage() {
   /**
    * Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::delete().
    */
-  function testRemoveUsage() {
+  public function testRemoveUsage() {
     $file = $this->createFile();
     $file_usage = $this->container->get('file.usage');
     db_insert('file_usage')
@@ -124,7 +124,7 @@ function testRemoveUsage() {
    * We are using UPDATE statements because using the API would set the
    * timestamp.
    */
-  function createTempFiles() {
+  public function createTempFiles() {
     // Temporary file that is old.
     $temp_old = file_save_data('');
     db_update('file_managed')
@@ -161,7 +161,7 @@ function createTempFiles() {
   /**
    * Ensure that temporary files are removed by default.
    */
-  function testTempFileCleanupDefault() {
+  public function testTempFileCleanupDefault() {
     list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
 
     // Run cron and then ensure that only the old, temp file was deleted.
@@ -175,7 +175,7 @@ function testTempFileCleanupDefault() {
   /**
    * Ensure that temporary files are kept as configured.
    */
-  function testTempFileNoCleanup() {
+  public function testTempFileNoCleanup() {
     list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
 
     // Set the max age to 0, meaning no temporary files will be deleted.
@@ -194,7 +194,7 @@ function testTempFileNoCleanup() {
   /**
    * Ensure that temporary files are kept as configured.
    */
-  function testTempFileCustomCleanup() {
+  public function testTempFileCustomCleanup() {
     list($temp_old, $temp_new, $perm_old, $perm_new) = $this->createTempFiles();
 
     // Set the max age to older than default.
diff --git a/core/modules/file/tests/src/Kernel/ValidateTest.php b/core/modules/file/tests/src/Kernel/ValidateTest.php
index 0bfcfdd..3385aae 100644
--- a/core/modules/file/tests/src/Kernel/ValidateTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidateTest.php
@@ -12,7 +12,7 @@ class ValidateTest extends FileManagedUnitTestBase {
   /**
    * Test that the validators passed into are checked.
    */
-  function testCallerValidation() {
+  public function testCallerValidation() {
     $file = $this->createFile();
 
     // Empty validators.
diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php
index 30a6fe8..b645f39 100644
--- a/core/modules/file/tests/src/Kernel/ValidatorTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
   /**
    * Test the file_validate_extensions() function.
    */
-  function testFileValidateExtensions() {
+  public function testFileValidateExtensions() {
     $file = File::create(['filename' => 'asdf.txt']);
     $errors = file_validate_extensions($file, 'asdf txt pork');
     $this->assertEqual(count($errors), 0, 'Valid extension accepted.', 'File');
@@ -53,7 +53,7 @@ function testFileValidateExtensions() {
   /**
    * This ensures a specific file is actually an image.
    */
-  function testFileValidateIsImage() {
+  public function testFileValidateIsImage() {
     $this->assertTrue(file_exists($this->image->getFileUri()), 'The image being tested exists.', 'File');
     $errors = file_validate_is_image($this->image);
     $this->assertEqual(count($errors), 0, 'No error reported for our image file.', 'File');
@@ -68,7 +68,7 @@ function testFileValidateIsImage() {
    *
    * The image will be resized if it's too large.
    */
-  function testFileValidateImageResolution() {
+  public function testFileValidateImageResolution() {
     // Non-images.
     $errors = file_validate_image_resolution($this->nonImage);
     $this->assertEqual(count($errors), 0, 'Should not get any errors for a non-image file.', 'File');
@@ -116,7 +116,7 @@ function testFileValidateImageResolution() {
   /**
    * This will ensure the filename length is valid.
    */
-  function testFileValidateNameLength() {
+  public function testFileValidateNameLength() {
     // Create a new file entity.
     $file = File::create();
 
@@ -141,7 +141,7 @@ function testFileValidateNameLength() {
   /**
    * Test file_validate_size().
    */
-  function testFileValidateSize() {
+  public function testFileValidateSize() {
     // Create a file with a size of 1000 bytes, and quotas of only 1 byte.
     $file = File::create(['filesize' => 1000]);
     $errors = file_validate_size($file, 0, 0);
diff --git a/core/modules/filter/src/Controller/FilterController.php b/core/modules/filter/src/Controller/FilterController.php
index f5ebe79..fbac516 100644
--- a/core/modules/filter/src/Controller/FilterController.php
+++ b/core/modules/filter/src/Controller/FilterController.php
@@ -21,7 +21,7 @@ class FilterController {
    *
    * @see template_preprocess_filter_tips()
    */
-  function filterTips(FilterFormatInterface $filter_format = NULL) {
+  public function filterTips(FilterFormatInterface $filter_format = NULL) {
     $tips = $filter_format ? $filter_format->id() : -1;
 
     $build = array(
diff --git a/core/modules/filter/src/Tests/FilterAdminTest.php b/core/modules/filter/src/Tests/FilterAdminTest.php
index e71b57a..034b945 100644
--- a/core/modules/filter/src/Tests/FilterAdminTest.php
+++ b/core/modules/filter/src/Tests/FilterAdminTest.php
@@ -110,7 +110,7 @@ protected function setUp() {
   /**
    * Tests the format administration functionality.
    */
-  function testFormatAdmin() {
+  public function testFormatAdmin() {
     // Add text format.
     $this->drupalGet('admin/config/content/formats');
     $this->clickLink('Add text format');
@@ -185,7 +185,7 @@ function testFormatAdmin() {
   /**
    * Tests filter administration functionality.
    */
-  function testFilterAdmin() {
+  public function testFilterAdmin() {
     $first_filter = 'filter_autop';
     $second_filter = 'filter_url';
 
@@ -356,7 +356,7 @@ function testFilterAdmin() {
   /**
    * Tests the URL filter settings form is properly validated.
    */
-  function testUrlFilterAdmin() {
+  public function testUrlFilterAdmin() {
     // The form does not save with an invalid filter URL length.
     $edit = array(
       'filters[filter_url][settings][filter_url_length]' => $this->randomMachineName(4),
@@ -368,7 +368,7 @@ function testUrlFilterAdmin() {
   /**
    * Tests whether filter tips page is not HTML escaped.
    */
-  function testFilterTipHtmlEscape() {
+  public function testFilterTipHtmlEscape() {
     $this->drupalLogin($this->adminUser);
     global $base_url;
 
diff --git a/core/modules/filter/src/Tests/FilterCaptionTwigDebugTest.php b/core/modules/filter/src/Tests/FilterCaptionTwigDebugTest.php
index cd5e8e2..2a937d5 100644
--- a/core/modules/filter/src/Tests/FilterCaptionTwigDebugTest.php
+++ b/core/modules/filter/src/Tests/FilterCaptionTwigDebugTest.php
@@ -76,7 +76,7 @@ protected function tearDown() {
   /**
    * Test the caption filter with Twig debugging on.
    */
-  function testCaptionFilter() {
+  public function testCaptionFilter() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
     $filter = $this->filters['filter_caption'];
diff --git a/core/modules/filter/src/Tests/FilterDefaultFormatTest.php b/core/modules/filter/src/Tests/FilterDefaultFormatTest.php
index 39a6295..02334ef 100644
--- a/core/modules/filter/src/Tests/FilterDefaultFormatTest.php
+++ b/core/modules/filter/src/Tests/FilterDefaultFormatTest.php
@@ -23,7 +23,7 @@ class FilterDefaultFormatTest extends WebTestBase {
   /**
    * Tests if the default text format is accessible to users.
    */
-  function testDefaultTextFormats() {
+  public function testDefaultTextFormats() {
     // Create two text formats, and two users. The first user has access to
     // both formats, but the second user only has access to the second one.
     $admin_user = $this->drupalCreateUser(array('administer filters'));
diff --git a/core/modules/filter/src/Tests/FilterFormatAccessTest.php b/core/modules/filter/src/Tests/FilterFormatAccessTest.php
index 496cfb8..82e07d5 100644
--- a/core/modules/filter/src/Tests/FilterFormatAccessTest.php
+++ b/core/modules/filter/src/Tests/FilterFormatAccessTest.php
@@ -118,7 +118,7 @@ protected function setUp() {
   /**
    * Tests the Filter format access permissions functionality.
    */
-  function testFormatPermissions() {
+  public function testFormatPermissions() {
     // Make sure that a regular user only has access to the text formats for
     // which they were granted access.
     $fallback_format = FilterFormat::load(filter_fallback_format());
@@ -181,7 +181,7 @@ function testFormatPermissions() {
   /**
    * Tests if text format is available to a role.
    */
-  function testFormatRoles() {
+  public function testFormatRoles() {
     // Get the role ID assigned to the regular user.
     $roles = $this->webUser->getRoles(TRUE);
     $rid = $roles[0];
@@ -211,7 +211,7 @@ function testFormatRoles() {
    * be edited by administrators only, but that the administrator is forced to
    * choose a new format before saving the page.
    */
-  function testFormatWidgetPermissions() {
+  public function testFormatWidgetPermissions() {
     $body_value_key = 'body[0][value]';
     $body_format_key = 'body[0][format]';
 
diff --git a/core/modules/filter/src/Tests/FilterHooksTest.php b/core/modules/filter/src/Tests/FilterHooksTest.php
index 5353ccb..7710b2b 100644
--- a/core/modules/filter/src/Tests/FilterHooksTest.php
+++ b/core/modules/filter/src/Tests/FilterHooksTest.php
@@ -26,7 +26,7 @@ class FilterHooksTest extends WebTestBase {
    * Tests that hooks run correctly on creating, editing, and deleting a text
    * format.
    */
-  function testFilterHooks() {
+  public function testFilterHooks() {
     // Create content type, with underscores.
     $type_name = 'test_' . strtolower($this->randomMachineName());
     $type = $this->drupalCreateContentType(array('name' => $type_name, 'type' => $type_name));
diff --git a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
index 5ce4e6d..2993387 100644
--- a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
+++ b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
@@ -74,7 +74,7 @@ protected function setUp() {
   /**
    * Tests removal of images having a non-local source.
    */
-  function testImageSource() {
+  public function testImageSource() {
     global $base_url;
 
     $public_files_path = PublicStream::basePath();
diff --git a/core/modules/filter/src/Tests/FilterNoFormatTest.php b/core/modules/filter/src/Tests/FilterNoFormatTest.php
index 3dcc9f6..6e2ed87 100644
--- a/core/modules/filter/src/Tests/FilterNoFormatTest.php
+++ b/core/modules/filter/src/Tests/FilterNoFormatTest.php
@@ -24,7 +24,7 @@ class FilterNoFormatTest extends WebTestBase {
    * Tests if text with no format is filtered the same way as text in the
    * fallback format.
    */
-  function testCheckMarkupNoFormat() {
+  public function testCheckMarkupNoFormat() {
     // Create some text. Include some HTML and line breaks, so we get a good
     // test of the filtering that is applied to it.
     $text = "<strong>" . $this->randomMachineName(32) . "</strong>\n\n<div>" . $this->randomMachineName(32) . "</div>";
diff --git a/core/modules/filter/src/Tests/FilterSecurityTest.php b/core/modules/filter/src/Tests/FilterSecurityTest.php
index 12cd97a..8b6c7bc 100644
--- a/core/modules/filter/src/Tests/FilterSecurityTest.php
+++ b/core/modules/filter/src/Tests/FilterSecurityTest.php
@@ -51,7 +51,7 @@ protected function setUp() {
    * Tests that filtered content is emptied when an actively used filter module
    * is disabled.
    */
-  function testDisableFilterModule() {
+  public function testDisableFilterModule() {
     // Create a new node.
     $node = $this->drupalCreateNode(array('promote' => 1));
     $body_raw = $node->body->value;
@@ -81,7 +81,7 @@ function testDisableFilterModule() {
   /**
    * Tests that security filters are enforced even when marked to be skipped.
    */
-  function testSkipSecurityFilters() {
+  public function testSkipSecurityFilters() {
     $text = "Text with some disallowed tags: <script />, <p><object>unicorn</object></p>, <i><table></i>.";
     $expected_filtered_text = "Text with some disallowed tags: , <p>unicorn</p>, .";
     $this->assertEqual(check_markup($text, 'filtered_html', '', array()), $expected_filtered_text, 'Expected filter result.');
diff --git a/core/modules/filter/tests/src/Kernel/FilterAPITest.php b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
index 50189a6..fa674bd 100644
--- a/core/modules/filter/tests/src/Kernel/FilterAPITest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterAPITest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests that the filter order is respected.
    */
-  function testCheckMarkupFilterOrder() {
+  public function testCheckMarkupFilterOrder() {
     // Create crazy HTML format.
     $crazy_format = FilterFormat::create(array(
       'format' => 'crazy',
@@ -61,7 +61,7 @@ function testCheckMarkupFilterOrder() {
   /**
    * Tests the ability to apply only a subset of filters.
    */
-  function testCheckMarkupFilterSubset() {
+  public function testCheckMarkupFilterSubset() {
     $text = "Text with <marquee>evil content and</marquee> a URL: https://www.drupal.org!";
     $expected_filtered_text = "Text with evil content and a URL: <a href=\"https://www.drupal.org\">https://www.drupal.org</a>!";
     $expected_filter_text_without_html_generators = "Text with evil content and a URL: https://www.drupal.org!";
@@ -98,7 +98,7 @@ function testCheckMarkupFilterSubset() {
    *   - \Drupal\filter\Entity\FilterFormatInterface::getHtmlRestrictions()
    *   - \Drupal\filter\Entity\FilterFormatInterface::getFilterTypes()
    */
-  function testFilterFormatAPI() {
+  public function testFilterFormatAPI() {
     // Test on filtered_html.
     $filtered_html_format = FilterFormat::load('filtered_html');
     $this->assertIdentical(
@@ -249,7 +249,7 @@ function testFilterFormatAPI() {
    * #lazy_builder callbacks.
    * This test focuses solely on those advanced features.
    */
-  function testProcessedTextElement() {
+  public function testProcessedTextElement() {
     FilterFormat::create(array(
       'format' => 'element_test',
       'name' => 'processed_text element test format',
@@ -327,7 +327,7 @@ function testProcessedTextElement() {
   /**
    * Tests the function of the typed data type.
    */
-  function testTypedDataAPI() {
+  public function testTypedDataAPI() {
     $definition = DataDefinition::create('filter_format');
     $data = \Drupal::typedDataManager()->create($definition);
 
diff --git a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
index 0a9be18..9d24d3c 100644
--- a/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterCrudTest.php
@@ -22,7 +22,7 @@ class FilterCrudTest extends KernelTestBase {
   /**
    * Tests CRUD operations for text formats and filters.
    */
-  function testTextFormatCrud() {
+  public function testTextFormatCrud() {
     // Add a text format with minimum data only.
     $format = FilterFormat::create(array(
       'format' => 'empty_format',
@@ -88,7 +88,7 @@ public function testDisableFallbackFormat() {
   /**
    * Verifies that a text format is properly stored.
    */
-  function verifyTextFormat($format) {
+  public function verifyTextFormat($format) {
     $t_args = array('%format' => $format->label());
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
 
diff --git a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
index b4ce50c..4b94002 100644
--- a/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests installation of default formats.
    */
-  function testInstallation() {
+  public function testInstallation() {
     // Verify that the format was installed correctly.
     $format = FilterFormat::load('filter_test');
     $this->assertTrue((bool) $format);
@@ -70,7 +70,7 @@ function testInstallation() {
   /**
    * Tests that changes to FilterFormat::$roles do not have an effect.
    */
-  function testUpdateRoles() {
+  public function testUpdateRoles() {
     // Verify role permissions declared in default config.
     $format = FilterFormat::load('filter_test');
     $this->assertEqual(array_keys(filter_get_roles_by_format($format)), array(
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 06c1e4b..cdb579b 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
   /**
    * Tests the align filter.
    */
-  function testAlignFilter() {
+  public function testAlignFilter() {
     $filter = $this->filters['filter_align'];
 
     $test = function($input) use ($filter) {
@@ -96,7 +96,7 @@ function testAlignFilter() {
   /**
    * Tests the caption filter.
    */
-  function testCaptionFilter() {
+  public function testCaptionFilter() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
     $filter = $this->filters['filter_caption'];
@@ -260,7 +260,7 @@ function testCaptionFilter() {
   /**
    * Tests the combination of the align and caption filters.
    */
-  function testAlignAndCaptionFilters() {
+  public function testAlignAndCaptionFilters() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
     $align_filter = $this->filters['filter_align'];
@@ -315,7 +315,7 @@ function testAlignAndCaptionFilters() {
   /**
    * Tests the line break filter.
    */
-  function testLineBreakFilter() {
+  public function testLineBreakFilter() {
     // Get FilterAutoP object.
     $filter = $this->filters['filter_autop'];
 
@@ -403,7 +403,7 @@ function testLineBreakFilter() {
    * @todo Class, id, name and xmlns should be added to disallowed attributes,
    *   or better a whitelist approach should be used for that too.
    */
-  function testHtmlFilter() {
+  public function testHtmlFilter() {
     // Get FilterHtml object.
     $filter = $this->filters['filter_html'];
     $filter->setConfiguration(array(
@@ -493,7 +493,7 @@ function testHtmlFilter() {
   /**
    * Tests the spam deterrent.
    */
-  function testNoFollowFilter() {
+  public function testNoFollowFilter() {
     // Get FilterHtml object.
     $filter = $this->filters['filter_html'];
     $filter->setConfiguration(array(
@@ -526,7 +526,7 @@ function testNoFollowFilter() {
   /**
    * Tests the HTML escaping filter.
    */
-  function testHtmlEscapeFilter() {
+  public function testHtmlEscapeFilter() {
     // Get FilterHtmlEscape object.
     $filter = $this->filters['filter_html_escape'];
 
@@ -543,7 +543,7 @@ function testHtmlEscapeFilter() {
   /**
    * Tests the URL filter.
    */
-  function testUrlFilter() {
+  public function testUrlFilter() {
     // Get FilterUrl object.
     $filter = $this->filters['filter_url'];
     $filter->setConfiguration(array(
@@ -871,7 +871,7 @@ function testUrlFilter() {
    *   );
    *   @endcode
    */
-  function assertFilteredString($filter, $tests) {
+  public function assertFilteredString($filter, $tests) {
     foreach ($tests as $source => $tasks) {
       $result = $filter->process($source, $filter)->getProcessedText();
       foreach ($tasks as $value => $is_expected) {
@@ -918,7 +918,7 @@ function assertFilteredString($filter, $tests) {
    * - Empty HTML tags (BR, IMG).
    * - Mix of absolute and partial URLs, and email addresses in one content.
    */
-  function testUrlFilterContent() {
+  public function testUrlFilterContent() {
     // Get FilterUrl object.
     $filter = $this->filters['filter_url'];
     $filter->setConfiguration(array(
@@ -939,7 +939,7 @@ function testUrlFilterContent() {
    *
    * @todo This test could really use some validity checking function.
    */
-  function testHtmlCorrectorFilter() {
+  public function testHtmlCorrectorFilter() {
     // Tag closing.
     $f = Html::normalize('<p>text');
     $this->assertEqual($f, '<p>text</p>', 'HTML corrector -- tag closing at the end of input.');
@@ -1146,7 +1146,7 @@ function testHtmlCorrectorFilter() {
    * @return bool
    *   TRUE on pass, FALSE on fail.
    */
-  function assertNormalized($haystack, $needle, $message = '', $group = 'Other') {
+  public function assertNormalized($haystack, $needle, $message = '', $group = 'Other') {
     return $this->assertTrue(strpos(strtolower(Html::decodeEntities($haystack)), $needle) !== FALSE, $message, $group);
   }
 
@@ -1171,7 +1171,7 @@ function assertNormalized($haystack, $needle, $message = '', $group = 'Other') {
    * @return bool
    *   TRUE on pass, FALSE on fail.
    */
-  function assertNoNormalized($haystack, $needle, $message = '', $group = 'Other') {
+  public function assertNoNormalized($haystack, $needle, $message = '', $group = 'Other') {
     return $this->assertTrue(strpos(strtolower(Html::decodeEntities($haystack)), $needle) === FALSE, $message, $group);
   }
 
diff --git a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
index dc77eb4..aa81c0c 100644
--- a/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
@@ -22,7 +22,7 @@ class FilterSettingsTest extends KernelTestBase {
   /**
    * Tests explicit and implicit default settings for filters.
    */
-  function testFilterDefaults() {
+  public function testFilterDefaults() {
     $filter_info = $this->container->get('plugin.manager.filter')->getDefinitions();
 
     // Create text format using filter default settings.
diff --git a/core/modules/forum/src/ForumIndexStorage.php b/core/modules/forum/src/ForumIndexStorage.php
index 35b2274..314363b 100644
--- a/core/modules/forum/src/ForumIndexStorage.php
+++ b/core/modules/forum/src/ForumIndexStorage.php
@@ -23,7 +23,7 @@ class ForumIndexStorage implements ForumIndexStorageInterface {
    * @param \Drupal\Core\Database\Connection $database
    *   The current database connection.
    */
-  function __construct(Connection $database) {
+  public function __construct(Connection $database) {
     $this->database = $database;
   }
 
diff --git a/core/modules/forum/src/Tests/ForumIndexTest.php b/core/modules/forum/src/Tests/ForumIndexTest.php
index 8ead34f..9a58410 100644
--- a/core/modules/forum/src/Tests/ForumIndexTest.php
+++ b/core/modules/forum/src/Tests/ForumIndexTest.php
@@ -29,7 +29,7 @@ protected function setUp() {
   /**
    * Tests the forum index for published and unpublished nodes.
    */
-  function testForumIndexStatus() {
+  public function testForumIndexStatus() {
     // The forum ID to use.
     $tid = 1;
 
diff --git a/core/modules/forum/src/Tests/ForumNodeAccessTest.php b/core/modules/forum/src/Tests/ForumNodeAccessTest.php
index 8eda252..e764f4b 100644
--- a/core/modules/forum/src/Tests/ForumNodeAccessTest.php
+++ b/core/modules/forum/src/Tests/ForumNodeAccessTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
    * Adds both active forum topics and new forum topics blocks to the sidebar.
    * Tests to ensure private node/public node access is respected on blocks.
    */
-  function testForumNodeAccess() {
+  public function testForumNodeAccess() {
     // Create some users.
     $access_user = $this->drupalCreateUser(array('node test view'));
     $no_access_user = $this->drupalCreateUser();
diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php
index df21f69..7dc28ad 100644
--- a/core/modules/forum/src/Tests/ForumTest.php
+++ b/core/modules/forum/src/Tests/ForumTest.php
@@ -117,7 +117,7 @@ protected function setUp() {
   /**
    * Tests forum functionality through the admin and user interfaces.
    */
-  function testForum() {
+  public function testForum() {
     //Check that the basic forum install creates a default forum topic
     $this->drupalGet('/forum');
     // Look for the "General discussion" default forum
@@ -251,7 +251,7 @@ function testForum() {
    * Verifies that forum nodes are not created without choosing "forum" from the
    * select list.
    */
-  function testAddOrphanTopic() {
+  public function testAddOrphanTopic() {
     // Must remove forum topics to test creating orphan topics.
     $vid = $this->config('forum.settings')->get('vocabulary');
     $tids = \Drupal::entityQuery('taxonomy_term')
@@ -356,7 +356,7 @@ private function doAdminTests($user) {
   /**
    * Edits the forum taxonomy.
    */
-  function editForumVocabulary() {
+  public function editForumVocabulary() {
     // Backup forum taxonomy.
     $vid = $this->config('forum.settings')->get('vocabulary');
     $original_vocabulary = Vocabulary::load($vid);
@@ -399,7 +399,7 @@ function editForumVocabulary() {
    * @return \Drupal\Core\Database\StatementInterface
    *   The created taxonomy term data.
    */
-  function createForum($type, $parent = 0) {
+  public function createForum($type, $parent = 0) {
     // Generate a random name/description.
     $name = $this->randomMachineName(10);
     $description = $this->randomMachineName(100);
@@ -447,7 +447,7 @@ function createForum($type, $parent = 0) {
    * @param int $tid
    *   The forum ID.
    */
-  function deleteForum($tid) {
+  public function deleteForum($tid) {
     // Delete the forum.
     $this->drupalGet('admin/structure/forum/edit/forum/' . $tid);
     $this->clickLink(t('Delete'));
@@ -483,7 +483,7 @@ private function doBasicTests($user, $admin) {
   /**
    * Tests a forum with a new post displays properly.
    */
-  function testForumWithNewPost() {
+  public function testForumWithNewPost() {
     // Log in as the first user.
     $this->drupalLogin($this->adminUser);
     // Create a forum container.
@@ -528,7 +528,7 @@ function testForumWithNewPost() {
    * @return object
    *   The created topic node.
    */
-  function createForumTopic($forum, $container = FALSE) {
+  public function createForumTopic($forum, $container = FALSE) {
     // Generate a random subject/body.
     $title = $this->randomMachineName(20);
     $body = $this->randomMachineName(200);
diff --git a/core/modules/history/src/Tests/HistoryTest.php b/core/modules/history/src/Tests/HistoryTest.php
index 17bba34..9824d17 100644
--- a/core/modules/history/src/Tests/HistoryTest.php
+++ b/core/modules/history/src/Tests/HistoryTest.php
@@ -101,7 +101,7 @@ protected function markNodeAsRead($node_id) {
   /**
    * Verifies that the history endpoints work.
    */
-  function testHistory() {
+  public function testHistory() {
     $nid = $this->testNode->id();
 
     // Retrieve "last read" timestamp for test node, for the current user.
diff --git a/core/modules/image/src/Tests/ImageAdminStylesTest.php b/core/modules/image/src/Tests/ImageAdminStylesTest.php
index 4b7ff43..4c7369d 100644
--- a/core/modules/image/src/Tests/ImageAdminStylesTest.php
+++ b/core/modules/image/src/Tests/ImageAdminStylesTest.php
@@ -19,7 +19,7 @@ class ImageAdminStylesTest extends ImageFieldTestBase {
   /**
    * Given an image style, generate an image.
    */
-  function createSampleImage(ImageStyleInterface $style) {
+  public function createSampleImage(ImageStyleInterface $style) {
     static $file_path;
 
     // First, we need to make sure we have an image in our testing
@@ -36,7 +36,7 @@ function createSampleImage(ImageStyleInterface $style) {
   /**
    * Count the number of images currently create for a style.
    */
-  function getImageCount(ImageStyleInterface $style) {
+  public function getImageCount(ImageStyleInterface $style) {
     return count(file_scan_directory('public://styles/' . $style->id(), '/.*/'));
   }
 
@@ -44,7 +44,7 @@ function getImageCount(ImageStyleInterface $style) {
    * Test creating an image style with a numeric name and ensuring it can be
    * applied to an image.
    */
-  function testNumericStyleName() {
+  public function testNumericStyleName() {
     $style_name = rand();
     $style_label = $this->randomString();
     $edit = array(
@@ -60,7 +60,7 @@ function testNumericStyleName() {
   /**
    * General test to add a style, add/remove/edit effects to it, then delete it.
    */
-  function testStyle() {
+  public function testStyle() {
     $admin_path = 'admin/config/media/image-styles';
 
     // Setup a style to be created and effects to add to it.
@@ -330,7 +330,7 @@ public function testAjaxEnabledEffectForm() {
   /**
    * Test deleting a style and choosing a replacement style.
    */
-  function testStyleReplacement() {
+  public function testStyleReplacement() {
     // Create a new style.
     $style_name = strtolower($this->randomMachineName(10));
     $style_label = $this->randomString();
@@ -392,7 +392,7 @@ function testStyleReplacement() {
   /**
    * Verifies that editing an image effect does not cause it to be duplicated.
    */
-  function testEditEffect() {
+  public function testEditEffect() {
     // Add a scale effect.
     $style_name = 'test_style_effect_edit';
     $this->drupalGet('admin/config/media/image-styles/add');
@@ -465,7 +465,7 @@ public function testFlushUserInterface() {
   /**
    * Tests image style configuration import that does a delete.
    */
-  function testConfigImport() {
+  public function testConfigImport() {
     // Create a new style.
     $style_name = strtolower($this->randomMachineName(10));
     $style_label = $this->randomString();
diff --git a/core/modules/image/src/Tests/ImageDimensionsTest.php b/core/modules/image/src/Tests/ImageDimensionsTest.php
index 6f73042..3ecd5ce 100644
--- a/core/modules/image/src/Tests/ImageDimensionsTest.php
+++ b/core/modules/image/src/Tests/ImageDimensionsTest.php
@@ -24,7 +24,7 @@ class ImageDimensionsTest extends WebTestBase {
   /**
    * Test styled image dimensions cumulatively.
    */
-  function testImageDimensions() {
+  public function testImageDimensions() {
     $image_factory = $this->container->get('image.factory');
     // Create a working copy of the file.
     $files = $this->drupalGetTestFiles('image');
diff --git a/core/modules/image/src/Tests/ImageEffectsTest.php b/core/modules/image/src/Tests/ImageEffectsTest.php
index 895457f..fd8a392 100644
--- a/core/modules/image/src/Tests/ImageEffectsTest.php
+++ b/core/modules/image/src/Tests/ImageEffectsTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Test the image_resize_effect() function.
    */
-  function testResizeEffect() {
+  public function testResizeEffect() {
     $this->assertImageEffect('image_resize', array(
       'width' => 1,
       'height' => 2,
@@ -50,7 +50,7 @@ function testResizeEffect() {
   /**
    * Test the image_scale_effect() function.
    */
-  function testScaleEffect() {
+  public function testScaleEffect() {
     // @todo: need to test upscaling.
     $this->assertImageEffect('image_scale', array(
       'width' => 10,
@@ -67,7 +67,7 @@ function testScaleEffect() {
   /**
    * Test the image_crop_effect() function.
    */
-  function testCropEffect() {
+  public function testCropEffect() {
     // @todo should test the keyword offsets.
     $this->assertImageEffect('image_crop', array(
       'anchor' => 'top-1',
@@ -87,7 +87,7 @@ function testCropEffect() {
   /**
    * Tests the ConvertImageEffect plugin.
    */
-  function testConvertEffect() {
+  public function testConvertEffect() {
     // Test jpeg.
     $this->assertImageEffect('image_convert', array(
       'extension' => 'jpeg',
@@ -102,7 +102,7 @@ function testConvertEffect() {
   /**
    * Test the image_scale_and_crop_effect() function.
    */
-  function testScaleAndCropEffect() {
+  public function testScaleAndCropEffect() {
     $this->assertImageEffect('image_scale_and_crop', array(
       'width' => 5,
       'height' => 10,
@@ -118,7 +118,7 @@ function testScaleAndCropEffect() {
   /**
    * Test the image_desaturate_effect() function.
    */
-  function testDesaturateEffect() {
+  public function testDesaturateEffect() {
     $this->assertImageEffect('image_desaturate', array());
     $this->assertToolkitOperationsCalled(array('desaturate'));
 
@@ -130,7 +130,7 @@ function testDesaturateEffect() {
   /**
    * Test the image_rotate_effect() function.
    */
-  function testRotateEffect() {
+  public function testRotateEffect() {
     // @todo: need to test with 'random' => TRUE
     $this->assertImageEffect('image_rotate', array(
       'degrees' => 90,
@@ -147,7 +147,7 @@ function testRotateEffect() {
   /**
    * Test image effect caching.
    */
-  function testImageEffectsCaching() {
+  public function testImageEffectsCaching() {
     $image_effect_definitions_called = &drupal_static('image_module_test_image_effect_info_alter');
 
     // First call should grab a fresh copy of the data.
diff --git a/core/modules/image/src/Tests/ImageFieldDisplayTest.php b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
index 666a791..9039307 100644
--- a/core/modules/image/src/Tests/ImageFieldDisplayTest.php
+++ b/core/modules/image/src/Tests/ImageFieldDisplayTest.php
@@ -26,14 +26,14 @@ class ImageFieldDisplayTest extends ImageFieldTestBase {
   /**
    * Test image formatters on node display for public files.
    */
-  function testImageFieldFormattersPublic() {
+  public function testImageFieldFormattersPublic() {
     $this->_testImageFieldFormatters('public');
   }
 
   /**
    * Test image formatters on node display for private files.
    */
-  function testImageFieldFormattersPrivate() {
+  public function testImageFieldFormattersPrivate() {
     // Remove access content permission from anonymous users.
     user_role_change_permissions(RoleInterface::ANONYMOUS_ID, array('access content' => FALSE));
     $this->_testImageFieldFormatters('private');
@@ -42,7 +42,7 @@ function testImageFieldFormattersPrivate() {
   /**
    * Test image formatters on node display.
    */
-  function _testImageFieldFormatters($scheme) {
+  public function _testImageFieldFormatters($scheme) {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
@@ -204,7 +204,7 @@ function _testImageFieldFormatters($scheme) {
   /**
    * Tests for image field settings.
    */
-  function testImageFieldSettings() {
+  public function testImageFieldSettings() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
@@ -319,7 +319,7 @@ function testImageFieldSettings() {
   /**
    * Test use of a default image with an image field.
    */
-  function testImageFieldDefaultImage() {
+  public function testImageFieldDefaultImage() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
diff --git a/core/modules/image/src/Tests/ImageFieldTestBase.php b/core/modules/image/src/Tests/ImageFieldTestBase.php
index bb976f9..823ac52 100644
--- a/core/modules/image/src/Tests/ImageFieldTestBase.php
+++ b/core/modules/image/src/Tests/ImageFieldTestBase.php
@@ -62,7 +62,7 @@ protected function setUp() {
    * @param string $type
    *   The type of node to create.
    */
-  function previewNodeImage($image, $field_name, $type) {
+  public function previewNodeImage($image, $field_name, $type) {
     $edit = array(
       'title[0][value]' => $this->randomMachineName(),
     );
@@ -82,7 +82,7 @@ function previewNodeImage($image, $field_name, $type) {
    * @param $alt
    *   The alt text for the image. Use if the field settings require alt text.
    */
-  function uploadNodeImage($image, $field_name, $type, $alt = '') {
+  public function uploadNodeImage($image, $field_name, $type, $alt = '') {
     $edit = array(
       'title[0][value]' => $this->randomMachineName(),
     );
diff --git a/core/modules/image/src/Tests/ImageFieldValidateTest.php b/core/modules/image/src/Tests/ImageFieldValidateTest.php
index 5f0bf21..529eb27 100644
--- a/core/modules/image/src/Tests/ImageFieldValidateTest.php
+++ b/core/modules/image/src/Tests/ImageFieldValidateTest.php
@@ -11,7 +11,7 @@ class ImageFieldValidateTest extends ImageFieldTestBase {
   /**
    * Test min/max resolution settings.
    */
-  function testResolution() {
+  public function testResolution() {
     $field_names = [
       0 => strtolower($this->randomMachineName()),
       1 => strtolower($this->randomMachineName()),
@@ -85,7 +85,7 @@ function testResolution() {
   /**
    * Test that required alt/title fields gets validated right.
    */
-  function testRequiredAttributes() {
+  public function testRequiredAttributes() {
     $field_name = strtolower($this->randomMachineName());
     $field_settings = array(
       'alt_field' => 1,
diff --git a/core/modules/image/src/Tests/ImageStyleFlushTest.php b/core/modules/image/src/Tests/ImageStyleFlushTest.php
index 63c0d80..253645f 100644
--- a/core/modules/image/src/Tests/ImageStyleFlushTest.php
+++ b/core/modules/image/src/Tests/ImageStyleFlushTest.php
@@ -14,7 +14,7 @@ class ImageStyleFlushTest extends ImageFieldTestBase {
   /**
    * Given an image style and a wrapper, generate an image.
    */
-  function createSampleImage($style, $wrapper) {
+  public function createSampleImage($style, $wrapper) {
     static $file;
 
     if (!isset($file)) {
@@ -34,14 +34,14 @@ function createSampleImage($style, $wrapper) {
   /**
    * Count the number of images currently created for a style in a wrapper.
    */
-  function getImageCount($style, $wrapper) {
+  public function getImageCount($style, $wrapper) {
     return count(file_scan_directory($wrapper . '://styles/' . $style->id(), '/.*/'));
   }
 
   /**
    * General test to flush a style.
    */
-  function testFlush() {
+  public function testFlush() {
 
     // Setup a style to be created and effects to add to it.
     $style_name = strtolower($this->randomMachineName(10));
diff --git a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
index d03bc3b..d5fd1ca 100644
--- a/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/src/Tests/ImageStylesPathAndUrlTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests \Drupal\image\ImageStyleInterface::buildUri().
    */
-  function testImageStylePath() {
+  public function testImageStylePath() {
     $scheme = 'public';
     $actual = $this->style->buildUri("$scheme://foo/bar.gif");
     $expected = "$scheme://styles/" . $this->style->id() . "/$scheme/foo/bar.gif";
@@ -48,42 +48,42 @@ function testImageStylePath() {
   /**
    * Tests an image style URL using the "public://" scheme.
    */
-  function testImageStyleUrlAndPathPublic() {
+  public function testImageStyleUrlAndPathPublic() {
     $this->doImageStyleUrlAndPathTests('public');
   }
 
   /**
    * Tests an image style URL using the "private://" scheme.
    */
-  function testImageStyleUrlAndPathPrivate() {
+  public function testImageStyleUrlAndPathPrivate() {
     $this->doImageStyleUrlAndPathTests('private');
   }
 
   /**
    * Tests an image style URL with the "public://" scheme and unclean URLs.
    */
-  function testImageStyleUrlAndPathPublicUnclean() {
+  public function testImageStyleUrlAndPathPublicUnclean() {
     $this->doImageStyleUrlAndPathTests('public', FALSE);
   }
 
   /**
    * Tests an image style URL with the "private://" schema and unclean URLs.
    */
-  function testImageStyleUrlAndPathPrivateUnclean() {
+  public function testImageStyleUrlAndPathPrivateUnclean() {
     $this->doImageStyleUrlAndPathTests('private', FALSE);
   }
 
   /**
    * Tests an image style URL with a file URL that has an extra slash in it.
    */
-  function testImageStyleUrlExtraSlash() {
+  public function testImageStyleUrlExtraSlash() {
     $this->doImageStyleUrlAndPathTests('public', TRUE, TRUE);
   }
 
   /**
    * Tests that an invalid source image returns a 404.
    */
-  function testImageStyleUrlForMissingSourceImage() {
+  public function testImageStyleUrlForMissingSourceImage() {
     $non_existent_uri = 'public://foo.png';
     $generated_url = $this->style->buildUrl($non_existent_uri);
     $this->drupalGet($generated_url);
@@ -93,7 +93,7 @@ function testImageStyleUrlForMissingSourceImage() {
   /**
    * Tests building an image style URL.
    */
-  function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE) {
+  public function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = FALSE) {
     $this->prepareRequestForGenerator($clean_url);
 
     // Make the default scheme neither "public" nor "private" to verify the
diff --git a/core/modules/image/src/Tests/ImageThemeFunctionTest.php b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
index 52cf6c6..b120a39 100644
--- a/core/modules/image/src/Tests/ImageThemeFunctionTest.php
+++ b/core/modules/image/src/Tests/ImageThemeFunctionTest.php
@@ -62,7 +62,7 @@ protected function setUp() {
   /**
    * Tests usage of the image field formatters.
    */
-  function testImageFormatterTheme() {
+  public function testImageFormatterTheme() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
@@ -124,7 +124,7 @@ function testImageFormatterTheme() {
   /**
    * Tests usage of the image style theme function.
    */
-  function testImageStyleTheme() {
+  public function testImageStyleTheme() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
@@ -161,7 +161,7 @@ function testImageStyleTheme() {
   /**
    * Tests image alt attribute functionality.
    */
-  function testImageAltFunctionality() {
+  public function testImageAltFunctionality() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
diff --git a/core/modules/image/tests/src/Kernel/ImageFormatterTest.php b/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
index d1b132e..f9cc689 100644
--- a/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageFormatterTest.php
@@ -84,7 +84,7 @@ protected function setUp() {
   /**
    * Tests the cache tags from image formatters.
    */
-  function testImageFormatterCacheTags() {
+  public function testImageFormatterCacheTags() {
     // Create a test entity with the image field set.
     $entity = EntityTest::create([
       'name' => $this->randomMachineName(),
diff --git a/core/modules/language/src/EventSubscriber/ConfigSubscriber.php b/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
index 4159c37..96594ba 100644
--- a/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/ConfigSubscriber.php
@@ -140,7 +140,7 @@ public function setPathProcessorLanguage(PathProcessorLanguage $path_processor_l
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[ConfigEvents::SAVE][] = array('onConfigSave', 0);
     return $events;
   }
diff --git a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
index c805b0f..39ea13d 100644
--- a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
+++ b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php
@@ -91,7 +91,7 @@ public function onKernelRequestLanguage(GetResponseEvent $event) {
    * @return array
    *   An array of event listener definitions.
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[KernelEvents::REQUEST][] = array('onKernelRequestLanguage', 255);
 
     return $events;
diff --git a/core/modules/language/src/LanguageNegotiator.php b/core/modules/language/src/LanguageNegotiator.php
index 2ae9032..0ec2ac9 100644
--- a/core/modules/language/src/LanguageNegotiator.php
+++ b/core/modules/language/src/LanguageNegotiator.php
@@ -245,7 +245,7 @@ public function isNegotiationMethodEnabled($method_id, $type = NULL) {
   /**
    * {@inheritdoc}
    */
-  function saveConfiguration($type, $enabled_methods) {
+  public function saveConfiguration($type, $enabled_methods) {
     // As configurable language types might have changed, we reset the cache.
     $this->languageManager->reset();
     $definitions = $this->getNegotiationMethods();
@@ -274,7 +274,7 @@ function saveConfiguration($type, $enabled_methods) {
   /**
    * {@inheritdoc}
    */
-  function purgeConfiguration() {
+  public function purgeConfiguration() {
     // Ensure that we are getting the defined language negotiation information.
     // An invocation of \Drupal\Core\Extension\ModuleInstaller::install() or
     // \Drupal\Core\Extension\ModuleInstaller::uninstall() could invalidate the
@@ -289,7 +289,7 @@ function purgeConfiguration() {
   /**
    * {@inheritdoc}
    */
-  function updateConfiguration(array $types) {
+  public function updateConfiguration(array $types) {
     // Ensure that we are getting the defined language negotiation information.
     // An invocation of \Drupal\Core\Extension\ModuleInstaller::install() or
     // \Drupal\Core\Extension\ModuleInstaller::uninstall() could invalidate the
diff --git a/core/modules/language/src/LanguageNegotiatorInterface.php b/core/modules/language/src/LanguageNegotiatorInterface.php
index 2792169..71f44b5 100644
--- a/core/modules/language/src/LanguageNegotiatorInterface.php
+++ b/core/modules/language/src/LanguageNegotiatorInterface.php
@@ -187,12 +187,12 @@ public function isNegotiationMethodEnabled($method_id, $type = NULL);
    * @param int[] $enabled_methods
    *   An array of language negotiation method weights keyed by method ID.
    */
-  function saveConfiguration($type, $enabled_methods);
+  public function saveConfiguration($type, $enabled_methods);
 
   /**
    * Resave the configuration to purge missing negotiation methods.
    */
-  function purgeConfiguration();
+  public function purgeConfiguration();
 
   /**
    * Updates the configuration based on the given language types.
@@ -204,6 +204,6 @@ function purgeConfiguration();
    * @param string[] $types
    *   An array of configurable language types.
    */
-  function updateConfiguration(array $types);
+  public function updateConfiguration(array $types);
 
 }
diff --git a/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php b/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
index 3991b2a..1120243 100644
--- a/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
+++ b/core/modules/language/src/Tests/LanguageBrowserDetectionTest.php
@@ -17,7 +17,7 @@ class LanguageBrowserDetectionTest extends WebTestBase {
    * Tests for adding, editing and deleting mappings between browser language
    * codes and Drupal language codes.
    */
-  function testUIBrowserLanguageMappings() {
+  public function testUIBrowserLanguageMappings() {
     // User to manage languages.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/language/src/Tests/LanguageConfigSchemaTest.php b/core/modules/language/src/Tests/LanguageConfigSchemaTest.php
index 97cbbb7..a76e251 100644
--- a/core/modules/language/src/Tests/LanguageConfigSchemaTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigSchemaTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests whether the language config schema is valid.
    */
-  function testValidLanguageConfigSchema() {
+  public function testValidLanguageConfigSchema() {
     // Make sure no language configuration available by default.
     $config_data = $this->config('language.settings')->get();
     $this->assertTrue(empty($config_data));
diff --git a/core/modules/language/src/Tests/LanguageConfigurationTest.php b/core/modules/language/src/Tests/LanguageConfigurationTest.php
index cf049f1..1b97153 100644
--- a/core/modules/language/src/Tests/LanguageConfigurationTest.php
+++ b/core/modules/language/src/Tests/LanguageConfigurationTest.php
@@ -23,7 +23,7 @@ class LanguageConfigurationTest extends WebTestBase {
   /**
    * Functional tests for adding, editing and deleting languages.
    */
-  function testLanguageConfiguration() {
+  public function testLanguageConfiguration() {
     // Ensure the after installing the language module the weight of the English
     // language is still 0.
     $this->assertEqual(ConfigurableLanguage::load('en')->getWeight(), 0, 'The English language has a weight of 0.');
@@ -148,7 +148,7 @@ function testLanguageConfiguration() {
   /**
    * Functional tests for setting system language weight on adding, editing and deleting languages.
    */
-  function testLanguageConfigurationWeight() {
+  public function testLanguageConfigurationWeight() {
     // User to add and remove language.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/language/src/Tests/LanguageListModuleInstallTest.php b/core/modules/language/src/Tests/LanguageListModuleInstallTest.php
index 3df9bdc..0c6759b 100644
--- a/core/modules/language/src/Tests/LanguageListModuleInstallTest.php
+++ b/core/modules/language/src/Tests/LanguageListModuleInstallTest.php
@@ -22,7 +22,7 @@ class LanguageListModuleInstallTest extends WebTestBase {
   /**
    * Tests enabling Language.
    */
-  function testModuleInstallLanguageList() {
+  public function testModuleInstallLanguageList() {
     // Since LanguageManager::getLanguages() uses static caches we need to do
     // this by enabling the module using the UI.
     $admin_user = $this->drupalCreateUser(array('access administration pages', 'administer modules'));
diff --git a/core/modules/language/src/Tests/LanguageListTest.php b/core/modules/language/src/Tests/LanguageListTest.php
index d407530..8bd4711 100644
--- a/core/modules/language/src/Tests/LanguageListTest.php
+++ b/core/modules/language/src/Tests/LanguageListTest.php
@@ -24,7 +24,7 @@ class LanguageListTest extends WebTestBase {
   /**
    * Functional tests for adding, editing and deleting languages.
    */
-  function testLanguageList() {
+  public function testLanguageList() {
 
     // User to add and remove language.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
@@ -186,7 +186,7 @@ function testLanguageList() {
   /**
    * Functional tests for the language states (locked or configurable).
    */
-  function testLanguageStates() {
+  public function testLanguageStates() {
     // Add some languages, and also lock some of them.
     ConfigurableLanguage::create(array('label' => $this->randomMachineName(), 'id' => 'l1'))->save();
     ConfigurableLanguage::create(array('label' => $this->randomMachineName(), 'id' => 'l2', 'locked' => TRUE))->save();
diff --git a/core/modules/language/src/Tests/LanguageLocaleListTest.php b/core/modules/language/src/Tests/LanguageLocaleListTest.php
index dd3e02a..a499207 100644
--- a/core/modules/language/src/Tests/LanguageLocaleListTest.php
+++ b/core/modules/language/src/Tests/LanguageLocaleListTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests adding, editing, and deleting languages.
    */
-  function testLanguageLocaleList() {
+  public function testLanguageLocaleList() {
     // User to add and remove language.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/language/src/Tests/LanguageNegotiationInfoTest.php b/core/modules/language/src/Tests/LanguageNegotiationInfoTest.php
index ee4c6d4..d382d77 100644
--- a/core/modules/language/src/Tests/LanguageNegotiationInfoTest.php
+++ b/core/modules/language/src/Tests/LanguageNegotiationInfoTest.php
@@ -61,7 +61,7 @@ protected function stateSet(array $values) {
   /**
    * Tests alterations to language types/negotiation info.
    */
-  function testInfoAlterations() {
+  public function testInfoAlterations() {
     $this->stateSet(array(
       // Enable language_test type info.
       'language_test.language_types' => TRUE,
diff --git a/core/modules/language/src/Tests/LanguagePathMonolingualTest.php b/core/modules/language/src/Tests/LanguagePathMonolingualTest.php
index 510d805..1ffff85 100644
--- a/core/modules/language/src/Tests/LanguagePathMonolingualTest.php
+++ b/core/modules/language/src/Tests/LanguagePathMonolingualTest.php
@@ -57,7 +57,7 @@ protected function setUp() {
   /**
    * Verifies that links do not have language prefixes in them.
    */
-  function testPageLinks() {
+  public function testPageLinks() {
     // Navigate to 'admin/config' path.
     $this->drupalGet('admin/config');
 
diff --git a/core/modules/language/src/Tests/LanguageSwitchingTest.php b/core/modules/language/src/Tests/LanguageSwitchingTest.php
index c076e6f..124c7d3 100644
--- a/core/modules/language/src/Tests/LanguageSwitchingTest.php
+++ b/core/modules/language/src/Tests/LanguageSwitchingTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
   /**
    * Functional tests for the language switcher block.
    */
-  function testLanguageBlock() {
+  public function testLanguageBlock() {
     // Add language.
     $edit = array(
       'predefined_langcode' => 'fr',
@@ -159,7 +159,7 @@ protected function doTestLanguageBlockAnonymous($block_label) {
   /**
    * Test language switcher links for domain based negotiation.
    */
-  function testLanguageBlockWithDomain() {
+  public function testLanguageBlockWithDomain() {
     // Add the Italian language.
     ConfigurableLanguage::createFromLangcode('it')->save();
 
@@ -221,7 +221,7 @@ function testLanguageBlockWithDomain() {
   /**
    * Test active class on links when switching languages.
    */
-  function testLanguageLinkActiveClass() {
+  public function testLanguageLinkActiveClass() {
     // Add language.
     $edit = array(
       'predefined_langcode' => 'fr',
@@ -239,7 +239,7 @@ function testLanguageLinkActiveClass() {
   /**
    * Check the path-admin class, as same as on default language.
    */
-  function testLanguageBodyClass() {
+  public function testLanguageBodyClass() {
     $searched_class = 'path-admin';
 
     // Add language.
diff --git a/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php b/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
index 03dd8cb..acd2330 100644
--- a/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
+++ b/core/modules/language/src/Tests/LanguageUILanguageNegotiationTest.php
@@ -60,7 +60,7 @@ protected function setUp() {
   /**
    * Tests for language switching by URL path.
    */
-  function testUILanguageNegotiation() {
+  public function testUILanguageNegotiation() {
     // A few languages to switch to.
     // This one is unknown, should get the default lang version.
     $langcode_unknown = 'blah-blah';
@@ -364,7 +364,7 @@ protected function doRunTest($test) {
   /**
    * Test URL language detection when the requested URL has no language.
    */
-  function testUrlLanguageFallback() {
+  public function testUrlLanguageFallback() {
     // Add the Italian language.
     $langcode_browser_fallback = 'it';
     ConfigurableLanguage::createFromLangcode($langcode_browser_fallback)->save();
@@ -416,7 +416,7 @@ function testUrlLanguageFallback() {
   /**
    * Tests URL handling when separate domains are used for multiple languages.
    */
-  function testLanguageDomain() {
+  public function testLanguageDomain() {
     global $base_url;
 
     // Get the current host URI we're running on.
diff --git a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
index 5cd80dc..cf2fe0c 100644
--- a/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
+++ b/core/modules/language/src/Tests/LanguageUrlRewritingTest.php
@@ -54,7 +54,7 @@ protected function setUp() {
   /**
    * Check that non-installed languages are not considered.
    */
-  function testUrlRewritingEdgeCases() {
+  public function testUrlRewritingEdgeCases() {
     // Check URL rewriting with a non-installed language.
     $non_existing = new Language(array('id' => $this->randomMachineName()));
     $this->checkUrl($non_existing, 'Path language is ignored if language is not installed.', 'URL language negotiation does not work with non-installed languages');
@@ -101,7 +101,7 @@ private function checkUrl(LanguageInterface $language, $message1, $message2) {
   /**
    * Check URL rewriting when using a domain name and a non-standard port.
    */
-  function testDomainNameNegotiationPort() {
+  public function testDomainNameNegotiationPort() {
     global $base_url;
     $language_domain = 'example.fr';
     // Get the current host URI we're running on.
diff --git a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
index 74b167f..cb90d3c 100644
--- a/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
+++ b/core/modules/language/tests/src/Kernel/LanguageDependencyInjectionTest.php
@@ -18,7 +18,7 @@ class LanguageDependencyInjectionTest extends LanguageTestBase {
    *
    * @see \Drupal\Core\Language\LanguageInterface
    */
-  function testDependencyInjectedNewLanguage() {
+  public function testDependencyInjectedNewLanguage() {
     $expected = $this->languageManager->getDefaultLanguage();
     $result = $this->languageManager->getCurrentLanguage();
     foreach ($expected as $property => $value) {
@@ -32,7 +32,7 @@ function testDependencyInjectedNewLanguage() {
    *
    * @see \Drupal\Core\Language\Language
    */
-  function testDependencyInjectedNewDefaultLanguage() {
+  public function testDependencyInjectedNewDefaultLanguage() {
     $default_language = ConfigurableLanguage::load(\Drupal::languageManager()->getDefaultLanguage()->getId());
     // Change the language default object to different values.
     ConfigurableLanguage::createFromLangcode('fr')->save();
diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php
index e85ad53..f7aa0fd 100644
--- a/core/modules/link/src/Tests/LinkFieldTest.php
+++ b/core/modules/link/src/Tests/LinkFieldTest.php
@@ -52,7 +52,7 @@ protected function setUp() {
   /**
    * Tests link field URL validation.
    */
-  function testURLValidation() {
+  public function testURLValidation() {
     $field_name = Unicode::strtolower($this->randomMachineName());
     // Create a field with settings to validate.
     $this->fieldStorage = FieldStorageConfig::create(array(
@@ -223,7 +223,7 @@ protected function assertInvalidEntries($field_name, array $invalid_entries) {
   /**
    * Tests the link title settings of a link field.
    */
-  function testLinkTitle() {
+  public function testLinkTitle() {
     $field_name = Unicode::strtolower($this->randomMachineName());
     // Create a field with settings to validate.
     $this->fieldStorage = FieldStorageConfig::create(array(
@@ -337,7 +337,7 @@ function testLinkTitle() {
   /**
    * Tests the default 'link' formatter.
    */
-  function testLinkFormatter() {
+  public function testLinkFormatter() {
     $field_name = Unicode::strtolower($this->randomMachineName());
     // Create a field with settings to validate.
     $this->fieldStorage = FieldStorageConfig::create(array(
@@ -492,7 +492,7 @@ function testLinkFormatter() {
    * This test is mostly the same as testLinkFormatter(), but they cannot be
    * merged, since they involve different configuration and output.
    */
-  function testLinkSeparateFormatter() {
+  public function testLinkSeparateFormatter() {
     $field_name = Unicode::strtolower($this->randomMachineName());
     // Create a field with settings to validate.
     $this->fieldStorage = FieldStorageConfig::create(array(
diff --git a/core/modules/link/src/Tests/LinkFieldUITest.php b/core/modules/link/src/Tests/LinkFieldUITest.php
index 855c10b..8d855d0 100644
--- a/core/modules/link/src/Tests/LinkFieldUITest.php
+++ b/core/modules/link/src/Tests/LinkFieldUITest.php
@@ -44,7 +44,7 @@ protected function setUp() {
   /**
    * Tests the link field UI.
    */
-  function testFieldUI() {
+  public function testFieldUI() {
     // Add a content type.
     $type = $this->drupalCreateContentType();
     $type_path = 'admin/structure/types/manage/' . $type->id();
diff --git a/core/modules/locale/src/LocaleProjectStorage.php b/core/modules/locale/src/LocaleProjectStorage.php
index 907bd6c..cdbb30c 100644
--- a/core/modules/locale/src/LocaleProjectStorage.php
+++ b/core/modules/locale/src/LocaleProjectStorage.php
@@ -36,7 +36,7 @@ class LocaleProjectStorage implements LocaleProjectStorageInterface {
    * @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory
    *   The key value store to use.
    */
-  function __construct(KeyValueFactoryInterface $key_value_factory) {
+  public function __construct(KeyValueFactoryInterface $key_value_factory) {
     $this->keyValueStore = $key_value_factory->get('locale.project');
   }
 
diff --git a/core/modules/locale/src/StreamWrapper/TranslationsStream.php b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
index 8a1c1c9..e7cb278 100644
--- a/core/modules/locale/src/StreamWrapper/TranslationsStream.php
+++ b/core/modules/locale/src/StreamWrapper/TranslationsStream.php
@@ -36,7 +36,7 @@ public function getDescription() {
   /**
    * {@inheritdoc}
    */
-  function getDirectoryPath() {
+  public function getDirectoryPath() {
     return \Drupal::config('locale.settings')->get('translation.path');
   }
 
@@ -45,7 +45,7 @@ function getDirectoryPath() {
    * @throws \LogicException
    *   PO files URL should not be public.
    */
-  function getExternalUrl() {
+  public function getExternalUrl() {
     throw new \LogicException('PO files URL should not be public.');
   }
 
diff --git a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
index 67faa81..da371de 100644
--- a/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
+++ b/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
@@ -130,7 +130,7 @@ public function testConfigTranslationModuleInstall() {
   /**
    * Test removing a string from Locale deletes configuration translations.
    */
-  function testLocaleRemovalAndConfigOverrideDelete() {
+  public function testLocaleRemovalAndConfigOverrideDelete() {
     // Enable the locale module.
     $this->container->get('module_installer')->install(['locale']);
     $this->resetAll();
@@ -167,7 +167,7 @@ function testLocaleRemovalAndConfigOverrideDelete() {
   /**
    * Test removing a string from Locale changes configuration translations.
    */
-  function testLocaleRemovalAndConfigOverridePreserve() {
+  public function testLocaleRemovalAndConfigOverridePreserve() {
     // Enable the locale module.
     $this->container->get('module_installer')->install(['locale']);
     $this->resetAll();
diff --git a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
index 1e41755..b81b884 100644
--- a/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
+++ b/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php
@@ -30,7 +30,7 @@ protected function setUp(){
   /**
    * Tests translation directory settings on the file settings form.
    */
-  function testFileConfigurationPage() {
+  public function testFileConfigurationPage() {
     // By default there should be no setting for the translation directory.
     $this->drupalGet('admin/config/media/file-system');
     $this->assertNoFieldByName('translation_path');
diff --git a/core/modules/locale/src/Tests/LocaleTranslatedSchemaDefinitionTest.php b/core/modules/locale/src/Tests/LocaleTranslatedSchemaDefinitionTest.php
index b117e2c..adefbea 100644
--- a/core/modules/locale/src/Tests/LocaleTranslatedSchemaDefinitionTest.php
+++ b/core/modules/locale/src/Tests/LocaleTranslatedSchemaDefinitionTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests that translated field descriptions do not affect the update system.
    */
-  function testTranslatedSchemaDefinition() {
+  public function testTranslatedSchemaDefinition() {
     /** @var \Drupal\locale\StringDatabaseStorage $stringStorage */
     $stringStorage = \Drupal::service('locale.storage');
 
@@ -60,7 +60,7 @@ function testTranslatedSchemaDefinition() {
   /**
    * Tests that translations do not affect the update system.
    */
-  function testTranslatedUpdate() {
+  public function testTranslatedUpdate() {
     // Visit the update page to collect any strings that may be translatable.
     $user = $this->drupalCreateUser(array('administer software updates'));
     $this->drupalLogin($user);
diff --git a/core/modules/menu_link_content/src/Tests/LinksTest.php b/core/modules/menu_link_content/src/Tests/LinksTest.php
index 84fecde..46ea863 100644
--- a/core/modules/menu_link_content/src/Tests/LinksTest.php
+++ b/core/modules/menu_link_content/src/Tests/LinksTest.php
@@ -46,7 +46,7 @@ protected function setUp() {
   /**
    * Create a simple hierarchy of links.
    */
-  function createLinkHierarchy($module = 'menu_test') {
+  public function createLinkHierarchy($module = 'menu_test') {
     // First remove all the menu links in the menu.
     $this->menuLinkManager->deleteLinksInMenu('menu_test');
 
@@ -107,7 +107,7 @@ function createLinkHierarchy($module = 'menu_test') {
   /**
    * Assert that at set of links is properly parented.
    */
-  function assertMenuLinkParents($links, $expected_hierarchy) {
+  public function assertMenuLinkParents($links, $expected_hierarchy) {
     foreach ($expected_hierarchy as $id => $parent) {
       /* @var \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin  */
       $menu_link_plugin = $this->menuLinkManager->createInstance($links[$id]);
@@ -143,7 +143,7 @@ public function testCreateLink() {
   /**
    * Test automatic reparenting of menu links.
    */
-  function testMenuLinkReparenting($module = 'menu_test') {
+  public function testMenuLinkReparenting($module = 'menu_test') {
     // Check the initial hierarchy.
     $links = $this->createLinkHierarchy($module);
 
diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
index cf802b7..ec2dd2b 100644
--- a/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
+++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentTranslationUITest.php
@@ -79,7 +79,7 @@ public function testTranslationLinkOnMenuEditForm() {
   /**
    * Tests that translation page inherits admin status of edit page.
    */
-  function testTranslationLinkTheme() {
+  public function testTranslationLinkTheme() {
     $this->drupalLogin($this->administrator);
     $entityId = $this->createEntity(array(), 'en');
 
diff --git a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
index 72865ea..b2c86d1 100644
--- a/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuLanguageTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
   /**
    * Tests menu language settings and the defaults for menu link items.
    */
-  function testMenuLanguage() {
+  public function testMenuLanguage() {
     // Create a test menu to test the various language-related settings.
     // Machine name has to be lowercase.
     $menu_name = Unicode::strtolower($this->randomMachineName(16));
diff --git a/core/modules/menu_ui/src/Tests/MenuLinkReorderTest.php b/core/modules/menu_ui/src/Tests/MenuLinkReorderTest.php
index 0396f17..0d8de52 100644
--- a/core/modules/menu_ui/src/Tests/MenuLinkReorderTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuLinkReorderTest.php
@@ -28,7 +28,7 @@ class MenuLinkReorderTest extends WebTestBase {
   /**
    * Test creating, editing, deleting menu links via node form widget.
    */
-  function testDefaultMenuLinkReorder() {
+  public function testDefaultMenuLinkReorder() {
 
     // Add the main menu block.
     $this->drupalPlaceBlock('system_menu_block:main');
diff --git a/core/modules/menu_ui/src/Tests/MenuNodeTest.php b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
index 3fc8423..a8095e3 100644
--- a/core/modules/menu_ui/src/Tests/MenuNodeTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuNodeTest.php
@@ -54,7 +54,7 @@ protected function setUp() {
   /**
    * Test creating, editing, deleting menu links via node form widget.
    */
-  function testMenuNodeFormWidget() {
+  public function testMenuNodeFormWidget() {
     // Verify that cacheability metadata is bubbled from the menu link tree
     // access checking that is performed when determining the "default parent
     // item" options in menu_ui_form_node_type_form_alter(). The "log out" link
@@ -240,7 +240,7 @@ function testMenuNodeFormWidget() {
   /**
    * Testing correct loading and saving of menu links via node form widget in a multilingual environment.
    */
-  function testMultilingualMenuNodeFormWidget() {
+  public function testMultilingualMenuNodeFormWidget() {
     // Setup languages.
     $langcodes = array('de');
     foreach ($langcodes as $langcode) {
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index e9464ab..201f106 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -76,7 +76,7 @@ protected function setUp() {
   /**
    * Tests menu functionality using the admin and user interfaces.
    */
-  function testMenu() {
+  public function testMenu() {
     // Log in the user.
     $this->drupalLogin($this->adminUser);
     $this->items = array();
@@ -147,7 +147,7 @@ function testMenu() {
   /**
    * Adds a custom menu using CRUD functions.
    */
-  function addCustomMenuCRUD() {
+  public function addCustomMenuCRUD() {
     // Add a new custom menu.
     $menu_name = substr(hash('sha256', $this->randomMachineName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI);
     $label = $this->randomMachineName(16);
@@ -177,7 +177,7 @@ function addCustomMenuCRUD() {
    * @return \Drupal\system\Entity\Menu
    *   The custom menu that has been created.
    */
-  function addCustomMenu() {
+  public function addCustomMenu() {
     // Try adding a menu using a menu_name that is too long.
     $this->drupalGet('admin/structure/menu/add');
     $menu_name = substr(hash('sha256', $this->randomMachineName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI + 1);
@@ -230,7 +230,7 @@ function addCustomMenu() {
    * This deletes the custom menu that is stored in $this->menu and performs
    * tests on the menu delete user interface.
    */
-  function deleteCustomMenu() {
+  public function deleteCustomMenu() {
     $menu_name = $this->menu->id();
     $label = $this->menu->label();
 
@@ -256,7 +256,7 @@ function deleteCustomMenu() {
   /**
    * Tests menu functionality.
    */
-  function doMenuTests() {
+  public function doMenuTests() {
     $menu_name = $this->menu->id();
 
     // Test the 'Add link' local action.
@@ -488,7 +488,7 @@ protected function doMenuLinkFormDefaultsTest() {
   /**
    * Adds and removes a menu link with a query string and fragment.
    */
-  function testMenuQueryAndFragment() {
+  public function testMenuQueryAndFragment() {
     $this->drupalLogin($this->adminUser);
 
     // Make a path with query and fragment on.
@@ -520,7 +520,7 @@ function testMenuQueryAndFragment() {
   /**
    * Tests renaming the built-in menu.
    */
-  function testSystemMenuRename() {
+  public function testSystemMenuRename() {
     $this->drupalLogin($this->adminUser);
     $edit = array(
       'label' => $this->randomMachineName(16),
@@ -537,7 +537,7 @@ function testSystemMenuRename() {
   /**
    * Tests that menu items pointing to unpublished nodes are editable.
    */
-  function testUnpublishedNodeMenuItem() {
+  public function testUnpublishedNodeMenuItem() {
     $this->drupalLogin($this->drupalCreateUser(array('access administration pages', 'administer blocks', 'administer menu', 'create article content', 'bypass node access')));
     // Create an unpublished node.
     $node = $this->drupalCreateNode(array(
@@ -601,7 +601,7 @@ public function testBlockContextualLinks() {
    * @return \Drupal\menu_link_content\Entity\MenuLinkContent
    *   A menu link entity.
    */
-  function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded = FALSE, $weight = '0') {
+  public function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded = FALSE, $weight = '0') {
     // View add menu link page.
     $this->drupalGet("admin/structure/menu/manage/$menu_name/add");
     $this->assertResponse(200);
@@ -634,7 +634,7 @@ function addMenuLink($parent = '', $path = '/', $menu_name = 'tools', $expanded
   /**
    * Attempts to add menu link with invalid path or no access permission.
    */
-  function addInvalidMenuLink() {
+  public function addInvalidMenuLink() {
     foreach (array('access' => '/admin/people/permissions') as $type => $link_path) {
       $edit = array(
         'link[0][uri]' => $link_path,
@@ -648,7 +648,7 @@ function addInvalidMenuLink() {
   /**
    * Tests that parent options are limited by depth when adding menu links.
    */
-  function checkInvalidParentMenuLinks() {
+  public function checkInvalidParentMenuLinks() {
     $last_link = NULL;
     $created_links = array();
 
@@ -699,7 +699,7 @@ function checkInvalidParentMenuLinks() {
    * @param object $parent_node
    *   Parent menu link content node.
    */
-  function verifyMenuLink(MenuLinkContent $item, $item_node, MenuLinkContent $parent = NULL, $parent_node = NULL) {
+  public function verifyMenuLink(MenuLinkContent $item, $item_node, MenuLinkContent $parent = NULL, $parent_node = NULL) {
     // View home page.
     $this->drupalGet('');
     $this->assertResponse(200);
@@ -736,7 +736,7 @@ function verifyMenuLink(MenuLinkContent $item, $item_node, MenuLinkContent $pare
    * @param string $menu_name
    *   The menu the menu link will be moved to.
    */
-  function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
+  public function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
     $mlid = $item->id();
 
     $edit = array(
@@ -752,7 +752,7 @@ function moveMenuLink(MenuLinkContent $item, $parent, $menu_name) {
    * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
    *   Menu link entity.
    */
-  function modifyMenuLink(MenuLinkContent $item) {
+  public function modifyMenuLink(MenuLinkContent $item) {
     $item->title->value = $this->randomMachineName(16);
 
     $mlid = $item->id();
@@ -777,7 +777,7 @@ function modifyMenuLink(MenuLinkContent $item) {
    * @param int $old_weight
    *   Original title for menu link.
    */
-  function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
+  public function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
     // Reset menu link.
     $this->drupalPostForm("admin/structure/menu/link/{$menu_link->getPluginId()}/reset", array(), t('Reset'));
     $this->assertResponse(200);
@@ -794,7 +794,7 @@ function resetMenuLink(MenuLinkInterface $menu_link, $old_weight) {
    * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
    *   Menu link.
    */
-  function deleteMenuLink(MenuLinkContent $item) {
+  public function deleteMenuLink(MenuLinkContent $item) {
     $mlid = $item->id();
     $title = $item->getTitle();
 
@@ -814,7 +814,7 @@ function deleteMenuLink(MenuLinkContent $item) {
    * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
    *   Menu link.
    */
-  function toggleMenuLink(MenuLinkContent $item) {
+  public function toggleMenuLink(MenuLinkContent $item) {
     $this->disableMenuLink($item);
 
     // Verify menu link is absent.
@@ -833,7 +833,7 @@ function toggleMenuLink(MenuLinkContent $item) {
    * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
    *   Menu link.
    */
-  function disableMenuLink(MenuLinkContent $item) {
+  public function disableMenuLink(MenuLinkContent $item) {
     $mlid = $item->id();
     $edit['enabled[value]'] = FALSE;
     $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
@@ -849,7 +849,7 @@ function disableMenuLink(MenuLinkContent $item) {
    * @param \Drupal\menu_link_content\Entity\MenuLinkContent $item
    *   Menu link.
    */
-  function enableMenuLink(MenuLinkContent $item) {
+  public function enableMenuLink(MenuLinkContent $item) {
     $mlid = $item->id();
     $edit['enabled[value]'] = TRUE;
     $this->drupalPostForm("admin/structure/menu/item/$mlid/edit", $edit, t('Save'));
diff --git a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
index c08fc14..ac55dd8 100644
--- a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
+++ b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php
@@ -24,7 +24,7 @@
    * @param array $expected_item
    *   Array containing properties to verify.
    */
-  function assertMenuLink($menu_plugin_id, array $expected_item) {
+  public function assertMenuLink($menu_plugin_id, array $expected_item) {
     // Retrieve menu link.
     /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */
     $menu_link_manager = \Drupal::service('plugin.manager.menu.link');
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index d9437db..10f4edf 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -219,7 +219,7 @@ public function form(array $form, FormStateInterface $form_state) {
    *
    * @see \Drupal\node\NodeForm::form()
    */
-  function updateStatus($entity_type_id, NodeInterface $node, array $form, FormStateInterface $form_state) {
+  public function updateStatus($entity_type_id, NodeInterface $node, array $form, FormStateInterface $form_state) {
     $element = $form_state->getTriggeringElement();
     if (isset($element['#published_status'])) {
       $node->setPublished($element['#published_status']);
diff --git a/core/modules/node/src/Plugin/views/argument/Type.php b/core/modules/node/src/Plugin/views/argument/Type.php
index 641b163..760397a 100644
--- a/core/modules/node/src/Plugin/views/argument/Type.php
+++ b/core/modules/node/src/Plugin/views/argument/Type.php
@@ -63,11 +63,11 @@ public function summaryName($data) {
    * Override the behavior of title(). Get the user friendly version of the
    * node type.
    */
-  function title() {
+  public function title() {
     return $this->node_type($this->argument);
   }
 
-  function node_type($type_name) {
+  public function node_type($type_name) {
     $type = $this->nodeTypeStorage->load($type_name);
     $output = $type ? $type->label() : $this->t('Unknown content type');
     return $output;
diff --git a/core/modules/node/src/Tests/MultiStepNodeFormBasicOptionsTest.php b/core/modules/node/src/Tests/MultiStepNodeFormBasicOptionsTest.php
index c23986a..ff66525 100644
--- a/core/modules/node/src/Tests/MultiStepNodeFormBasicOptionsTest.php
+++ b/core/modules/node/src/Tests/MultiStepNodeFormBasicOptionsTest.php
@@ -22,7 +22,7 @@ class MultiStepNodeFormBasicOptionsTest extends NodeTestBase {
   /**
    * Tests changing the default values of basic options to ensure they persist.
    */
-  function testMultiStepNodeFormBasicOptions() {
+  public function testMultiStepNodeFormBasicOptions() {
     // Prepare a user to create the node.
     $web_user = $this->drupalCreateUser(array('administer nodes', 'create page content'));
     $this->drupalLogin($web_user);
diff --git a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
index 74e2340..2a78ceb 100644
--- a/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
+++ b/core/modules/node/src/Tests/NodeAccessBaseTableTest.php
@@ -83,7 +83,7 @@ protected function setUp() {
    * - Test that user 4 can view all content created above.
    * - Test that user 4 can view all content on taxonomy listing.
    */
-  function testNodeAccessBasic() {
+  public function testNodeAccessBasic() {
     $num_simple_users = 2;
     $simple_users = array();
 
diff --git a/core/modules/node/src/Tests/NodeAccessFieldTest.php b/core/modules/node/src/Tests/NodeAccessFieldTest.php
index dcfa43d..e4571eb 100644
--- a/core/modules/node/src/Tests/NodeAccessFieldTest.php
+++ b/core/modules/node/src/Tests/NodeAccessFieldTest.php
@@ -72,7 +72,7 @@ protected function setUp() {
   /**
    * Tests administering fields when node access is restricted.
    */
-  function testNodeAccessAdministerField() {
+  public function testNodeAccessAdministerField() {
     // Create a page node.
     $fieldData = array();
     $value = $fieldData[0]['value'] = $this->randomMachineName();
diff --git a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
index 1ee5bc2..e084a5c 100644
--- a/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
+++ b/core/modules/node/src/Tests/NodeAccessLanguageAwareCombinationTest.php
@@ -192,7 +192,7 @@ protected function setUp() {
   /**
    * Tests node access and node access queries with multiple node languages.
    */
-  function testNodeAccessLanguageAwareCombination() {
+  public function testNodeAccessLanguageAwareCombination() {
 
     $expected_node_access = array('view' => TRUE, 'update' => FALSE, 'delete' => FALSE);
     $expected_node_access_no_access = array('view' => FALSE, 'update' => FALSE, 'delete' => FALSE);
diff --git a/core/modules/node/src/Tests/NodeAccessLanguageTest.php b/core/modules/node/src/Tests/NodeAccessLanguageTest.php
index e0393a0..5108e23 100644
--- a/core/modules/node/src/Tests/NodeAccessLanguageTest.php
+++ b/core/modules/node/src/Tests/NodeAccessLanguageTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests node access with multiple node languages and no private nodes.
    */
-  function testNodeAccess() {
+  public function testNodeAccess() {
     $web_user = $this->drupalCreateUser(array('access content'));
 
     $expected_node_access = array('view' => TRUE, 'update' => FALSE, 'delete' => FALSE);
@@ -112,7 +112,7 @@ function testNodeAccess() {
   /**
    * Tests node access with multiple node languages and private nodes.
    */
-  function testNodeAccessPrivate() {
+  public function testNodeAccessPrivate() {
     $web_user = $this->drupalCreateUser(array('access content'));
     $expected_node_access = array('view' => TRUE, 'update' => FALSE, 'delete' => FALSE);
     $expected_node_access_no_access = array('view' => FALSE, 'update' => FALSE, 'delete' => FALSE);
@@ -175,7 +175,7 @@ function testNodeAccessPrivate() {
   /**
    * Tests db_select() with a 'node_access' tag and langcode metadata.
    */
-  function testNodeAccessQueryTag() {
+  public function testNodeAccessQueryTag() {
     // Create a normal authenticated user.
     $web_user = $this->drupalCreateUser(array('access content'));
 
diff --git a/core/modules/node/src/Tests/NodeAccessMenuLinkTest.php b/core/modules/node/src/Tests/NodeAccessMenuLinkTest.php
index c1bc0eb..b68970f 100644
--- a/core/modules/node/src/Tests/NodeAccessMenuLinkTest.php
+++ b/core/modules/node/src/Tests/NodeAccessMenuLinkTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * SA-CORE-2015-003: Tests menu links to nodes when node access is restricted.
    */
-  function testNodeAccessMenuLink() {
+  public function testNodeAccessMenuLink() {
 
     $menu_link_title = $this->randomString();
 
diff --git a/core/modules/node/src/Tests/NodeAccessRecordsTest.php b/core/modules/node/src/Tests/NodeAccessRecordsTest.php
index 4126539..d2e0416 100644
--- a/core/modules/node/src/Tests/NodeAccessRecordsTest.php
+++ b/core/modules/node/src/Tests/NodeAccessRecordsTest.php
@@ -21,7 +21,7 @@ class NodeAccessRecordsTest extends NodeTestBase {
   /**
    * Creates a node and tests the creation of node access rules.
    */
-  function testNodeAccessRecords() {
+  public function testNodeAccessRecords() {
     // Create an article node.
     $node1 = $this->drupalCreateNode(array('type' => 'article'));
     $this->assertTrue(Node::load($node1->id()), 'Article node created.');
diff --git a/core/modules/node/src/Tests/NodeAdminTest.php b/core/modules/node/src/Tests/NodeAdminTest.php
index 1717bb1..f57f7d7 100644
--- a/core/modules/node/src/Tests/NodeAdminTest.php
+++ b/core/modules/node/src/Tests/NodeAdminTest.php
@@ -62,7 +62,7 @@ protected function setUp() {
   /**
    * Tests that the table sorting works on the content admin pages.
    */
-  function testContentAdminSort() {
+  public function testContentAdminSort() {
     $this->drupalLogin($this->adminUser);
 
     $changed = REQUEST_TIME;
@@ -110,7 +110,7 @@ function testContentAdminSort() {
    *
    * @see TaxonomyNodeFilterTestCase
    */
-  function testContentAdminPages() {
+  public function testContentAdminPages() {
     $this->drupalLogin($this->adminUser);
 
     // Use an explicit changed time to ensure the expected order in the content
diff --git a/core/modules/node/src/Tests/NodeCreationTest.php b/core/modules/node/src/Tests/NodeCreationTest.php
index 7c4e142..a882191 100644
--- a/core/modules/node/src/Tests/NodeCreationTest.php
+++ b/core/modules/node/src/Tests/NodeCreationTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
   /**
    * Creates a "Basic page" node and verifies its consistency in the database.
    */
-  function testNodeCreation() {
+  public function testNodeCreation() {
     $node_type_storage = \Drupal::entityManager()->getStorage('node_type');
 
     // Test /node/add page with only one content type.
@@ -83,7 +83,7 @@ function testNodeCreation() {
   /**
    * Verifies that a transaction rolls back the failed creation.
    */
-  function testFailedPageCreation() {
+  public function testFailedPageCreation() {
     // Create a node.
     $edit = array(
       'uid'      => $this->loggedInUser->id(),
@@ -126,7 +126,7 @@ function testFailedPageCreation() {
   /**
    * Creates an unpublished node and confirms correct redirect behavior.
    */
-  function testUnpublishedNodeCreation() {
+  public function testUnpublishedNodeCreation() {
     // Set the front page to the test page.
     $this->config('system.site')->set('page.front', '/test-page')->save();
 
@@ -178,7 +178,7 @@ public function testAuthorAutocomplete() {
   /**
    * Check node/add when no node types exist.
    */
-  function testNodeAddWithoutContentTypes() {
+  public function testNodeAddWithoutContentTypes() {
     $this->drupalGet('node/add');
     $this->assertResponse(200);
     $this->assertNoLinkByHref('/admin/structure/types/add');
diff --git a/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php b/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
index 25ae6b6..6e7b0b7 100644
--- a/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
+++ b/core/modules/node/src/Tests/NodeEntityViewModeAlterTest.php
@@ -19,7 +19,7 @@ class NodeEntityViewModeAlterTest extends NodeTestBase {
   /**
    * Create a "Basic page" node and verify its consistency in the database.
    */
-  function testNodeViewModeChange() {
+  public function testNodeViewModeChange() {
     $web_user = $this->drupalCreateUser(array('create page content', 'edit own page content'));
     $this->drupalLogin($web_user);
 
diff --git a/core/modules/node/src/Tests/NodeFieldMultilingualTest.php b/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
index 3bd1a51..1ec05d7 100644
--- a/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
+++ b/core/modules/node/src/Tests/NodeFieldMultilingualTest.php
@@ -55,7 +55,7 @@ protected function setUp() {
   /**
    * Tests whether field languages are correctly set through the node form.
    */
-  function testMultilingualNodeForm() {
+  public function testMultilingualNodeForm() {
     // Create "Basic page" content.
     $langcode = language_get_default_langcode('node', 'page');
     $title_key = 'title[0][value]';
@@ -100,7 +100,7 @@ function testMultilingualNodeForm() {
   /**
    * Tests multilingual field display settings.
    */
-  function testMultilingualDisplaySettings() {
+  public function testMultilingualDisplaySettings() {
     // Create "Basic page" content.
     $title_key = 'title[0][value]';
     $title_value = $this->randomMachineName(8);
diff --git a/core/modules/node/src/Tests/NodeFormButtonsTest.php b/core/modules/node/src/Tests/NodeFormButtonsTest.php
index 9f6732b..59488b8 100644
--- a/core/modules/node/src/Tests/NodeFormButtonsTest.php
+++ b/core/modules/node/src/Tests/NodeFormButtonsTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Tests that the right buttons are displayed for saving nodes.
    */
-  function testNodeFormButtons() {
+  public function testNodeFormButtons() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Log in as administrative user.
     $this->drupalLogin($this->adminUser);
diff --git a/core/modules/node/src/Tests/NodeLoadMultipleTest.php b/core/modules/node/src/Tests/NodeLoadMultipleTest.php
index 4add3bd..0363ef4 100644
--- a/core/modules/node/src/Tests/NodeLoadMultipleTest.php
+++ b/core/modules/node/src/Tests/NodeLoadMultipleTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Creates four nodes and ensures that they are loaded correctly.
    */
-  function testNodeMultipleLoad() {
+  public function testNodeMultipleLoad() {
     $node1 = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
     $node2 = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
     $node3 = $this->drupalCreateNode(array('type' => 'article', 'promote' => 0));
diff --git a/core/modules/node/src/Tests/NodePostSettingsTest.php b/core/modules/node/src/Tests/NodePostSettingsTest.php
index bc3dd99..a9188df 100644
--- a/core/modules/node/src/Tests/NodePostSettingsTest.php
+++ b/core/modules/node/src/Tests/NodePostSettingsTest.php
@@ -20,7 +20,7 @@ protected function setUp() {
   /**
    * Confirms "Basic page" content type and post information is on a new node.
    */
-  function testPagePostInfo() {
+  public function testPagePostInfo() {
 
     // Set "Basic page" content type to display post information.
     $edit = array();
diff --git a/core/modules/node/src/Tests/NodeQueryAlterTest.php b/core/modules/node/src/Tests/NodeQueryAlterTest.php
index 022625b..aa6c2fa 100644
--- a/core/modules/node/src/Tests/NodeQueryAlterTest.php
+++ b/core/modules/node/src/Tests/NodeQueryAlterTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
    * Verifies that a non-standard table alias can be used, and that a user with
    * node access can view the nodes.
    */
-  function testNodeQueryAlterLowLevelWithAccess() {
+  public function testNodeQueryAlterLowLevelWithAccess() {
     // User with access should be able to view 4 nodes.
     try {
       $query = db_select('node', 'mytab')
@@ -91,7 +91,7 @@ public function testNodeQueryAlterWithRevisions() {
    * Verifies that a non-standard table alias can be used, and that a user
    * without node access cannot view the nodes.
    */
-  function testNodeQueryAlterLowLevelNoAccess() {
+  public function testNodeQueryAlterLowLevelNoAccess() {
     // User without access should be able to view 0 nodes.
     try {
       $query = db_select('node', 'mytab')
@@ -114,7 +114,7 @@ function testNodeQueryAlterLowLevelNoAccess() {
    * Verifies that a non-standard table alias can be used, and that a user with
    * view-only node access cannot edit the nodes.
    */
-  function testNodeQueryAlterLowLevelEditAccess() {
+  public function testNodeQueryAlterLowLevelEditAccess() {
     // User with view-only access should not be able to edit nodes.
     try {
       $query = db_select('node', 'mytab')
@@ -142,7 +142,7 @@ function testNodeQueryAlterLowLevelEditAccess() {
    * add a record to {node_access} paired with a corresponding privilege in
    * hook_node_grants().
    */
-  function testNodeQueryAlterOverride() {
+  public function testNodeQueryAlterOverride() {
     $record = array(
       'nid' => 0,
       'gid' => 0,
diff --git a/core/modules/node/src/Tests/NodeRSSContentTest.php b/core/modules/node/src/Tests/NodeRSSContentTest.php
index d1ce240..c5ad1f6 100644
--- a/core/modules/node/src/Tests/NodeRSSContentTest.php
+++ b/core/modules/node/src/Tests/NodeRSSContentTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
   /**
    * Ensures that a new node includes the custom data when added to an RSS feed.
    */
-  function testNodeRSSContent() {
+  public function testNodeRSSContent() {
     // Create a node.
     $node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
 
diff --git a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
index e000fb8..66a7289 100644
--- a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php
@@ -61,7 +61,7 @@ protected function setUp() {
   /**
    * Tests general revision access permissions.
    */
-  function testNodeRevisionAccessAnyType() {
+  public function testNodeRevisionAccessAnyType() {
     // Create three users, one with each revision permission.
     foreach ($this->map as $op => $permission) {
       // Create the user.
@@ -119,7 +119,7 @@ function testNodeRevisionAccessAnyType() {
   /**
    * Tests revision access permissions for a specific content type.
    */
-  function testNodeRevisionAccessPerType() {
+  public function testNodeRevisionAccessPerType() {
     // Create three users, one with each revision permission.
     foreach ($this->typeMap as $op => $permission) {
       // Create the user.
diff --git a/core/modules/node/src/Tests/NodeRevisionsAllTest.php b/core/modules/node/src/Tests/NodeRevisionsAllTest.php
index 7963aa0..cf51c5b 100644
--- a/core/modules/node/src/Tests/NodeRevisionsAllTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsAllTest.php
@@ -80,7 +80,7 @@ protected function createNodeRevision(NodeInterface $node) {
   /**
    * Checks node revision operations.
    */
-  function testRevisions() {
+  public function testRevisions() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $nodes = $this->nodes;
     $logs = $this->revisionLogs;
diff --git a/core/modules/node/src/Tests/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index bfdd213..25f78ef 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -128,7 +128,7 @@ protected function setUp() {
   /**
    * Checks node revision related operations.
    */
-  function testRevisions() {
+  public function testRevisions() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $nodes = $this->nodes;
     $logs = $this->revisionLogs;
@@ -297,7 +297,7 @@ function testRevisions() {
   /**
    * Checks that revisions are correctly saved without log messages.
    */
-  function testNodeRevisionWithoutLogMessage() {
+  public function testNodeRevisionWithoutLogMessage() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Create a node with an initial log message.
     $revision_log = $this->randomMachineName(10);
diff --git a/core/modules/node/src/Tests/NodeRevisionsUiBypassAccessTest.php b/core/modules/node/src/Tests/NodeRevisionsUiBypassAccessTest.php
index a6ffb3b..74fd88a 100644
--- a/core/modules/node/src/Tests/NodeRevisionsUiBypassAccessTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsUiBypassAccessTest.php
@@ -46,7 +46,7 @@ protected function setUp() {
   /**
    * Checks that the Revision tab is displayed correctly.
    */
-  function testDisplayRevisionTab() {
+  public function testDisplayRevisionTab() {
     $this->drupalPlaceBlock('local_tasks_block');
 
     $this->drupalLogin($this->editor);
diff --git a/core/modules/node/src/Tests/NodeRevisionsUiTest.php b/core/modules/node/src/Tests/NodeRevisionsUiTest.php
index cf609b8..1043463 100644
--- a/core/modules/node/src/Tests/NodeRevisionsUiTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsUiTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Checks that unchecking 'Create new revision' works when editing a node.
    */
-  function testNodeFormSaveWithoutRevision() {
+  public function testNodeFormSaveWithoutRevision() {
     $this->drupalLogin($this->editor);
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
 
diff --git a/core/modules/node/src/Tests/NodeSaveTest.php b/core/modules/node/src/Tests/NodeSaveTest.php
index f01724b..2160f1d 100644
--- a/core/modules/node/src/Tests/NodeSaveTest.php
+++ b/core/modules/node/src/Tests/NodeSaveTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
    *  - save the content
    *  - check if node exists
    */
-  function testImport() {
+  public function testImport() {
     // Node ID must be a number that is not in the database.
     $nids = \Drupal::entityManager()->getStorage('node')->getQuery()
       ->sort('nid', 'DESC')
@@ -76,7 +76,7 @@ function testImport() {
   /**
    * Verifies accuracy of the "created" and "changed" timestamp functionality.
    */
-  function testTimestamps() {
+  public function testTimestamps() {
     // Use the default timestamps.
     $edit = array(
       'uid' => $this->webUser->id(),
@@ -137,7 +137,7 @@ function testTimestamps() {
    * This test determines changes in hook_ENTITY_TYPE_presave() and verifies
    * that the static node load cache is cleared upon save.
    */
-  function testDeterminingChanges() {
+  public function testDeterminingChanges() {
     // Initial creation.
     $node = Node::create([
       'uid' => $this->webUser->id(),
@@ -172,7 +172,7 @@ function testDeterminingChanges() {
    *
    * @see node_test_node_insert()
    */
-  function testNodeSaveOnInsert() {
+  public function testNodeSaveOnInsert() {
     // node_test_node_insert() triggers a save on insert if the title equals
     // 'new'.
     $node = $this->drupalCreateNode(array('title' => 'new'));
diff --git a/core/modules/node/src/Tests/NodeTemplateSuggestionsTest.php b/core/modules/node/src/Tests/NodeTemplateSuggestionsTest.php
index ec768e6..789912b 100644
--- a/core/modules/node/src/Tests/NodeTemplateSuggestionsTest.php
+++ b/core/modules/node/src/Tests/NodeTemplateSuggestionsTest.php
@@ -12,7 +12,7 @@ class NodeTemplateSuggestionsTest extends NodeTestBase {
   /**
    * Tests if template_preprocess_node() generates the correct suggestions.
    */
-  function testNodeThemeHookSuggestions() {
+  public function testNodeThemeHookSuggestions() {
     // Create node to be rendered.
     $node = $this->drupalCreateNode();
     $view_mode = 'full';
diff --git a/core/modules/node/src/Tests/NodeTestBase.php b/core/modules/node/src/Tests/NodeTestBase.php
index d4799d4..72af584 100644
--- a/core/modules/node/src/Tests/NodeTestBase.php
+++ b/core/modules/node/src/Tests/NodeTestBase.php
@@ -56,7 +56,7 @@ protected function setUp() {
    * @param \Drupal\Core\Session\AccountInterface $account
    *   The user account for which to check access.
    */
-  function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
+  public function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $account) {
     foreach ($ops as $op => $result) {
       $this->assertEqual($result, $this->accessHandler->access($node, $op, $account), $this->nodeAccessAssertMessage($op, $result, $node->language()->getId()));
     }
@@ -75,7 +75,7 @@ function assertNodeAccess(array $ops, NodeInterface $node, AccountInterface $acc
    *   (optional) The language code indicating which translation of the node
    *   to check. If NULL, the untranslated (fallback) access is checked.
    */
-  function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
+  public function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $langcode = NULL) {
     $this->assertEqual($result, $this->accessHandler->createAccess($bundle, $account, array(
       'langcode' => $langcode,
     )), $this->nodeAccessAssertMessage('create', $result, $langcode));
@@ -96,7 +96,7 @@ function assertNodeCreateAccess($bundle, $result, AccountInterface $account, $la
    *   An assert message string which contains information in plain English
    *   about the node access permission test that was performed.
    */
-  function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
+  public function nodeAccessAssertMessage($operation, $result, $langcode = NULL) {
     return format_string(
       'Node access returns @result with operation %op, language code %langcode.',
       array(
diff --git a/core/modules/node/src/Tests/NodeTitleTest.php b/core/modules/node/src/Tests/NodeTitleTest.php
index 59ee021..667e14e 100644
--- a/core/modules/node/src/Tests/NodeTitleTest.php
+++ b/core/modules/node/src/Tests/NodeTitleTest.php
@@ -43,7 +43,7 @@ protected function setUp() {
   /**
    * Creates one node and tests if the node title has the correct value.
    */
-  function testNodeTitle() {
+  public function testNodeTitle() {
     // Create "Basic page" content with title.
     // Add the node to the frontpage so we can test if teaser links are
     // clickable.
diff --git a/core/modules/node/src/Tests/NodeTitleXSSTest.php b/core/modules/node/src/Tests/NodeTitleXSSTest.php
index c410275..745fa61 100644
--- a/core/modules/node/src/Tests/NodeTitleXSSTest.php
+++ b/core/modules/node/src/Tests/NodeTitleXSSTest.php
@@ -14,7 +14,7 @@ class NodeTitleXSSTest extends NodeTestBase {
   /**
    * Tests XSS functionality with a node entity.
    */
-  function testNodeTitleXSS() {
+  public function testNodeTitleXSS() {
     // Prepare a user to do the stuff.
     $web_user = $this->drupalCreateUser(array('create page content', 'edit any page content'));
     $this->drupalLogin($web_user);
diff --git a/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php b/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php
index 73bfdb3..45c9de6 100644
--- a/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php
+++ b/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
    * The default initial language must be the site's default, and the language
    * locked option must be on.
    */
-  function testNodeTypeInitialLanguageDefaults() {
+  public function testNodeTypeInitialLanguageDefaults() {
     $this->drupalGet('admin/structure/types/manage/article');
     $this->assertOptionSelected('edit-language-configuration-langcode', LanguageInterface::LANGCODE_SITE_DEFAULT, 'The default initial language is the site default.');
     $this->assertNoFieldChecked('edit-language-configuration-language-alterable', 'Language selector is hidden by default.');
@@ -89,7 +89,7 @@ function testNodeTypeInitialLanguageDefaults() {
   /**
    * Tests language field visibility features.
    */
-  function testLanguageFieldVisibility() {
+  public function testLanguageFieldVisibility() {
     // Creates a node to test Language field visibility feature.
     $edit = array(
       'title[0][value]' => $this->randomMachineName(8),
diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php
index 0d2d8de..60d76e5 100644
--- a/core/modules/node/src/Tests/NodeTypeTest.php
+++ b/core/modules/node/src/Tests/NodeTypeTest.php
@@ -25,7 +25,7 @@ class NodeTypeTest extends NodeTestBase {
    *
    * Load available node types and validate the returned data.
    */
-  function testNodeTypeGetFunctions() {
+  public function testNodeTypeGetFunctions() {
     $node_types = NodeType::loadMultiple();
     $node_names = node_type_get_names();
 
@@ -42,7 +42,7 @@ function testNodeTypeGetFunctions() {
   /**
    * Tests creating a content type programmatically and via a form.
    */
-  function testNodeTypeCreation() {
+  public function testNodeTypeCreation() {
     // Create a content type programmatically.
     $type = $this->drupalCreateContentType();
 
@@ -83,7 +83,7 @@ function testNodeTypeCreation() {
   /**
    * Tests editing a node type using the UI.
    */
-  function testNodeTypeEditing() {
+  public function testNodeTypeEditing() {
     $web_user = $this->drupalCreateUser(array('bypass node access', 'administer content types', 'administer node fields'));
     $this->drupalLogin($web_user);
 
@@ -142,7 +142,7 @@ function testNodeTypeEditing() {
   /**
    * Tests deleting a content type that still has content.
    */
-  function testNodeTypeDeletion() {
+  public function testNodeTypeDeletion() {
     // Create a content type programmatically.
     $type = $this->drupalCreateContentType();
 
diff --git a/core/modules/node/src/Tests/PagePreviewTest.php b/core/modules/node/src/Tests/PagePreviewTest.php
index 2bfd2e7..3f0c516 100644
--- a/core/modules/node/src/Tests/PagePreviewTest.php
+++ b/core/modules/node/src/Tests/PagePreviewTest.php
@@ -129,7 +129,7 @@ protected function setUp() {
   /**
    * Checks the node preview functionality.
    */
-  function testPagePreview() {
+  public function testPagePreview() {
     $title_key = 'title[0][value]';
     $body_key = 'body[0][value]';
     $term_key = $this->fieldName . '[target_id]';
@@ -265,7 +265,7 @@ function testPagePreview() {
   /**
    * Checks the node preview functionality, when using revisions.
    */
-  function testPagePreviewWithRevisions() {
+  public function testPagePreviewWithRevisions() {
     $title_key = 'title[0][value]';
     $body_key = 'body[0][value]';
     $term_key = $this->fieldName . '[target_id]';
diff --git a/core/modules/node/src/Tests/PageViewTest.php b/core/modules/node/src/Tests/PageViewTest.php
index 086b3e1..f352cec 100644
--- a/core/modules/node/src/Tests/PageViewTest.php
+++ b/core/modules/node/src/Tests/PageViewTest.php
@@ -13,7 +13,7 @@ class PageViewTest extends NodeTestBase {
   /**
    * Tests an anonymous and unpermissioned user attempting to edit the node.
    */
-  function testPageView() {
+  public function testPageView() {
     // Create a node to view.
     $node = $this->drupalCreateNode();
     $this->assertTrue(Node::load($node->id()), 'Node created.');
diff --git a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
index 6b6d5e2..0306b6e 100644
--- a/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
+++ b/core/modules/node/src/Tests/Views/NodeFieldFilterTest.php
@@ -30,7 +30,7 @@ class NodeFieldFilterTest extends NodeTestBase {
    */
   public $nodeTitles = [];
 
-  function setUp() {
+  protected function setUp() {
     parent::setUp();
 
     // Create Page content type.
diff --git a/core/modules/node/tests/src/Kernel/NodeConditionTest.php b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
index 7636d52..39187be 100644
--- a/core/modules/node/tests/src/Kernel/NodeConditionTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeConditionTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests conditions.
    */
-  function testConditions() {
+  public function testConditions() {
     $manager = $this->container->get('plugin.manager.condition', $this->container->get('container.namespaces'));
     $this->createUser();
 
diff --git a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
index f88e45e..38ef663 100644
--- a/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php
@@ -44,7 +44,7 @@ class NodeFieldAccessTest extends EntityKernelTestBase {
   /**
    * Test permissions on nodes status field.
    */
-  function testAccessToAdministrativeFields() {
+  public function testAccessToAdministrativeFields() {
 
     // Create the page node type with revisions disabled.
     $page = NodeType::create([
diff --git a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
index c496c83..10b59fa 100644
--- a/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Creates a node, then tests the tokens generated from it.
    */
-  function testNodeTokenReplacement() {
+  public function testNodeTokenReplacement() {
     $url_options = array(
       'absolute' => TRUE,
       'language' => $this->interfaceLanguage,
diff --git a/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php b/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
index 0ad479b..a7d7f3f 100644
--- a/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
+++ b/core/modules/options/src/Tests/OptionsDynamicValuesValidationTest.php
@@ -11,7 +11,7 @@ class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTestBase {
   /**
    * Test that allowed values function gets the entity.
    */
-  function testDynamicAllowedValues() {
+  public function testDynamicAllowedValues() {
     // Verify that validation passes against every value we had.
     foreach ($this->test as $key => $value) {
       $this->entity->test_options->value = $value;
diff --git a/core/modules/options/src/Tests/OptionsFieldUITest.php b/core/modules/options/src/Tests/OptionsFieldUITest.php
index d2c11f0..7ab0ecd 100644
--- a/core/modules/options/src/Tests/OptionsFieldUITest.php
+++ b/core/modules/options/src/Tests/OptionsFieldUITest.php
@@ -64,7 +64,7 @@ protected function setUp() {
   /**
    * Options (integer) : test 'allowed values' input.
    */
-  function testOptionsAllowedValuesInteger() {
+  public function testOptionsAllowedValuesInteger() {
     $this->fieldName = 'field_options_integer';
     $this->createOptionsField('list_integer');
 
@@ -120,7 +120,7 @@ function testOptionsAllowedValuesInteger() {
   /**
    * Options (float) : test 'allowed values' input.
    */
-  function testOptionsAllowedValuesFloat() {
+  public function testOptionsAllowedValuesFloat() {
     $this->fieldName = 'field_options_float';
     $this->createOptionsField('list_float');
 
@@ -180,7 +180,7 @@ function testOptionsAllowedValuesFloat() {
   /**
    * Options (text) : test 'allowed values' input.
    */
-  function testOptionsAllowedValuesText() {
+  public function testOptionsAllowedValuesText() {
     $this->fieldName = 'field_options_text';
     $this->createOptionsField('list_string');
 
@@ -245,7 +245,7 @@ function testOptionsAllowedValuesText() {
   /**
    * Options (text) : test 'trimmed values' input.
    */
-  function testOptionsTrimmedValuesText() {
+  public function testOptionsTrimmedValuesText() {
     $this->fieldName = 'field_options_trimmed_text';
     $this->createOptionsField('list_string');
 
@@ -291,7 +291,7 @@ protected function createOptionsField($type) {
    * @param $message
    *   Message to display.
    */
-  function assertAllowedValuesInput($input_string, $result, $message) {
+  public function assertAllowedValuesInput($input_string, $result, $message) {
     $edit = array('settings[allowed_values]' => $input_string);
     $this->drupalPostForm($this->adminPath, $edit, t('Save field settings'));
     $this->assertNoRaw('&amp;lt;', 'The page does not have double escaped HTML tags.');
@@ -308,7 +308,7 @@ function assertAllowedValuesInput($input_string, $result, $message) {
   /**
    * Tests normal and key formatter display on node display.
    */
-  function testNodeDisplay() {
+  public function testNodeDisplay() {
     $this->fieldName = strtolower($this->randomMachineName());
     $this->createOptionsField('list_integer');
     $node = $this->drupalCreateNode(array('type' => $this->type));
diff --git a/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php b/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
index df3365c..16c2cf6 100644
--- a/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
+++ b/core/modules/options/src/Tests/OptionsSelectDynamicValuesTest.php
@@ -11,7 +11,7 @@ class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
   /**
    * Tests the 'options_select' widget (single select).
    */
-  function testSelectListDynamic() {
+  public function testSelectListDynamic() {
     // Create an entity.
     $this->entity->save();
 
diff --git a/core/modules/options/src/Tests/OptionsWidgetsTest.php b/core/modules/options/src/Tests/OptionsWidgetsTest.php
index 23f0f0d..d0bfa8e 100644
--- a/core/modules/options/src/Tests/OptionsWidgetsTest.php
+++ b/core/modules/options/src/Tests/OptionsWidgetsTest.php
@@ -84,7 +84,7 @@ protected function setUp() {
   /**
    * Tests the 'options_buttons' widget (single select).
    */
-  function testRadioButtons() {
+  public function testRadioButtons() {
     // Create an instance of the 'single value' field.
     $field = FieldConfig::create([
       'field_storage' => $this->card1,
@@ -141,7 +141,7 @@ function testRadioButtons() {
   /**
    * Tests the 'options_buttons' widget (multiple select).
    */
-  function testCheckBoxes() {
+  public function testCheckBoxes() {
     // Create an instance of the 'multiple values' field.
     $field = FieldConfig::create([
       'field_storage' => $this->card2,
@@ -230,7 +230,7 @@ function testCheckBoxes() {
   /**
    * Tests the 'options_select' widget (single select).
    */
-  function testSelectListSingle() {
+  public function testSelectListSingle() {
     // Create an instance of the 'single value' field.
     $field = FieldConfig::create([
       'field_storage' => $this->card1,
@@ -330,7 +330,7 @@ function testSelectListSingle() {
   /**
    * Tests the 'options_select' widget (multiple select).
    */
-  function testSelectListMultiple() {
+  public function testSelectListMultiple() {
     // Create an instance of the 'multiple values' field.
     $field = FieldConfig::create([
       'field_storage' => $this->card2,
@@ -451,7 +451,7 @@ function testSelectListMultiple() {
   /**
    * Tests the 'options_select' and 'options_button' widget for empty value.
    */
-  function testEmptyValue() {
+  public function testEmptyValue() {
     // Create an instance of the 'single value' field.
     $field = FieldConfig::create([
       'field_storage' => $this->card1,
diff --git a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
index 89ac127..5df71b9 100644
--- a/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
+++ b/core/modules/options/tests/src/Kernel/OptionsFieldTest.php
@@ -24,7 +24,7 @@ class OptionsFieldTest extends OptionsFieldUnitTestBase {
   /**
    * Test that allowed values can be updated.
    */
-  function testUpdateAllowedValues() {
+  public function testUpdateAllowedValues() {
     // All three options appear.
     $entity = EntityTest::create();
     $form = \Drupal::service('entity.form_builder')->getForm($entity);
diff --git a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
index c8db96e..eefc383 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
   /**
    * Test that cache tags are properly bubbled up to the page level.
    */
-  function testPageCacheTags() {
+  public function testPageCacheTags() {
     // Create two nodes.
     $author_1 = $this->drupalCreateUser();
     $node_1 = $this->drupalCreateNode(array(
diff --git a/core/modules/page_cache/src/Tests/PageCacheTest.php b/core/modules/page_cache/src/Tests/PageCacheTest.php
index 1ec9282..b37a99f 100644
--- a/core/modules/page_cache/src/Tests/PageCacheTest.php
+++ b/core/modules/page_cache/src/Tests/PageCacheTest.php
@@ -44,7 +44,7 @@ protected function setUp() {
    * Since tag based invalidation works, we know that our tag properly
    * persisted.
    */
-  function testPageCacheTags() {
+  public function testPageCacheTags() {
     $config = $this->config('system.performance');
     $config->set('cache.page.max_age', 300);
     $config->save();
@@ -77,7 +77,7 @@ function testPageCacheTags() {
   /**
    * Test that the page cache doesn't depend on cacheability headers.
    */
-  function testPageCacheTagsIndependentFromCacheabilityHeaders() {
+  public function testPageCacheTagsIndependentFromCacheabilityHeaders() {
     $this->setHttpResponseDebugCacheabilityHeaders(FALSE);
 
     $path = 'system-test/cache_tags_page';
@@ -109,7 +109,7 @@ function testPageCacheTagsIndependentFromCacheabilityHeaders() {
    * Tests support for different cache items with different request formats
    * specified via a query parameter.
    */
-  function testQueryParameterFormatRequests() {
+  public function testQueryParameterFormatRequests() {
     $config = $this->config('system.performance');
     $config->set('cache.page.max_age', 300);
     $config->save();
@@ -173,7 +173,7 @@ function testQueryParameterFormatRequests() {
   /**
    * Tests support of requests with If-Modified-Since and If-None-Match headers.
    */
-  function testConditionalRequests() {
+  public function testConditionalRequests() {
     $config = $this->config('system.performance');
     $config->set('cache.page.max_age', 300);
     $config->save();
@@ -217,7 +217,7 @@ function testConditionalRequests() {
   /**
    * Tests cache headers.
    */
-  function testPageCache() {
+  public function testPageCache() {
     $config = $this->config('system.performance');
     $config->set('cache.page.max_age', 300);
     $config->set('response.gzip', 1);
@@ -330,7 +330,7 @@ public function testPageCacheAnonymousRolePermissions() {
   /**
    * Tests the 4xx-response cache tag is added and invalidated.
    */
-  function testPageCacheAnonymous403404() {
+  public function testPageCacheAnonymous403404() {
     $admin_url = Url::fromRoute('system.admin');
     $invalid_url = 'foo/does_not_exist';
     $tests = [
diff --git a/core/modules/path/src/Tests/PathAliasTest.php b/core/modules/path/src/Tests/PathAliasTest.php
index 28c582d..df84c92 100644
--- a/core/modules/path/src/Tests/PathAliasTest.php
+++ b/core/modules/path/src/Tests/PathAliasTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
   /**
    * Tests the path cache.
    */
-  function testPathCache() {
+  public function testPathCache() {
     // Create test node.
     $node1 = $this->drupalCreateNode();
 
@@ -65,7 +65,7 @@ function testPathCache() {
   /**
    * Tests alias functionality through the admin interfaces.
    */
-  function testAdminAlias() {
+  public function testAdminAlias() {
     // Create test node.
     $node1 = $this->drupalCreateNode();
 
@@ -224,7 +224,7 @@ function testAdminAlias() {
   /**
    * Tests alias functionality through the node interfaces.
    */
-  function testNodeAlias() {
+  public function testNodeAlias() {
     // Create test node.
     $node1 = $this->drupalCreateNode();
 
@@ -337,14 +337,14 @@ function testNodeAlias() {
    * @return int
    *   Integer representing the path ID.
    */
-  function getPID($alias) {
+  public function getPID($alias) {
     return db_query("SELECT pid FROM {url_alias} WHERE alias = :alias", array(':alias' => $alias))->fetchField();
   }
 
   /**
    * Tests that duplicate aliases fail validation.
    */
-  function testDuplicateNodeAlias() {
+  public function testDuplicateNodeAlias() {
     // Create one node with a random alias.
     $node_one = $this->drupalCreateNode();
     $edit = array();
diff --git a/core/modules/path/src/Tests/PathLanguageTest.php b/core/modules/path/src/Tests/PathLanguageTest.php
index 4cb2c99..6df93a8 100644
--- a/core/modules/path/src/Tests/PathLanguageTest.php
+++ b/core/modules/path/src/Tests/PathLanguageTest.php
@@ -71,7 +71,7 @@ protected function setUp() {
   /**
    * Test alias functionality through the admin interfaces.
    */
-  function testAliasTranslation() {
+  public function testAliasTranslation() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $english_node = $this->drupalCreateNode(array('type' => 'page', 'langcode' => 'en'));
     $english_alias = $this->randomMachineName();
diff --git a/core/modules/path/src/Tests/PathLanguageUiTest.php b/core/modules/path/src/Tests/PathLanguageUiTest.php
index 540cc85..5a82212 100644
--- a/core/modules/path/src/Tests/PathLanguageUiTest.php
+++ b/core/modules/path/src/Tests/PathLanguageUiTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Tests that a language-neutral URL alias works.
    */
-  function testLanguageNeutralUrl() {
+  public function testLanguageNeutralUrl() {
     $name = $this->randomMachineName(8);
     $edit = array();
     $edit['source'] = '/admin/config/search/path';
@@ -51,7 +51,7 @@ function testLanguageNeutralUrl() {
   /**
    * Tests that a default language URL alias works.
    */
-  function testDefaultLanguageUrl() {
+  public function testDefaultLanguageUrl() {
     $name = $this->randomMachineName(8);
     $edit = array();
     $edit['source'] = '/admin/config/search/path';
@@ -66,7 +66,7 @@ function testDefaultLanguageUrl() {
   /**
    * Tests that a non-default language URL alias works.
    */
-  function testNonDefaultUrl() {
+  public function testNonDefaultUrl() {
     $name = $this->randomMachineName(8);
     $edit = array();
     $edit['source'] = '/admin/config/search/path';
diff --git a/core/modules/path/src/Tests/PathTaxonomyTermTest.php b/core/modules/path/src/Tests/PathTaxonomyTermTest.php
index f62fb6c..f16a353 100644
--- a/core/modules/path/src/Tests/PathTaxonomyTermTest.php
+++ b/core/modules/path/src/Tests/PathTaxonomyTermTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests alias functionality through the admin interfaces.
    */
-  function testTermAlias() {
+  public function testTermAlias() {
     // Create a term in the default 'Tags' vocabulary with URL alias.
     $vocabulary = Vocabulary::load('tags');
     $description = $this->randomMachineName();
diff --git a/core/modules/quickedit/src/Plugin/InPlaceEditorBase.php b/core/modules/quickedit/src/Plugin/InPlaceEditorBase.php
index d09c38e..1bf9129 100644
--- a/core/modules/quickedit/src/Plugin/InPlaceEditorBase.php
+++ b/core/modules/quickedit/src/Plugin/InPlaceEditorBase.php
@@ -18,7 +18,7 @@
   /**
    * {@inheritdoc}
    */
-  function getMetadata(FieldItemListInterface $items) {
+  public function getMetadata(FieldItemListInterface $items) {
     return array();
   }
 
diff --git a/core/modules/rdf/src/SchemaOrgDataConverter.php b/core/modules/rdf/src/SchemaOrgDataConverter.php
index dc04048..d20a426 100644
--- a/core/modules/rdf/src/SchemaOrgDataConverter.php
+++ b/core/modules/rdf/src/SchemaOrgDataConverter.php
@@ -22,7 +22,7 @@ class SchemaOrgDataConverter {
    *
    * @see http://schema.org/UserInteraction
    */
-  static function interactionCount($count, $arguments) {
+  public static function interactionCount($count, $arguments) {
     $interaction_type = $arguments['interaction_type'];
     return "$interaction_type:$count";
   }
diff --git a/core/modules/rdf/src/Tests/CommentAttributesTest.php b/core/modules/rdf/src/Tests/CommentAttributesTest.php
index 5febcb9..c49c78e 100644
--- a/core/modules/rdf/src/Tests/CommentAttributesTest.php
+++ b/core/modules/rdf/src/Tests/CommentAttributesTest.php
@@ -251,7 +251,7 @@ public function testCommentReplyOfRdfaMarkup() {
    * @param $account
    *   An array containing information about an anonymous user.
    */
-  function _testBasicCommentRdfaMarkup($graph, CommentInterface $comment, $account = array()) {
+  public function _testBasicCommentRdfaMarkup($graph, CommentInterface $comment, $account = array()) {
     $comment_uri = $comment->url('canonical', array('absolute' => TRUE));
 
     // Comment type.
@@ -353,7 +353,7 @@ function _testBasicCommentRdfaMarkup($graph, CommentInterface $comment, $account
    * @return \Drupal\comment\Entity\Comment
    *   The saved comment.
    */
-  function saveComment($nid, $uid, $contact = NULL, $pid = 0) {
+  public function saveComment($nid, $uid, $contact = NULL, $pid = 0) {
     $values = array(
       'entity_id' => $nid,
       'entity_type' => 'node',
diff --git a/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php b/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
index 48653a5..9ae6328 100644
--- a/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
+++ b/core/modules/rdf/src/Tests/EntityReferenceFieldAttributesTest.php
@@ -77,7 +77,7 @@ protected function setUp() {
    * Ensure that file fields have the correct resource as the object in RDFa
    * when displayed as a teaser.
    */
-  function testNodeTeaser() {
+  public function testNodeTeaser() {
     // Set the teaser display to show this field.
     entity_get_display('node', 'article', 'teaser')
       ->setComponent($this->fieldName, array('type' => 'entity_reference_label'))
diff --git a/core/modules/rdf/src/Tests/Field/TestDataConverter.php b/core/modules/rdf/src/Tests/Field/TestDataConverter.php
index e314f67..fd30b27 100644
--- a/core/modules/rdf/src/Tests/Field/TestDataConverter.php
+++ b/core/modules/rdf/src/Tests/Field/TestDataConverter.php
@@ -16,7 +16,7 @@ class TestDataConverter {
    * @return string
    *   Returns the data.
    */
-  static function convertFoo($data) {
+  public static function convertFoo($data) {
     return 'foo' . $data['value'];
   }
 
diff --git a/core/modules/rdf/src/Tests/FileFieldAttributesTest.php b/core/modules/rdf/src/Tests/FileFieldAttributesTest.php
index 34e76ae..bd6fabd 100644
--- a/core/modules/rdf/src/Tests/FileFieldAttributesTest.php
+++ b/core/modules/rdf/src/Tests/FileFieldAttributesTest.php
@@ -73,7 +73,7 @@ protected function setUp() {
    * Ensure that file fields have the correct resource as the object in RDFa
    * when displayed as a teaser.
    */
-  function testNodeTeaser() {
+  public function testNodeTeaser() {
     // Render the teaser.
     $node_render_array = entity_view_multiple(array($this->node), 'teaser');
     $html = \Drupal::service('renderer')->renderRoot($node_render_array);
diff --git a/core/modules/rdf/src/Tests/GetNamespacesTest.php b/core/modules/rdf/src/Tests/GetNamespacesTest.php
index 8aeaf79..6e02197 100644
--- a/core/modules/rdf/src/Tests/GetNamespacesTest.php
+++ b/core/modules/rdf/src/Tests/GetNamespacesTest.php
@@ -22,7 +22,7 @@ class GetNamespacesTest extends WebTestBase {
   /**
    * Tests RDF namespaces.
    */
-  function testGetRdfNamespaces() {
+  public function testGetRdfNamespaces() {
     // Fetches the front page and extracts RDFa 1.1 prefixes.
     $this->drupalGet('');
 
diff --git a/core/modules/rdf/src/Tests/GetRdfNamespacesTest.php b/core/modules/rdf/src/Tests/GetRdfNamespacesTest.php
index 7fde6f0..aee524f 100644
--- a/core/modules/rdf/src/Tests/GetRdfNamespacesTest.php
+++ b/core/modules/rdf/src/Tests/GetRdfNamespacesTest.php
@@ -21,7 +21,7 @@ class GetRdfNamespacesTest extends WebTestBase {
   /**
    * Tests getting RDF namespaces.
    */
-  function testGetRdfNamespaces() {
+  public function testGetRdfNamespaces() {
     // Get all RDF namespaces.
     $ns = rdf_get_namespaces();
 
diff --git a/core/modules/rdf/src/Tests/ImageFieldAttributesTest.php b/core/modules/rdf/src/Tests/ImageFieldAttributesTest.php
index cce663b..413a17f 100644
--- a/core/modules/rdf/src/Tests/ImageFieldAttributesTest.php
+++ b/core/modules/rdf/src/Tests/ImageFieldAttributesTest.php
@@ -71,7 +71,7 @@ protected function setUp() {
   /**
    * Tests that image fields in teasers have correct resources.
    */
-  function testNodeTeaser() {
+  public function testNodeTeaser() {
     // Set the display options for the teaser.
     $display_options = array(
       'type' => 'image',
diff --git a/core/modules/rdf/src/Tests/NodeAttributesTest.php b/core/modules/rdf/src/Tests/NodeAttributesTest.php
index 5c6b267..5f70a5e 100644
--- a/core/modules/rdf/src/Tests/NodeAttributesTest.php
+++ b/core/modules/rdf/src/Tests/NodeAttributesTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Creates a node of type article and tests its RDFa markup.
    */
-  function testNodeAttributes() {
+  public function testNodeAttributes() {
     // Create node with single quotation mark title to ensure it does not get
     // escaped more than once.
     $node = $this->drupalCreateNode(array(
diff --git a/core/modules/rdf/src/Tests/TaxonomyAttributesTest.php b/core/modules/rdf/src/Tests/TaxonomyAttributesTest.php
index 6be2c5b..1536797 100644
--- a/core/modules/rdf/src/Tests/TaxonomyAttributesTest.php
+++ b/core/modules/rdf/src/Tests/TaxonomyAttributesTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Creates a random term and ensures the RDF output is correct.
    */
-  function testTaxonomyTermRdfaAttributes() {
+  public function testTaxonomyTermRdfaAttributes() {
     $term = $this->createTerm($this->vocabulary);
     $term_uri = $term->url('canonical', ['absolute' => TRUE]);
 
diff --git a/core/modules/rdf/src/Tests/UserAttributesTest.php b/core/modules/rdf/src/Tests/UserAttributesTest.php
index 232b5b2..2e49f44 100644
--- a/core/modules/rdf/src/Tests/UserAttributesTest.php
+++ b/core/modules/rdf/src/Tests/UserAttributesTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
    * Creates a random user and ensures the default mapping for the user is
    * being used.
    */
-  function testUserAttributesInMarkup() {
+  public function testUserAttributesInMarkup() {
     // Creates users that should and should not be truncated
     // by template_preprocess_username (20 characters)
     // one of these users tests right on the cusp (20).
diff --git a/core/modules/rdf/tests/src/Kernel/CrudTest.php b/core/modules/rdf/tests/src/Kernel/CrudTest.php
index 60b4208..5000de3 100644
--- a/core/modules/rdf/tests/src/Kernel/CrudTest.php
+++ b/core/modules/rdf/tests/src/Kernel/CrudTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests creation of RDF mapping.
    */
-  function testMappingCreation() {
+  public function testMappingCreation() {
     $mapping_config_name = "{$this->prefix}.{$this->entityType}.{$this->bundle}";
 
     // Save bundle mapping config.
@@ -55,7 +55,7 @@ function testMappingCreation() {
   /**
    * Test the handling of bundle mappings.
    */
-  function testBundleMapping() {
+  public function testBundleMapping() {
     // Test that the bundle mapping can be saved.
     $types = array('sioc:Post', 'foaf:Document');
     rdf_get_mapping($this->entityType, $this->bundle)
@@ -78,7 +78,7 @@ function testBundleMapping() {
   /**
    * Test the handling of field mappings.
    */
-  function testFieldMapping() {
+  public function testFieldMapping() {
     $field_name = 'created';
 
     // Test that the field mapping can be saved.
diff --git a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
index 42a4dc4..bf6106a 100644
--- a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
+++ b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
@@ -21,7 +21,7 @@ class RdfaAttributesTest extends KernelTestBase {
   /**
    * Test attribute creation for mappings which use 'property'.
    */
-  function testProperty() {
+  public function testProperty() {
     $properties = array('dc:title');
 
     $mapping = array('properties' => $properties);
@@ -33,7 +33,7 @@ function testProperty() {
   /**
    * Test attribute creation for mappings which use 'datatype'.
    */
-  function testDatatype() {
+  public function testDatatype() {
     $properties = array('foo:bar1');
     $datatype = 'foo:bar1type';
 
@@ -52,7 +52,7 @@ function testDatatype() {
   /**
    * Test attribute creation for mappings which override human-readable content.
    */
-  function testDatatypeCallback() {
+  public function testDatatypeCallback() {
     $properties = array('dc:created');
     $datatype = 'xsd:dateTime';
 
@@ -77,7 +77,7 @@ function testDatatypeCallback() {
   /**
    * Test attribute creation for mappings which use data converters.
    */
-  function testDatatypeCallbackWithConverter() {
+  public function testDatatypeCallbackWithConverter() {
     $properties = array('schema:interactionCount');
 
     $data = "23";
@@ -101,7 +101,7 @@ function testDatatypeCallbackWithConverter() {
   /**
    * Test attribute creation for mappings which use 'rel'.
    */
-  function testRel() {
+  public function testRel() {
     $properties = array('sioc:has_creator', 'dc:creator');
 
     $mapping = array(
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
index 8b1030f..2e2cb47 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldUiTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests formatter settings.
    */
-  function testResponsiveImageFormatterUI() {
+  public function testResponsiveImageFormatterUI() {
     $manage_fields = 'admin/structure/types/manage/' . $this->type;
     $manage_display = $manage_fields . '/display';
 
diff --git a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
index 905b449..5d0d9a0 100644
--- a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
+++ b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
@@ -341,9 +341,9 @@ public function providerTestResponseFormat() {
  */
 class StubRequestHandlerResourcePlugin extends ResourceBase {
 
-  function get() {}
-  function post() {}
-  function patch() {}
-  function delete() {}
+  public function get() {}
+  public function post() {}
+  public function patch() {}
+  public function delete() {}
 
 }
diff --git a/core/modules/search/src/Tests/SearchAdvancedSearchFormTest.php b/core/modules/search/src/Tests/SearchAdvancedSearchFormTest.php
index 9bd13bd..40bd028 100644
--- a/core/modules/search/src/Tests/SearchAdvancedSearchFormTest.php
+++ b/core/modules/search/src/Tests/SearchAdvancedSearchFormTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Tests advanced search by node type.
    */
-  function testNodeType() {
+  public function testNodeType() {
     // Verify some properties of the node that was created.
     $this->assertTrue($this->node->getType() == 'page', 'Node type is Basic page.');
     $dummy_title = 'Lorem ipsum';
@@ -67,7 +67,7 @@ function testNodeType() {
   /**
    * Tests that after submitting the advanced search form, the form is refilled.
    */
-  function testFormRefill() {
+  public function testFormRefill() {
     $edit = array(
       'keys' => 'cat',
       'or' => 'dog gerbil',
diff --git a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
index 48f8bb6..666409b 100644
--- a/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
+++ b/core/modules/search/src/Tests/SearchCommentCountToggleTest.php
@@ -79,7 +79,7 @@ protected function setUp() {
   /**
    * Verify that comment count display toggles properly on comment status of node
    */
-  function testSearchCommentCountToggle() {
+  public function testSearchCommentCountToggle() {
     // Search for the nodes by string in the node body.
     $edit = array(
       'keys' => "'SearchCommentToggleTestCase'",
diff --git a/core/modules/search/src/Tests/SearchCommentTest.php b/core/modules/search/src/Tests/SearchCommentTest.php
index f67637f..332eac7 100644
--- a/core/modules/search/src/Tests/SearchCommentTest.php
+++ b/core/modules/search/src/Tests/SearchCommentTest.php
@@ -83,7 +83,7 @@ protected function setUp() {
   /**
    * Verify that comments are rendered using proper format in search results.
    */
-  function testSearchResultsComment() {
+  public function testSearchResultsComment() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Create basic_html format that escapes all HTML.
     $basic_html_format = FilterFormat::create(array(
@@ -215,7 +215,7 @@ function testSearchResultsComment() {
   /**
    * Verify access rules for comment indexing with different permissions.
    */
-  function testSearchResultsCommentAccess() {
+  public function testSearchResultsCommentAccess() {
     $comment_body = 'Test comment body';
     $this->commentSubject = 'Test comment subject';
     $roles = $this->adminUser->getRoles(TRUE);
@@ -276,7 +276,7 @@ function testSearchResultsCommentAccess() {
   /**
    * Set permissions for role.
    */
-  function setRolePermissions($rid, $access_comments = FALSE, $search_content = TRUE) {
+  public function setRolePermissions($rid, $access_comments = FALSE, $search_content = TRUE) {
     $permissions = array(
       'access comments' => $access_comments,
       'search content' => $search_content,
@@ -287,7 +287,7 @@ function setRolePermissions($rid, $access_comments = FALSE, $search_content = TR
   /**
    * Update search index and search for comment.
    */
-  function assertCommentAccess($assume_access, $message) {
+  public function assertCommentAccess($assume_access, $message) {
     // Invoke search index update.
     search_mark_for_reindex('node_search', $this->node->id());
     $this->cronRun();
@@ -312,7 +312,7 @@ function assertCommentAccess($assume_access, $message) {
   /**
    * Verify that 'add new comment' does not appear in search results or index.
    */
-  function testAddNewComment() {
+  public function testAddNewComment() {
     // Create a node with a short body.
     $settings = array(
       'type' => 'article',
diff --git a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
index 9ca87d6..2dae628 100644
--- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
+++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php
@@ -61,7 +61,7 @@ protected function setUp() {
   /**
    * Verifies the search settings form.
    */
-  function testSearchSettingsPage() {
+  public function testSearchSettingsPage() {
 
     // Test that the settings form displays the correct count of items left to index.
     $this->drupalGet('admin/config/search/pages');
@@ -105,7 +105,7 @@ function testSearchSettingsPage() {
   /**
    * Verifies plugin-supplied settings form.
    */
-  function testSearchModuleSettingsPage() {
+  public function testSearchModuleSettingsPage() {
     $this->drupalGet('admin/config/search/pages');
     $this->clickLink(t('Edit'), 1);
 
@@ -127,7 +127,7 @@ function testSearchModuleSettingsPage() {
   /**
    * Verifies that you can disable individual search plugins.
    */
-  function testSearchModuleDisabling() {
+  public function testSearchModuleDisabling() {
     // Array of search plugins to test: 'keys' are the keywords to search for,
     // and 'text' is the text to assert is on the results page.
     $plugin_info = array(
diff --git a/core/modules/search/src/Tests/SearchEmbedFormTest.php b/core/modules/search/src/Tests/SearchEmbedFormTest.php
index 22da9b6..04ba024 100644
--- a/core/modules/search/src/Tests/SearchEmbedFormTest.php
+++ b/core/modules/search/src/Tests/SearchEmbedFormTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
   /**
    * Tests that the embedded form appears and can be submitted.
    */
-  function testEmbeddedForm() {
+  public function testEmbeddedForm() {
     // First verify we can submit the form from the module's page.
     $this->drupalPostForm('search_embedded_form',
       array('name' => 'John'),
diff --git a/core/modules/search/src/Tests/SearchExactTest.php b/core/modules/search/src/Tests/SearchExactTest.php
index d17646b..ac8c27b 100644
--- a/core/modules/search/src/Tests/SearchExactTest.php
+++ b/core/modules/search/src/Tests/SearchExactTest.php
@@ -11,7 +11,7 @@ class SearchExactTest extends SearchTestBase {
   /**
    * Tests that the correct number of pager links are found for both keywords and phrases.
    */
-  function testExactQuery() {
+  public function testExactQuery() {
     // Log in with sufficient privileges.
     $user = $this->drupalCreateUser(array('create page content', 'search content'));
     $this->drupalLogin($user);
diff --git a/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php b/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php
index 1625d8d..847cfe8 100644
--- a/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php
+++ b/core/modules/search/src/Tests/SearchKeywordsConditionsTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
   /**
    * Verify the keywords are captured and conditions respected.
    */
-  function testSearchKeywordsConditions() {
+  public function testSearchKeywordsConditions() {
     // No keys, not conditions - no results.
     $this->drupalGet('search/dummy_path');
     $this->assertNoText('Dummy search snippet to display');
diff --git a/core/modules/search/src/Tests/SearchLanguageTest.php b/core/modules/search/src/Tests/SearchLanguageTest.php
index cdd0bd4..bfd2114 100644
--- a/core/modules/search/src/Tests/SearchLanguageTest.php
+++ b/core/modules/search/src/Tests/SearchLanguageTest.php
@@ -86,7 +86,7 @@ protected function setUp() {
     search_update_totals();
   }
 
-  function testLanguages() {
+  public function testLanguages() {
     // Add predefined language.
     $edit = array('predefined_langcode' => 'fr');
     $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
diff --git a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
index e133101..30cd70e 100644
--- a/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
+++ b/core/modules/search/src/Tests/SearchMultilingualEntityTest.php
@@ -114,7 +114,7 @@ protected function setUp() {
   /**
    * Tests the indexing throttle and search results with multilingual nodes.
    */
-  function testMultilingualSearch() {
+  public function testMultilingualSearch() {
     // Index only 2 nodes per cron run. We cannot do this setting in the UI,
     // because it doesn't go this low.
     $this->config('search.settings')->set('index.cron_limit', 2)->save();
diff --git a/core/modules/search/src/Tests/SearchNodeDiacriticsTest.php b/core/modules/search/src/Tests/SearchNodeDiacriticsTest.php
index a8b45a5..95251a0 100644
--- a/core/modules/search/src/Tests/SearchNodeDiacriticsTest.php
+++ b/core/modules/search/src/Tests/SearchNodeDiacriticsTest.php
@@ -28,7 +28,7 @@ protected function setUp() {
   /**
    * Tests that search returns results with diacritics in the search phrase.
    */
-  function testPhraseSearchPunctuation() {
+  public function testPhraseSearchPunctuation() {
     $body_text = 'The Enricþment Center is cómmīŦŧęđ to the well BɆĬŇĜ of æll påŔťıçȉpǎǹţș. ';
     $body_text .= 'Also meklēt (see #731298)';
     $this->drupalCreateNode(array('body' => array(array('value' => $body_text))));
diff --git a/core/modules/search/src/Tests/SearchNodePunctuationTest.php b/core/modules/search/src/Tests/SearchNodePunctuationTest.php
index c185aea..9ee22a9 100644
--- a/core/modules/search/src/Tests/SearchNodePunctuationTest.php
+++ b/core/modules/search/src/Tests/SearchNodePunctuationTest.php
@@ -28,7 +28,7 @@ protected function setUp() {
   /**
    * Tests that search works with punctuation and HTML entities.
    */
-  function testPhraseSearchPunctuation() {
+  public function testPhraseSearchPunctuation() {
     $node = $this->drupalCreateNode(array('body' => array(array('value' => "The bunny's ears were fluffy."))));
     $node2 = $this->drupalCreateNode(array('body' => array(array('value' => 'Dignissim Aliquam &amp; Quieligo meus natu quae quia te. Damnum&copy; erat&mdash; neo pneum. Facilisi feugiat ibidem ratis.'))));
 
diff --git a/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php b/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
index e73ca86..6209b0e 100644
--- a/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
+++ b/core/modules/search/src/Tests/SearchNodeUpdateAndDeletionTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests that the search index info is properly updated when a node changes.
    */
-  function testSearchIndexUpdateOnNodeChange() {
+  public function testSearchIndexUpdateOnNodeChange() {
     // Create a node.
     $node = $this->drupalCreateNode(array(
       'title' => 'Someone who says Ni!',
@@ -68,7 +68,7 @@ function testSearchIndexUpdateOnNodeChange() {
   /**
    * Tests that the search index info is updated when a node is deleted.
    */
-  function testSearchIndexUpdateOnNodeDeletion() {
+  public function testSearchIndexUpdateOnNodeDeletion() {
     // Create a node.
     $node = $this->drupalCreateNode(array(
       'title' => 'No dragons here',
diff --git a/core/modules/search/src/Tests/SearchNumberMatchingTest.php b/core/modules/search/src/Tests/SearchNumberMatchingTest.php
index a6ad057..858a915 100644
--- a/core/modules/search/src/Tests/SearchNumberMatchingTest.php
+++ b/core/modules/search/src/Tests/SearchNumberMatchingTest.php
@@ -68,7 +68,7 @@ protected function setUp() {
   /**
    * Tests that all the numbers can be searched.
    */
-  function testNumberSearching() {
+  public function testNumberSearching() {
     for ($i = 0; $i < count($this->numbers); $i++) {
       $node = $this->nodes[$i];
 
diff --git a/core/modules/search/src/Tests/SearchNumbersTest.php b/core/modules/search/src/Tests/SearchNumbersTest.php
index 30d3906..ae27172 100644
--- a/core/modules/search/src/Tests/SearchNumbersTest.php
+++ b/core/modules/search/src/Tests/SearchNumbersTest.php
@@ -75,7 +75,7 @@ protected function setUp() {
   /**
    * Tests that all the numbers can be searched.
    */
-  function testNumberSearching() {
+  public function testNumberSearching() {
     $types = array_keys($this->numbers);
 
     foreach ($types as $type) {
diff --git a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
index 3a7bc67..69d81f4 100644
--- a/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
+++ b/core/modules/search/src/Tests/SearchPageCacheTagsTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
   /**
    * Tests the presence of the expected cache tag in various situations.
    */
-  function testSearchText() {
+  public function testSearchText() {
     $this->drupalLogin($this->searchingUser);
 
     // Initial page for searching nodes.
diff --git a/core/modules/search/src/Tests/SearchPageOverrideTest.php b/core/modules/search/src/Tests/SearchPageOverrideTest.php
index 9768904..ac97cbb 100644
--- a/core/modules/search/src/Tests/SearchPageOverrideTest.php
+++ b/core/modules/search/src/Tests/SearchPageOverrideTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
     $this->drupalLogin($this->searchUser);
   }
 
-  function testSearchPageHook() {
+  public function testSearchPageHook() {
     $keys = 'bike shed ' . $this->randomMachineName();
     $this->drupalGet("search/dummy_path", array('query' => array('keys' => $keys)));
     $this->assertText('Dummy search snippet', 'Dummy search snippet is shown');
diff --git a/core/modules/search/src/Tests/SearchPageTextTest.php b/core/modules/search/src/Tests/SearchPageTextTest.php
index db33d85..ead706c 100644
--- a/core/modules/search/src/Tests/SearchPageTextTest.php
+++ b/core/modules/search/src/Tests/SearchPageTextTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
    *
    * This is a regression test for https://www.drupal.org/node/2338081
    */
-  function testSearchLabelXSS() {
+  public function testSearchLabelXSS() {
     $this->drupalLogin($this->drupalCreateUser(array('administer search')));
 
     $keys['label'] = '<script>alert("Dont Panic");</script>';
@@ -56,7 +56,7 @@ function testSearchLabelXSS() {
   /**
    * Tests the failed search text, and various other text on the search page.
    */
-  function testSearchText() {
+  public function testSearchText() {
     $this->drupalLogin($this->searchingUser);
     $this->drupalGet('search/node');
     $this->assertText(t('Enter your keywords'));
diff --git a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php
index 38cb350..8f8d69c 100644
--- a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php
+++ b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php
@@ -38,7 +38,7 @@ protected function setUp() {
   /**
    * Tests that hook_search_preprocess() returns the correct langcode.
    */
-  function testPreprocessLangcode() {
+  public function testPreprocessLangcode() {
     // Create a node.
     $this->node = $this->drupalCreateNode(array('body' => array(array()), 'langcode' => 'en'));
 
@@ -63,7 +63,7 @@ function testPreprocessLangcode() {
   /**
    * Tests stemming for hook_search_preprocess().
    */
-  function testPreprocessStemming() {
+  public function testPreprocessStemming() {
     // Create a node.
     $this->node = $this->drupalCreateNode(array(
       'title' => 'we are testing',
diff --git a/core/modules/search/src/Tests/SearchQueryAlterTest.php b/core/modules/search/src/Tests/SearchQueryAlterTest.php
index 0cb473f..93c82d6 100644
--- a/core/modules/search/src/Tests/SearchQueryAlterTest.php
+++ b/core/modules/search/src/Tests/SearchQueryAlterTest.php
@@ -18,7 +18,7 @@ class SearchQueryAlterTest extends SearchTestBase {
   /**
    * Tests that the query alter works.
    */
-  function testQueryAlter() {
+  public function testQueryAlter() {
     // Log in with sufficient privileges.
     $this->drupalLogin($this->drupalCreateUser(array('create page content', 'search content')));
 
diff --git a/core/modules/search/src/Tests/SearchSimplifyTest.php b/core/modules/search/src/Tests/SearchSimplifyTest.php
index bdb96c9..689dc1b 100644
--- a/core/modules/search/src/Tests/SearchSimplifyTest.php
+++ b/core/modules/search/src/Tests/SearchSimplifyTest.php
@@ -12,7 +12,7 @@ class SearchSimplifyTest extends SearchTestBase {
   /**
    * Tests that all Unicode characters simplify correctly.
    */
-  function testSearchSimplifyUnicode() {
+  public function testSearchSimplifyUnicode() {
     // This test uses a file that was constructed so that the even lines are
     // boundary characters, and the odd lines are valid word characters. (It
     // was generated as a sequence of all the Unicode characters, and then the
@@ -64,7 +64,7 @@ function testSearchSimplifyUnicode() {
   /**
    * Tests that search_simplify() does the right thing with punctuation.
    */
-  function testSearchSimplifyPunctuation() {
+  public function testSearchSimplifyPunctuation() {
     $cases = array(
       array('20.03/94-28,876', '20039428876', 'Punctuation removed from numbers'),
       array('great...drupal--module', 'great drupal module', 'Multiple dot and dashes are word boundaries'),
diff --git a/core/modules/search/src/Tests/SearchTokenizerTest.php b/core/modules/search/src/Tests/SearchTokenizerTest.php
index f8b3ccb..e0cc463 100644
--- a/core/modules/search/src/Tests/SearchTokenizerTest.php
+++ b/core/modules/search/src/Tests/SearchTokenizerTest.php
@@ -18,7 +18,7 @@ class SearchTokenizerTest extends SearchTestBase {
    * character classes are tokenized properly. See PREG_CLASS_CKJ for more
    * information.
    */
-  function testTokenizer() {
+  public function testTokenizer() {
     // Set the minimum word size to 1 (to split all CJK characters) and make
     // sure CJK tokenizing is turned on.
     $this->config('search.settings')
@@ -106,7 +106,7 @@ function testTokenizer() {
    * This is just a sanity check - it verifies that strings of letters are
    * not tokenized.
    */
-  function testNoTokenizer() {
+  public function testNoTokenizer() {
     // Set the minimum word size to 1 (to split all CJK characters) and make
     // sure CJK tokenizing is turned on.
     $this->config('search.settings')
@@ -128,7 +128,7 @@ function testNoTokenizer() {
    * converts a number to the corresponding unicode character. Adapted from
    * functions supplied in comments on several functions on php.net.
    */
-  function code2utf($num) {
+  public function code2utf($num) {
     if ($num < 128) {
       return chr($num);
     }
diff --git a/core/modules/search/src/ViewsSearchQuery.php b/core/modules/search/src/ViewsSearchQuery.php
index fc67ed1..ca4b16c 100644
--- a/core/modules/search/src/ViewsSearchQuery.php
+++ b/core/modules/search/src/ViewsSearchQuery.php
@@ -69,7 +69,7 @@ public function publicParseSearchExpression() {
    *   item from a \Drupal\Core\Database\Query\Condition::conditions array,
    *   which must have a 'field' element.
    */
-  function conditionReplaceString($search, $replace, &$condition) {
+  public function conditionReplaceString($search, $replace, &$condition) {
     if ($condition['field'] instanceof Condition) {
       $conditions =& $condition['field']->conditions();
       foreach ($conditions as $key => &$subcondition) {
diff --git a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
index 85c0917..7788336 100644
--- a/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchExcerptTest.php
@@ -27,7 +27,7 @@ class SearchExcerptTest extends KernelTestBase {
    * contains either highlighted keywords or the original marked
    * up string if no keywords matched the string.
    */
-  function testSearchExcerpt() {
+  public function testSearchExcerpt() {
     // Make some text with entities and tags.
     $text = 'The <strong>quick</strong> <a href="#">brown</a> fox &amp; jumps <h2>over</h2> the lazy dog';
     $expected = 'The quick brown fox &amp; jumps over the lazy dog';
@@ -74,7 +74,7 @@ function testSearchExcerpt() {
    * search_simplify(). This test passes keywords that match simplified words
    * and compares them with strings that contain the original unsimplified word.
    */
-  function testSearchExcerptSimplified() {
+  public function testSearchExcerptSimplified() {
     $start_time = microtime(TRUE);
 
     $lorem1 = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam vitae arcu at leo cursus laoreet. Curabitur dui tortor, adipiscing malesuada tempor in, bibendum ac diam. Cras non tellus a libero pellentesque condimentum. What is a Drupalism? Suspendisse ac lacus libero. Ut non est vel nisl faucibus interdum nec sed leo. Pellentesque sem risus, vulputate eu semper eget, auctor in libero.';
diff --git a/core/modules/search/tests/src/Kernel/SearchMatchTest.php b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
index 0a17f71..6f840ff 100644
--- a/core/modules/search/tests/src/Kernel/SearchMatchTest.php
+++ b/core/modules/search/tests/src/Kernel/SearchMatchTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Test search indexing.
    */
-  function testMatching() {
+  public function testMatching() {
     $this->_setup();
     $this->_testQueries();
   }
@@ -45,7 +45,7 @@ function testMatching() {
   /**
    * Set up a small index of items to test against.
    */
-  function _setup() {
+  public function _setup() {
     $this->config('search.settings')->set('index.minimum_word_size', 3)->save();
 
     for ($i = 1; $i <= 7; ++$i) {
@@ -77,7 +77,7 @@ function _setup() {
    *   6  enim am minim veniam es cillum
    *   7  am minim veniam es cillum dolore eu
    */
-  function getText($n) {
+  public function getText($n) {
     $words = explode(' ', "Ipsum dolore sit am. Ut enim am minim veniam. Es cillum dolore eu.");
     return implode(' ', array_slice($words, $n - 1, $n));
   }
@@ -92,7 +92,7 @@ function getText($n) {
    *   11 came over from germany
    *   12 over from germany swimming
    */
-  function getText2($n) {
+  public function getText2($n) {
     $words = explode(' ', "Dear King Philip came over from Germany swimming.");
     return implode(' ', array_slice($words, $n - 1, $n));
   }
@@ -100,7 +100,7 @@ function getText2($n) {
   /**
    * Run predefine queries looking for indexed terms.
    */
-  function _testQueries() {
+  public function _testQueries() {
     // Note: OR queries that include short words in OR groups are only accepted
     // if the ORed terms are ANDed with at least one long word in the rest of
     // the query. Examples:
@@ -218,7 +218,7 @@ function _testQueries() {
    *
    * Verify if a query produces the correct results.
    */
-  function _testQueryMatching($query, $set, $results) {
+  public function _testQueryMatching($query, $set, $results) {
     // Get result IDs.
     $found = array();
     foreach ($set as $item) {
@@ -236,7 +236,7 @@ function _testQueryMatching($query, $set, $results) {
    *
    * Verify if a query produces normalized, monotonous scores.
    */
-  function _testQueryScores($query, $set, $results) {
+  public function _testQueryScores($query, $set, $results) {
     // Get result scores.
     $scores = array();
     foreach ($set as $item) {
diff --git a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
index ec94028..05ffccf 100644
--- a/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
+++ b/core/modules/serialization/tests/src/Kernel/EntityResolverTest.php
@@ -54,7 +54,7 @@ protected function setUp() {
   /**
    * Test that fields referencing UUIDs can be denormalized.
    */
-  function testUuidEntityResolver() {
+  public function testUuidEntityResolver() {
     // Create an entity to get the UUID from.
     $entity = EntityTestMulRev::create(array('type' => 'entity_test_mulrev'));
     $entity->set('name', 'foobar');
diff --git a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php
index 3a04757..ccd460c 100644
--- a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php
+++ b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests creating a shortcut set.
    */
-  function testShortcutSetAdd() {
+  public function testShortcutSetAdd() {
     $this->drupalGet('admin/config/user-interface/shortcut');
     $this->clickLink(t('Add shortcut set'));
     $edit = array(
@@ -47,7 +47,7 @@ function testShortcutSetAdd() {
   /**
    * Tests editing a shortcut set.
    */
-  function testShortcutSetEdit() {
+  public function testShortcutSetEdit() {
     $set = $this->set;
     $shortcuts = $set->getShortcuts();
 
@@ -100,7 +100,7 @@ function testShortcutSetEdit() {
   /**
    * Tests switching a user's own shortcut set.
    */
-  function testShortcutSetSwitchOwn() {
+  public function testShortcutSetSwitchOwn() {
     $new_set = $this->generateShortcutSet($this->randomMachineName());
 
     // Attempt to switch the default shortcut set to the newly created shortcut
@@ -114,7 +114,7 @@ function testShortcutSetSwitchOwn() {
   /**
    * Tests switching another user's shortcut set.
    */
-  function testShortcutSetAssign() {
+  public function testShortcutSetAssign() {
     $new_set = $this->generateShortcutSet($this->randomMachineName());
 
     \Drupal::entityManager()->getStorage('shortcut_set')->assignUser($new_set, $this->shortcutUser);
@@ -125,7 +125,7 @@ function testShortcutSetAssign() {
   /**
    * Tests switching a user's shortcut set and creating one at the same time.
    */
-  function testShortcutSetSwitchCreate() {
+  public function testShortcutSetSwitchCreate() {
     $edit = array(
       'set' => 'new',
       'id' => strtolower($this->randomMachineName()),
@@ -140,7 +140,7 @@ function testShortcutSetSwitchCreate() {
   /**
    * Tests switching a user's shortcut set without providing a new set name.
    */
-  function testShortcutSetSwitchNoSetName() {
+  public function testShortcutSetSwitchNoSetName() {
     $edit = array('set' => 'new');
     $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set'));
     $this->assertText(t('The new set label is required.'));
@@ -152,7 +152,7 @@ function testShortcutSetSwitchNoSetName() {
   /**
    * Tests renaming a shortcut set.
    */
-  function testShortcutSetRename() {
+  public function testShortcutSetRename() {
     $set = $this->set;
 
     $new_label = $this->randomMachineName();
@@ -166,7 +166,7 @@ function testShortcutSetRename() {
   /**
    * Tests unassigning a shortcut set.
    */
-  function testShortcutSetUnassign() {
+  public function testShortcutSetUnassign() {
     $new_set = $this->generateShortcutSet($this->randomMachineName());
 
     $shortcut_set_storage = \Drupal::entityManager()->getStorage('shortcut_set');
@@ -180,7 +180,7 @@ function testShortcutSetUnassign() {
   /**
    * Tests deleting a shortcut set.
    */
-  function testShortcutSetDelete() {
+  public function testShortcutSetDelete() {
     $new_set = $this->generateShortcutSet($this->randomMachineName());
 
     $this->drupalPostForm('admin/config/user-interface/shortcut/manage/' . $new_set->id() . '/delete', array(), t('Delete'));
@@ -191,7 +191,7 @@ function testShortcutSetDelete() {
   /**
    * Tests deleting the default shortcut set.
    */
-  function testShortcutSetDeleteDefault() {
+  public function testShortcutSetDeleteDefault() {
     $this->drupalGet('admin/config/user-interface/shortcut/manage/default/delete');
     $this->assertResponse(403);
   }
@@ -199,7 +199,7 @@ function testShortcutSetDeleteDefault() {
   /**
    * Tests creating a new shortcut set with a defined set name.
    */
-  function testShortcutSetCreateWithSetName() {
+  public function testShortcutSetCreateWithSetName() {
     $random_name = $this->randomMachineName();
     $new_set = $this->generateShortcutSet($random_name, $random_name);
     $sets = ShortcutSet::loadMultiple();
diff --git a/core/modules/shortcut/src/Tests/ShortcutTestBase.php b/core/modules/shortcut/src/Tests/ShortcutTestBase.php
index b32afb2..abf2af0 100644
--- a/core/modules/shortcut/src/Tests/ShortcutTestBase.php
+++ b/core/modules/shortcut/src/Tests/ShortcutTestBase.php
@@ -93,7 +93,7 @@ protected function setUp() {
   /**
    * Creates a generic shortcut set.
    */
-  function generateShortcutSet($label = '', $id = NULL) {
+  public function generateShortcutSet($label = '', $id = NULL) {
     $set = ShortcutSet::create(array(
       'id' => isset($id) ? $id : strtolower($this->randomMachineName()),
       'label' => empty($label) ? $this->randomString() : $label,
@@ -116,7 +116,7 @@ function generateShortcutSet($label = '', $id = NULL) {
    * @return array
    *   Array of the requested information from each link.
    */
-  function getShortcutInformation(ShortcutSetInterface $set, $key) {
+  public function getShortcutInformation(ShortcutSetInterface $set, $key) {
     $info = array();
     \Drupal::entityManager()->getStorage('shortcut')->resetCache();
     foreach ($set->getShortcuts() as $shortcut) {
diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php
index fbf58a5..2d85fde 100644
--- a/core/modules/simpletest/src/KernelTestBase.php
+++ b/core/modules/simpletest/src/KernelTestBase.php
@@ -89,7 +89,7 @@
   /**
    * {@inheritdoc}
    */
-  function __construct($test_id = NULL) {
+  public function __construct($test_id = NULL) {
     parent::__construct($test_id);
     $this->skipClasses[__CLASS__] = TRUE;
   }
diff --git a/core/modules/simpletest/src/TestServiceProvider.php b/core/modules/simpletest/src/TestServiceProvider.php
index 817b68e..de3117f 100644
--- a/core/modules/simpletest/src/TestServiceProvider.php
+++ b/core/modules/simpletest/src/TestServiceProvider.php
@@ -17,7 +17,7 @@ class TestServiceProvider implements ServiceProviderInterface, ServiceModifierIn
   /**
    * {@inheritdoc}
    */
-  function register(ContainerBuilder $container) {
+  public function register(ContainerBuilder $container) {
     if (static::$currentTest && method_exists(static::$currentTest, 'containerBuild')) {
       static::$currentTest->containerBuild($container);
     }
diff --git a/core/modules/simpletest/src/Tests/BrokenSetUpTest.php b/core/modules/simpletest/src/Tests/BrokenSetUpTest.php
index e988f4d..779e432 100644
--- a/core/modules/simpletest/src/Tests/BrokenSetUpTest.php
+++ b/core/modules/simpletest/src/Tests/BrokenSetUpTest.php
@@ -71,7 +71,7 @@ protected function tearDown() {
   /**
    * Runs this test case from within the simpletest child site.
    */
-  function testMethod() {
+  public function testMethod() {
     // If the test is being run from the main site, run it again from the web
     // interface within the simpletest child site.
     if (!$this->isInChildSite()) {
diff --git a/core/modules/simpletest/src/Tests/BrowserTest.php b/core/modules/simpletest/src/Tests/BrowserTest.php
index f98fe48..c8e28ce 100644
--- a/core/modules/simpletest/src/Tests/BrowserTest.php
+++ b/core/modules/simpletest/src/Tests/BrowserTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Test \Drupal\simpletest\WebTestBase::getAbsoluteUrl().
    */
-  function testGetAbsoluteUrl() {
+  public function testGetAbsoluteUrl() {
     $url = 'user/login';
 
     $this->drupalGet($url);
@@ -58,7 +58,7 @@ function testGetAbsoluteUrl() {
   /**
    * Tests XPath escaping.
    */
-  function testXPathEscaping() {
+  public function testXPathEscaping() {
     $testpage = <<< EOF
 <html>
 <body>
diff --git a/core/modules/simpletest/src/Tests/FolderTest.php b/core/modules/simpletest/src/Tests/FolderTest.php
index d43c638..c69b9f7 100644
--- a/core/modules/simpletest/src/Tests/FolderTest.php
+++ b/core/modules/simpletest/src/Tests/FolderTest.php
@@ -19,7 +19,7 @@ class FolderTest extends WebTestBase {
    */
   public static $modules = array('image');
 
-  function testFolderSetup() {
+  public function testFolderSetup() {
     $directory = file_default_scheme() . '://styles';
     $this->assertTrue(file_prepare_directory($directory, FALSE), 'Directory created.');
   }
diff --git a/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php b/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
index a1063e7..56c195b 100644
--- a/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
+++ b/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
   /**
    * Tests existence of test case located in an installation profile module.
    */
-  function testInstallationProfileTests() {
+  public function testInstallationProfileTests() {
     $this->drupalGet('admin/config/development/testing');
     $this->assertText('Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest');
     $edit = array(
diff --git a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
index 15ecf1f..fded4b1 100644
--- a/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
+++ b/core/modules/simpletest/src/Tests/KernelTestBaseTest.php
@@ -50,7 +50,7 @@ function simpletest_test_stub_settings_function() {}
   /**
    * Tests expected behavior of setUp().
    */
-  function testSetUp() {
+  public function testSetUp() {
     $modules = array('entity_test');
     $table = 'entity_test';
 
@@ -79,7 +79,7 @@ function testSetUp() {
   /**
    * Tests expected load behavior of enableModules().
    */
-  function testEnableModulesLoad() {
+  public function testEnableModulesLoad() {
     $module = 'field_test';
 
     // Verify that the module does not exist yet.
@@ -103,7 +103,7 @@ function testEnableModulesLoad() {
   /**
    * Tests expected installation behavior of enableModules().
    */
-  function testEnableModulesInstall() {
+  public function testEnableModulesInstall() {
     $module = 'module_test';
     $table = 'module_test';
 
@@ -134,7 +134,7 @@ function testEnableModulesInstall() {
   /**
    * Tests installing modules with DependencyInjection services.
    */
-  function testEnableModulesInstallContainer() {
+  public function testEnableModulesInstallContainer() {
     // Install Node module.
     $this->enableModules(array('user', 'field', 'node'));
 
@@ -151,7 +151,7 @@ function testEnableModulesInstallContainer() {
   /**
    * Tests expected behavior of installSchema().
    */
-  function testInstallSchema() {
+  public function testInstallSchema() {
     $module = 'entity_test';
     $table = 'entity_test_example';
     // Verify that we can install a table from the module schema.
@@ -200,7 +200,7 @@ function testInstallSchema() {
   /**
    * Tests expected behavior of installEntitySchema().
    */
-  function testInstallEntitySchema() {
+  public function testInstallEntitySchema() {
     $entity = 'entity_test';
     // The entity_test Entity has a field that depends on the User module.
     $this->enableModules(array('user'));
@@ -212,7 +212,7 @@ function testInstallEntitySchema() {
   /**
    * Tests expected behavior of installConfig().
    */
-  function testInstallConfig() {
+  public function testInstallConfig() {
     // The user module has configuration that depends on system.
     $this->enableModules(array('system'));
     $module = 'user';
@@ -237,7 +237,7 @@ function testInstallConfig() {
   /**
    * Tests that the module list is retained after enabling/installing/disabling.
    */
-  function testEnableModulesFixedList() {
+  public function testEnableModulesFixedList() {
     // Install system module.
     $this->container->get('module_installer')->install(array('system', 'menu_link_content'));
     $entity_manager = \Drupal::entityManager();
@@ -290,7 +290,7 @@ function testEnableModulesFixedList() {
   /**
    * Tests that ThemeManager works right after loading a module.
    */
-  function testEnableModulesTheme() {
+  public function testEnableModulesTheme() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
     $original_element = $element = array(
@@ -311,7 +311,7 @@ function testEnableModulesTheme() {
   /**
    * Tests that there is no theme by default.
    */
-  function testNoThemeByDefault() {
+  public function testNoThemeByDefault() {
     $themes = $this->config('core.extension')->get('theme');
     $this->assertEqual($themes, array());
 
diff --git a/core/modules/simpletest/src/Tests/MailCaptureTest.php b/core/modules/simpletest/src/Tests/MailCaptureTest.php
index 700c757..6a80eb5 100644
--- a/core/modules/simpletest/src/Tests/MailCaptureTest.php
+++ b/core/modules/simpletest/src/Tests/MailCaptureTest.php
@@ -14,7 +14,7 @@ class MailCaptureTest extends WebTestBase {
   /**
    * Test to see if the wrapper function is executed correctly.
    */
-  function testMailSend() {
+  public function testMailSend() {
     // Create an email.
     $subject = $this->randomString(64);
     $body = $this->randomString(128);
diff --git a/core/modules/simpletest/src/Tests/MissingDependentModuleUnitTest.php b/core/modules/simpletest/src/Tests/MissingDependentModuleUnitTest.php
index 9c707b8..a8eb0de 100644
--- a/core/modules/simpletest/src/Tests/MissingDependentModuleUnitTest.php
+++ b/core/modules/simpletest/src/Tests/MissingDependentModuleUnitTest.php
@@ -15,7 +15,7 @@ class MissingDependentModuleUnitTest extends WebTestBase {
   /**
    * Ensure that this test will not be loaded despite its dependency.
    */
-  function testFail() {
+  public function testFail() {
     $this->fail('Running test with missing required module.');
   }
 
diff --git a/core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php b/core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php
index b4263f1..ed82386 100644
--- a/core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php
+++ b/core/modules/simpletest/src/Tests/OtherInstallationProfileTestsTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
   /**
    * Tests that tests located in another installation profile appear.
    */
-  function testOtherInstallationProfile() {
+  public function testOtherInstallationProfile() {
     // Assert the existence of a test in a different installation profile than
     // the current.
     $this->drupalGet('admin/config/development/testing');
diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php
index ff20f5e..23eeeb5 100644
--- a/core/modules/simpletest/src/Tests/SimpleTestTest.php
+++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php
@@ -110,7 +110,7 @@ class: Drupal\Core\Cache\MemoryBackendFactory
   /**
    * Ensures the tests selected through the web interface are run and displayed.
    */
-  function testWebTestRunner() {
+  public function testWebTestRunner() {
     $this->passMessage = t('SimpleTest pass.');
     $this->failMessage = t('SimpleTest fail.');
     $this->validPermission = 'access administration pages';
@@ -148,7 +148,7 @@ function testWebTestRunner() {
    * Here we force test results which must match the expected results from
    * confirmStubResults().
    */
-  function stubTest() {
+  public function stubTest() {
     // Ensure the .htkey file exists since this is only created just before a
     // request. This allows the stub test to make requests. The event does not
     // fire here and drupal_generate_test_ua() can not generate a key for a
@@ -232,14 +232,14 @@ function stubTest() {
   /**
    * Assert nothing.
    */
-  function assertNothing() {
+  public function assertNothing() {
     $this->pass("This is nothing.");
   }
 
   /**
    * Confirm that the stub test produced the desired results.
    */
-  function confirmStubTestResults() {
+  public function confirmStubTestResults() {
     $this->assertAssertion(t('Unable to install modules %modules due to missing modules %missing.', array('%modules' => 'non_existent_module', '%missing' => 'non_existent_module')), 'Other', 'Fail', 'SimpleTestTest.php', 'Drupal\simpletest\Tests\SimpleTestTest->setUp()');
 
     $this->assertAssertion($this->passMessage, 'Other', 'Pass', 'SimpleTestTest.php', 'Drupal\simpletest\Tests\SimpleTestTest->stubTest()');
@@ -274,7 +274,7 @@ function confirmStubTestResults() {
   /**
    * Fetch the test id from the test results.
    */
-  function getTestIdFromResults() {
+  public function getTestIdFromResults() {
     foreach ($this->childTestResults['assertions'] as $assertion) {
       if (preg_match('@^Test ID is ([0-9]*)\.$@', $assertion['message'], $matches)) {
         return $matches[1];
@@ -299,7 +299,7 @@ function getTestIdFromResults() {
    *
    * @return Assertion result.
    */
-  function assertAssertion($message, $type, $status, $file, $function) {
+  public function assertAssertion($message, $type, $status, $file, $function) {
     $message = trim(strip_tags($message));
     $found = FALSE;
     foreach ($this->childTestResults['assertions'] as $assertion) {
@@ -318,7 +318,7 @@ function assertAssertion($message, $type, $status, $file, $function) {
   /**
    * Get the results from a test and store them in the class array $results.
    */
-  function getTestResults() {
+  public function getTestResults() {
     $results = array();
     if ($this->parse()) {
       if ($details = $this->getResultFieldSet()) {
@@ -347,7 +347,7 @@ function getTestResults() {
   /**
    * Get the details containing the results for group this test is in.
    */
-  function getResultFieldSet() {
+  public function getResultFieldSet() {
     $all_details = $this->xpath('//details');
     foreach ($all_details as $details) {
       if ($this->asText($details->summary) == __CLASS__) {
@@ -366,7 +366,7 @@ function getResultFieldSet() {
    * @return
    *   Extracted text.
    */
-  function asText(\SimpleXMLElement $element) {
+  public function asText(\SimpleXMLElement $element) {
     if (!is_object($element)) {
       return $this->fail('The element is not an element.');
     }
diff --git a/core/modules/simpletest/src/Tests/TimeZoneTest.php b/core/modules/simpletest/src/Tests/TimeZoneTest.php
index 2f33eaa..9a98c79 100644
--- a/core/modules/simpletest/src/Tests/TimeZoneTest.php
+++ b/core/modules/simpletest/src/Tests/TimeZoneTest.php
@@ -28,7 +28,7 @@ protected function setUp() {
   /**
    * Tests that user accounts have the default time zone set.
    */
-  function testAccountTimeZones() {
+  public function testAccountTimeZones() {
     $expected = 'Australia/Sydney';
     $this->assertEqual($this->rootUser->getTimeZone(), $expected, 'Root user has correct time zone.');
     $this->assertEqual($this->adminUser->getTimeZone(), $expected, 'Admin user has correct time zone.');
diff --git a/core/modules/simpletest/src/Tests/UserHelpersTest.php b/core/modules/simpletest/src/Tests/UserHelpersTest.php
index c3fb00b..cef787b 100644
--- a/core/modules/simpletest/src/Tests/UserHelpersTest.php
+++ b/core/modules/simpletest/src/Tests/UserHelpersTest.php
@@ -14,7 +14,7 @@ class UserHelpersTest extends WebTestBase {
   /**
    * Tests WebTestBase::drupalUserIsLoggedIn().
    */
-  function testDrupalUserIsLoggedIn() {
+  public function testDrupalUserIsLoggedIn() {
     $first_user = $this->drupalCreateUser();
     $second_user = $this->drupalCreateUser();
 
diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php
index 3622642..f442e2d 100644
--- a/core/modules/simpletest/src/WebTestBase.php
+++ b/core/modules/simpletest/src/WebTestBase.php
@@ -236,7 +236,7 @@
   /**
    * Constructor for \Drupal\simpletest\WebTestBase.
    */
-  function __construct($test_id = NULL) {
+  public function __construct($test_id = NULL) {
     parent::__construct($test_id);
     $this->skipClasses[__CLASS__] = TRUE;
     $this->classLoader = require DRUPAL_ROOT . '/autoload.php';
diff --git a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
index 2afea1c..6e688b6 100644
--- a/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
+++ b/core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
@@ -15,7 +15,7 @@
  */
 class SimpletestPhpunitRunCommandTest extends UnitTestCase {
 
-  function testSimpletestPhpUnitRunCommand() {
+  public function testSimpletestPhpUnitRunCommand() {
     include_once __DIR__ . '/../../fixtures/simpletest_phpunit_run_command_test.php';
     $app_root = __DIR__ . '/../../../../../..';
     include_once "$app_root/core/modules/simpletest/simpletest.module";
diff --git a/core/modules/statistics/src/Tests/StatisticsAdminTest.php b/core/modules/statistics/src/Tests/StatisticsAdminTest.php
index 565925c..8c46787 100644
--- a/core/modules/statistics/src/Tests/StatisticsAdminTest.php
+++ b/core/modules/statistics/src/Tests/StatisticsAdminTest.php
@@ -59,7 +59,7 @@ protected function setUp() {
   /**
    * Verifies that the statistics settings page works.
    */
-  function testStatisticsSettings() {
+  public function testStatisticsSettings() {
     $config = $this->config('statistics.settings');
     $this->assertFalse($config->get('count_content_views'), 'Count content view log is disabled by default.');
 
@@ -102,7 +102,7 @@ function testStatisticsSettings() {
   /**
    * Tests that when a node is deleted, the node counter is deleted too.
    */
-  function testDeleteNode() {
+  public function testDeleteNode() {
     $this->config('statistics.settings')->set('count_content_views', 1)->save();
 
     $this->drupalGet('node/' . $this->testNode->id());
@@ -133,7 +133,7 @@ function testDeleteNode() {
   /**
    * Tests that cron clears day counts and expired access logs.
    */
-  function testExpiredLogs() {
+  public function testExpiredLogs() {
     $this->config('statistics.settings')
       ->set('count_content_views', 1)
       ->save();
diff --git a/core/modules/statistics/src/Tests/StatisticsLoggingTest.php b/core/modules/statistics/src/Tests/StatisticsLoggingTest.php
index 7cfec7c..2d03f0a 100644
--- a/core/modules/statistics/src/Tests/StatisticsLoggingTest.php
+++ b/core/modules/statistics/src/Tests/StatisticsLoggingTest.php
@@ -90,7 +90,7 @@ protected function setUp() {
   /**
    * Verifies node hit counter logging and script placement.
    */
-  function testLogging() {
+  public function testLogging() {
     $path = 'node/' . $this->node->id();
     $module_path = drupal_get_path('module', 'statistics');
     $stats_path = base_path() . $module_path . '/statistics.php';
diff --git a/core/modules/statistics/src/Tests/StatisticsReportsTest.php b/core/modules/statistics/src/Tests/StatisticsReportsTest.php
index 0fe2e28..1f3ea72 100644
--- a/core/modules/statistics/src/Tests/StatisticsReportsTest.php
+++ b/core/modules/statistics/src/Tests/StatisticsReportsTest.php
@@ -17,7 +17,7 @@ class StatisticsReportsTest extends StatisticsTestBase {
   /**
    * Tests the "popular content" block.
    */
-  function testPopularContentBlock() {
+  public function testPopularContentBlock() {
     // Clear the block cache to load the Statistics module's block definitions.
     $this->container->get('plugin.manager.block')->clearCachedDefinitions();
 
diff --git a/core/modules/statistics/src/Tests/StatisticsTokenReplaceTest.php b/core/modules/statistics/src/Tests/StatisticsTokenReplaceTest.php
index b7d22b8..b48b2f7 100644
--- a/core/modules/statistics/src/Tests/StatisticsTokenReplaceTest.php
+++ b/core/modules/statistics/src/Tests/StatisticsTokenReplaceTest.php
@@ -12,7 +12,7 @@ class StatisticsTokenReplaceTest extends StatisticsTestBase {
   /**
    * Creates a node, then tests the statistics tokens generated from it.
    */
-  function testStatisticsTokenReplacement() {
+  public function testStatisticsTokenReplacement() {
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
 
     // Create user and node.
diff --git a/core/modules/syslog/src/Tests/SyslogTest.php b/core/modules/syslog/src/Tests/SyslogTest.php
index a40847c..d8c8806 100644
--- a/core/modules/syslog/src/Tests/SyslogTest.php
+++ b/core/modules/syslog/src/Tests/SyslogTest.php
@@ -21,7 +21,7 @@ class SyslogTest extends WebTestBase {
   /**
    * Tests the syslog settings page.
    */
-  function testSettings() {
+  public function testSettings() {
     $admin_user = $this->drupalCreateUser(array('administer site configuration'));
     $this->drupalLogin($admin_user);
 
diff --git a/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php b/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
index 4ca7390..8e2bfd9 100644
--- a/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
+++ b/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
@@ -17,7 +17,7 @@ protected function setUp() {
   /**
    * Submits forms with select and checkbox elements via Ajax.
    */
-  function testSimpleAjaxFormValue() {
+  public function testSimpleAjaxFormValue() {
     $this->drupalGet('/ajax_forms_test_get_form');
     $this->assertText('Test group');
     $this->assertText('AJAX checkbox in a group');
diff --git a/core/modules/system/src/Tests/Ajax/CommandsTest.php b/core/modules/system/src/Tests/Ajax/CommandsTest.php
index 7e26fa3..eb56cd3 100644
--- a/core/modules/system/src/Tests/Ajax/CommandsTest.php
+++ b/core/modules/system/src/Tests/Ajax/CommandsTest.php
@@ -32,7 +32,7 @@ class CommandsTest extends AjaxTestBase {
   /**
    * Tests the various Ajax Commands.
    */
-  function testAjaxCommands() {
+  public function testAjaxCommands() {
     $form_path = 'ajax_forms_test_ajax_commands_form';
     $web_user = $this->drupalCreateUser(array('access content'));
     $this->drupalLogin($web_user);
diff --git a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
index 5133ce3..efbfbba 100644
--- a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
+++ b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
@@ -16,7 +16,7 @@ class ElementValidationTest extends AjaxTestBase {
    * filled in, and we want to see if the activation of the "drivertext"
    * Ajax-enabled field fails due to the required field being empty.
    */
-  function testAjaxElementValidation() {
+  public function testAjaxElementValidation() {
     $edit = array('drivertext' => t('some dumb text'));
 
     // Post with 'drivertext' as the triggering element.
diff --git a/core/modules/system/src/Tests/Ajax/FormValuesTest.php b/core/modules/system/src/Tests/Ajax/FormValuesTest.php
index 0a23db1..33ff5ee 100644
--- a/core/modules/system/src/Tests/Ajax/FormValuesTest.php
+++ b/core/modules/system/src/Tests/Ajax/FormValuesTest.php
@@ -19,7 +19,7 @@ protected function setUp() {
   /**
    * Submits forms with select and checkbox elements via Ajax.
    */
-  function testSimpleAjaxFormValue() {
+  public function testSimpleAjaxFormValue() {
     // Verify form values of a select element.
     foreach (array('red', 'green', 'blue') as $item) {
       $edit = array(
diff --git a/core/modules/system/src/Tests/Ajax/MultiFormTest.php b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
index e07204c..738975a 100644
--- a/core/modules/system/src/Tests/Ajax/MultiFormTest.php
+++ b/core/modules/system/src/Tests/Ajax/MultiFormTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
   /**
    * Tests that pages with the 'node_page_form' included twice work correctly.
    */
-  function testMultiForm() {
+  public function testMultiForm() {
     // HTML IDs for elements within the field are potentially modified with
     // each Ajax submission, but these variables are stable and help target the
     // desired elements.
diff --git a/core/modules/system/src/Tests/Batch/PageTest.php b/core/modules/system/src/Tests/Batch/PageTest.php
index f9948ed..d94b26f 100644
--- a/core/modules/system/src/Tests/Batch/PageTest.php
+++ b/core/modules/system/src/Tests/Batch/PageTest.php
@@ -21,7 +21,7 @@ class PageTest extends WebTestBase {
   /**
    * Tests that the batch API progress page uses the correct theme.
    */
-  function testBatchProgressPageTheme() {
+  public function testBatchProgressPageTheme() {
     // Make sure that the page which starts the batch (an administrative page)
     // is using a different theme than would normally be used by the batch API.
     $this->container->get('theme_handler')->install(array('seven', 'bartik'));
@@ -46,7 +46,7 @@ function testBatchProgressPageTheme() {
   /**
    * Tests that the batch API progress page shows the title correctly.
    */
-  function testBatchProgressPageTitle() {
+  public function testBatchProgressPageTitle() {
     // Visit an administrative page that runs a test batch, and check that the
     // title shown during batch execution (which the batch callback function
     // saved as a variable) matches the theme used on the administrative page.
@@ -59,7 +59,7 @@ function testBatchProgressPageTitle() {
   /**
    * Tests that the progress messages are correct.
    */
-  function testBatchProgressMessages() {
+  public function testBatchProgressMessages() {
     // Go to the initial step only.
     $this->maximumMetaRefreshCount = 0;
     $this->drupalGet('batch-test/test-title');
diff --git a/core/modules/system/src/Tests/Batch/ProcessingTest.php b/core/modules/system/src/Tests/Batch/ProcessingTest.php
index 66c0fc6..54838c7 100644
--- a/core/modules/system/src/Tests/Batch/ProcessingTest.php
+++ b/core/modules/system/src/Tests/Batch/ProcessingTest.php
@@ -22,7 +22,7 @@ class ProcessingTest extends WebTestBase {
   /**
    * Tests batches triggered outside of form submission.
    */
-  function testBatchNoForm() {
+  public function testBatchNoForm() {
     // Displaying the page triggers batch 1.
     $this->drupalGet('batch-test/no-form');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch for step 2 performed successfully.');
@@ -33,7 +33,7 @@ function testBatchNoForm() {
   /**
    * Tests batches that redirect in the batch finished callback.
    */
-  function testBatchRedirectFinishedCallback() {
+  public function testBatchRedirectFinishedCallback() {
     // Displaying the page triggers batch 1.
     $this->drupalGet('batch-test/finish-redirect');
     $this->assertBatchMessages($this->_resultMessages('batch_1'), 'Batch for step 2 performed successfully.');
@@ -45,7 +45,7 @@ function testBatchRedirectFinishedCallback() {
   /**
    * Tests batches defined in a form submit handler.
    */
-  function testBatchForm() {
+  public function testBatchForm() {
     // Batch 0: no operation.
     $edit = array('batch' => 'batch_0');
     $this->drupalPostForm('batch-test', $edit, 'Submit');
@@ -89,7 +89,7 @@ function testBatchForm() {
   /**
    * Tests batches defined in a multistep form.
    */
-  function testBatchFormMultistep() {
+  public function testBatchFormMultistep() {
     $this->drupalGet('batch-test/multistep');
     $this->assertNoEscaped('<', 'No escaped markup is present.');
     $this->assertText('step 1', 'Form is displayed in step 1.');
@@ -112,7 +112,7 @@ function testBatchFormMultistep() {
   /**
    * Tests batches defined in different submit handlers on the same form.
    */
-  function testBatchFormMultipleBatches() {
+  public function testBatchFormMultipleBatches() {
     // Batches 1, 2 and 3 are triggered in sequence by different submit
     // handlers. Each submit handler modify the submitted 'value'.
     $value = rand(0, 255);
@@ -131,7 +131,7 @@ function testBatchFormMultipleBatches() {
    *
    * Same as above, but the form is submitted through drupal_form_execute().
    */
-  function testBatchFormProgrammatic() {
+  public function testBatchFormProgrammatic() {
     // Batches 1, 2 and 3 are triggered in sequence by different submit
     // handlers. Each submit handler modify the submitted 'value'.
     $value = rand(0, 255);
@@ -147,7 +147,7 @@ function testBatchFormProgrammatic() {
   /**
    * Test form submission during a batch operation.
    */
-  function testDrupalFormSubmitInBatch() {
+  public function testDrupalFormSubmitInBatch() {
     // Displaying the page triggers a batch that programmatically submits a
     // form.
     $value = rand(0, 255);
@@ -160,7 +160,7 @@ function testDrupalFormSubmitInBatch() {
    *
    * @see https://www.drupal.org/node/600836
    */
-  function testBatchLargePercentage() {
+  public function testBatchLargePercentage() {
     // Displaying the page triggers batch 5.
     $this->drupalGet('batch-test/large-percentage');
     $this->assertBatchMessages($this->_resultMessages('batch_5'), 'Batch for step 2 performed successfully.');
@@ -180,7 +180,7 @@ function testBatchLargePercentage() {
    * @return
    *   TRUE on pass, FALSE on fail.
    */
-  function assertBatchMessages($texts, $message) {
+  public function assertBatchMessages($texts, $message) {
     $pattern = '|' . implode('.*', $texts) . '|s';
     return $this->assertPattern($pattern, $message);
   }
@@ -188,7 +188,7 @@ function assertBatchMessages($texts, $message) {
   /**
    * Returns expected execution stacks for the test batches.
    */
-  function _resultStack($id, $value = 0) {
+  public function _resultStack($id, $value = 0) {
     $stack = array();
     switch ($id) {
       case 'batch_1':
@@ -255,7 +255,7 @@ function _resultStack($id, $value = 0) {
   /**
    * Returns expected result messages for the test batches.
    */
-  function _resultMessages($id) {
+  public function _resultMessages($id) {
     $messages = array();
 
     switch ($id) {
diff --git a/core/modules/system/src/Tests/Bootstrap/DrupalSetMessageTest.php b/core/modules/system/src/Tests/Bootstrap/DrupalSetMessageTest.php
index 29ca02f..1e1b93a 100644
--- a/core/modules/system/src/Tests/Bootstrap/DrupalSetMessageTest.php
+++ b/core/modules/system/src/Tests/Bootstrap/DrupalSetMessageTest.php
@@ -21,7 +21,7 @@ class DrupalSetMessageTest extends WebTestBase {
   /**
    * Tests drupal_set_message().
    */
-  function testDrupalSetMessage() {
+  public function testDrupalSetMessage() {
     // The page at system-test/drupal-set-message sets two messages and then
     // removes the first before it is displayed.
     $this->drupalGet('system-test/drupal-set-message');
diff --git a/core/modules/system/src/Tests/Cache/CacheTestBase.php b/core/modules/system/src/Tests/Cache/CacheTestBase.php
index efca9fd..121ad0a 100644
--- a/core/modules/system/src/Tests/Cache/CacheTestBase.php
+++ b/core/modules/system/src/Tests/Cache/CacheTestBase.php
@@ -71,7 +71,7 @@ protected function assertCacheExists($message, $var = NULL, $cid = NULL, $bin =
    * @param $bin
    *   The bin the cache item was stored in.
    */
-  function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
+  public function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
     if ($bin == NULL) {
       $bin = $this->defaultBin;
     }
diff --git a/core/modules/system/src/Tests/Cache/ClearTest.php b/core/modules/system/src/Tests/Cache/ClearTest.php
index 3a3fe90..770295d 100644
--- a/core/modules/system/src/Tests/Cache/ClearTest.php
+++ b/core/modules/system/src/Tests/Cache/ClearTest.php
@@ -21,7 +21,7 @@ protected function setUp() {
   /**
    * Tests drupal_flush_all_caches().
    */
-  function testFlushAllCaches() {
+  public function testFlushAllCaches() {
     // Create cache entries for each flushed cache bin.
     $bins = Cache::getBins();
     $this->assertTrue($bins, 'Cache::getBins() returned bins to flush.');
diff --git a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
index 6c3d98f..1dbb1b0 100644
--- a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
+++ b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
@@ -494,7 +494,7 @@ public function testDeleteAll() {
    * Test Drupal\Core\Cache\CacheBackendInterface::invalidate() and
    * Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple().
    */
-  function testInvalidate() {
+  public function testInvalidate() {
     $backend = $this->getCacheBackend();
     $backend->set('test1', 1);
     $backend->set('test2', 2);
@@ -526,7 +526,7 @@ function testInvalidate() {
   /**
    * Tests Drupal\Core\Cache\CacheBackendInterface::invalidateTags().
    */
-  function testInvalidateTags() {
+  public function testInvalidateTags() {
     $backend = $this->getCacheBackend();
 
     // Create two cache entries with the same tag and tag value.
diff --git a/core/modules/system/src/Tests/Cache/SessionExistsCacheContextTest.php b/core/modules/system/src/Tests/Cache/SessionExistsCacheContextTest.php
index b3c195d..8815bf3 100644
--- a/core/modules/system/src/Tests/Cache/SessionExistsCacheContextTest.php
+++ b/core/modules/system/src/Tests/Cache/SessionExistsCacheContextTest.php
@@ -58,7 +58,7 @@ public function testCacheContext() {
   /**
    * Asserts whether a session cookie is present on the client or not.
    */
-  function assertSessionCookieOnClient($expected_present) {
+  public function assertSessionCookieOnClient($expected_present) {
     $non_deleted_cookies = array_filter($this->cookies, function ($item) { return $item['value'] !== 'deleted'; });
     $this->assertEqual($expected_present, isset($non_deleted_cookies[$this->getSessionName()]), 'Session cookie exists.');
   }
diff --git a/core/modules/system/src/Tests/Common/AddFeedTest.php b/core/modules/system/src/Tests/Common/AddFeedTest.php
index b539281..933c5d2 100644
--- a/core/modules/system/src/Tests/Common/AddFeedTest.php
+++ b/core/modules/system/src/Tests/Common/AddFeedTest.php
@@ -15,7 +15,7 @@ class AddFeedTest extends WebTestBase {
   /**
    * Tests attaching feeds with paths, URLs, and titles.
    */
-  function testBasicFeedAddNoTitle() {
+  public function testBasicFeedAddNoTitle() {
     $path = $this->randomMachineName(12);
     $external_url = 'http://' . $this->randomMachineName(12) . '/' . $this->randomMachineName(12);
     $fully_qualified_local_url = Url::fromUri('base:' . $this->randomMachineName(12), array('absolute' => TRUE))->toString();
@@ -70,7 +70,7 @@ function testBasicFeedAddNoTitle() {
   /**
    * Creates a pattern representing the RSS feed in the page.
    */
-  function urlToRSSLinkPattern($url, $title = '') {
+  public function urlToRSSLinkPattern($url, $title = '') {
     // Escape any regular expression characters in the URL ('?' is the worst).
     $url = preg_replace('/([+?.*])/', '[$0]', $url);
     $generated_pattern = '%<link +href="' . $url . '" +rel="alternate" +title="' . $title . '" +type="application/rss.xml" */>%';
@@ -82,7 +82,7 @@ function urlToRSSLinkPattern($url, $title = '') {
    *
    * @see https://www.drupal.org/node/1211668
    */
-  function testFeedIconEscaping() {
+  public function testFeedIconEscaping() {
     $variables = array(
       '#theme' => 'feed_icon',
       '#url' => 'node',
diff --git a/core/modules/system/src/Tests/Common/AlterTest.php b/core/modules/system/src/Tests/Common/AlterTest.php
index 86bed7d..7e61dc7 100644
--- a/core/modules/system/src/Tests/Common/AlterTest.php
+++ b/core/modules/system/src/Tests/Common/AlterTest.php
@@ -21,7 +21,7 @@ class AlterTest extends WebTestBase {
   /**
    * Tests if the theme has been altered.
    */
-  function testDrupalAlter() {
+  public function testDrupalAlter() {
     // This test depends on Bartik, so make sure that it is always the current
     // active theme.
     \Drupal::service('theme_handler')->install(array('bartik'));
diff --git a/core/modules/system/src/Tests/Common/EarlyRenderingControllerTest.php b/core/modules/system/src/Tests/Common/EarlyRenderingControllerTest.php
index 196d463..1afdd4e 100644
--- a/core/modules/system/src/Tests/Common/EarlyRenderingControllerTest.php
+++ b/core/modules/system/src/Tests/Common/EarlyRenderingControllerTest.php
@@ -25,7 +25,7 @@ class EarlyRenderingControllerTest extends WebTestBase {
   /**
    * Tests theme preprocess functions being able to attach assets.
    */
-  function testEarlyRendering() {
+  public function testEarlyRendering() {
     // Render array: non-early & early.
     $this->drupalGet(Url::fromRoute('early_rendering_controller_test.render_array'));
     $this->assertResponse(200);
diff --git a/core/modules/system/src/Tests/Common/FormatDateTest.php b/core/modules/system/src/Tests/Common/FormatDateTest.php
index 36589ef..8e5637d 100644
--- a/core/modules/system/src/Tests/Common/FormatDateTest.php
+++ b/core/modules/system/src/Tests/Common/FormatDateTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
   /**
    * Tests admin-defined formats in format_date().
    */
-  function testAdminDefinedFormatDate() {
+  public function testAdminDefinedFormatDate() {
     // Create and log in an admin user.
     $this->drupalLogin($this->drupalCreateUser(array('administer site configuration')));
 
@@ -80,7 +80,7 @@ function testAdminDefinedFormatDate() {
   /**
    * Tests the format_date() function.
    */
-  function testFormatDate() {
+  public function testFormatDate() {
     $timestamp = strtotime('2007-03-26T00:00:00+00:00');
     $this->assertIdentical(format_date($timestamp, 'custom', 'l, d-M-y H:i:s T', 'America/Los_Angeles', 'en'), 'Sunday, 25-Mar-07 17:00:00 PDT', 'Test all parameters.');
     $this->assertIdentical(format_date($timestamp, 'custom', 'l, d-M-y H:i:s T', 'America/Los_Angeles', self::LANGCODE), 'domingo, 25-Mar-07 17:00:00 PDT', 'Test translated format.');
diff --git a/core/modules/system/src/Tests/Common/RenderWebTest.php b/core/modules/system/src/Tests/Common/RenderWebTest.php
index fde7fa6..b2c46ea 100644
--- a/core/modules/system/src/Tests/Common/RenderWebTest.php
+++ b/core/modules/system/src/Tests/Common/RenderWebTest.php
@@ -24,7 +24,7 @@ class RenderWebTest extends WebTestBase {
   /**
    * Asserts the cache context for the wrapper format is always present.
    */
-  function testWrapperFormatCacheContext() {
+  public function testWrapperFormatCacheContext() {
     $this->drupalGet('common-test/type-link-active-class');
     $this->assertIdentical(0, strpos($this->getRawContent(), "<!DOCTYPE html>\n<html"));
     $this->assertIdentical('text/html; charset=UTF-8', $this->drupalGetHeader('Content-Type'));
@@ -43,7 +43,7 @@ function testWrapperFormatCacheContext() {
    * Tests rendering form elements without passing through
    * \Drupal::formBuilder()->doBuildForm().
    */
-  function testDrupalRenderFormElements() {
+  public function testDrupalRenderFormElements() {
     // Define a series of form elements.
     $element = array(
       '#type' => 'button',
diff --git a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
index 1be7e94..eff82cf 100644
--- a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
+++ b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php
@@ -31,7 +31,7 @@ class SimpleTestErrorCollectorTest extends WebTestBase {
   /**
    * Tests that simpletest collects errors from the tested site.
    */
-  function testErrorCollect() {
+  public function testErrorCollect() {
     $this->collectedErrors = array();
     $this->drupalGet('error-test/generate-warnings-with-report');
     $this->assertEqual(count($this->collectedErrors), 3, 'Three errors were collected');
@@ -82,7 +82,7 @@ protected function error($message = '', $group = 'Other', array $caller = NULL)
   /**
    * Asserts that a collected error matches what we are expecting.
    */
-  function assertError($error, $group, $function, $file, $message = NULL) {
+  public function assertError($error, $group, $function, $file, $message = NULL) {
     $this->assertEqual($error['group'], $group, format_string("Group was %group", array('%group' => $group)));
     $this->assertEqual($error['caller']['function'], $function, format_string("Function was %function", array('%function' => $function)));
     $this->assertEqual(drupal_basename($error['caller']['file']), $file, format_string("File was %file", array('%file' => $file)));
diff --git a/core/modules/system/src/Tests/Common/UrlTest.php b/core/modules/system/src/Tests/Common/UrlTest.php
index 062e3e4..eeea836 100644
--- a/core/modules/system/src/Tests/Common/UrlTest.php
+++ b/core/modules/system/src/Tests/Common/UrlTest.php
@@ -25,7 +25,7 @@ class UrlTest extends WebTestBase {
   /**
    * Confirms that invalid URLs are filtered in link generating functions.
    */
-  function testLinkXSS() {
+  public function testLinkXSS() {
     // Test \Drupal::l().
     $text = $this->randomMachineName();
     $path = "<SCRIPT>alert('XSS')</SCRIPT>";
@@ -42,7 +42,7 @@ function testLinkXSS() {
   /**
    * Tests that #type=link bubbles outbound route/path processors' metadata.
    */
-  function testLinkBubbleableMetadata() {
+  public function testLinkBubbleableMetadata() {
     $cases = [
       ['Regular link', 'internal:/user', [], ['contexts' => [], 'tags' => [], 'max-age' => Cache::PERMANENT], []],
       ['Regular link, absolute', 'internal:/user', ['absolute' => TRUE], ['contexts' => ['url.site'], 'tags' => [], 'max-age' => Cache::PERMANENT], []],
@@ -71,7 +71,7 @@ function testLinkBubbleableMetadata() {
   /**
    * Tests that default and custom attributes are handled correctly on links.
    */
-  function testLinkAttributes() {
+  public function testLinkAttributes() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
@@ -160,7 +160,7 @@ function testLinkAttributes() {
   /**
    * Tests that link functions support render arrays as 'text'.
    */
-  function testLinkRenderArrayText() {
+  public function testLinkRenderArrayText() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
@@ -211,7 +211,7 @@ private function hasAttribute($attribute, $link, $class) {
   /**
    * Tests UrlHelper::filterQueryParameters().
    */
-  function testDrupalGetQueryParameters() {
+  public function testDrupalGetQueryParameters() {
     $original = array(
       'a' => 1,
       'b' => array(
@@ -247,7 +247,7 @@ function testDrupalGetQueryParameters() {
   /**
    * Tests UrlHelper::parse().
    */
-  function testDrupalParseUrl() {
+  public function testDrupalParseUrl() {
     // Relative, absolute, and external URLs, without/with explicit script path,
     // without/with Drupal path.
     foreach (array('', '/', 'https://www.drupal.org/') as $absolute) {
@@ -285,7 +285,7 @@ function testDrupalParseUrl() {
   /**
    * Tests external URL handling.
    */
-  function testExternalUrls() {
+  public function testExternalUrls() {
     $test_url = 'https://www.drupal.org/';
 
     // Verify external URL can contain a fragment.
diff --git a/core/modules/system/src/Tests/Condition/ConditionFormTest.php b/core/modules/system/src/Tests/Condition/ConditionFormTest.php
index 21d0fcb..371d8af 100644
--- a/core/modules/system/src/Tests/Condition/ConditionFormTest.php
+++ b/core/modules/system/src/Tests/Condition/ConditionFormTest.php
@@ -21,7 +21,7 @@ class ConditionFormTest extends WebTestBase {
   /**
    * Submit the condition_node_type_test_form to test condition forms.
    */
-  function testConfigForm() {
+  public function testConfigForm() {
     $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Page'));
     $this->drupalCreateContentType(array('type' => 'article', 'name' => 'Article'));
 
diff --git a/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php b/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php
index cdfeab8..f56dcb0 100644
--- a/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php
+++ b/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php
@@ -16,7 +16,7 @@ class SelectPagerDefaultTest extends DatabaseWebTestBase {
    * Note that we have to make an HTTP request to a test page handler
    * because the pager depends on GET parameters.
    */
-  function testEvenPagerQuery() {
+  public function testEvenPagerQuery() {
     // To keep the test from being too brittle, we determine up front
     // what the page count should be dynamically, and pass the control
     // information forward to the actual query on the other side of the
@@ -50,7 +50,7 @@ function testEvenPagerQuery() {
    * Note that we have to make an HTTP request to a test page handler
    * because the pager depends on GET parameters.
    */
-  function testOddPagerQuery() {
+  public function testOddPagerQuery() {
     // To keep the test from being too brittle, we determine up front
     // what the page count should be dynamically, and pass the control
     // information forward to the actual query on the other side of the
@@ -83,7 +83,7 @@ function testOddPagerQuery() {
    *
    * This is a regression test for #467984.
    */
-  function testInnerPagerQuery() {
+  public function testInnerPagerQuery() {
     $query = db_select('test', 't')
       ->extend('Drupal\Core\Database\Query\PagerSelectExtender');
     $query
@@ -105,7 +105,7 @@ function testInnerPagerQuery() {
    *
    * This is a regression test for #467984.
    */
-  function testHavingPagerQuery() {
+  public function testHavingPagerQuery() {
     $query = db_select('test', 't')
       ->extend('Drupal\Core\Database\Query\PagerSelectExtender');
     $query
@@ -124,7 +124,7 @@ function testHavingPagerQuery() {
   /**
    * Confirms that every pager gets a valid, non-overlapping element ID.
    */
-  function testElementNumbers() {
+  public function testElementNumbers() {
 
     $request = Request::createFromGlobals();
     $request->query->replace(array(
diff --git a/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php b/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
index 7ccbbb5..1a5e490 100644
--- a/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
+++ b/core/modules/system/src/Tests/Database/SelectTableSortDefaultTest.php
@@ -15,7 +15,7 @@ class SelectTableSortDefaultTest extends DatabaseWebTestBase {
    * Note that we have to make an HTTP request to a test page handler
    * because the pager depends on GET parameters.
    */
-  function testTableSortQuery() {
+  public function testTableSortQuery() {
     $sorts = array(
       array('field' => t('Task ID'), 'sort' => 'desc', 'first' => 'perform at superbowl', 'last' => 'eat'),
       array('field' => t('Task ID'), 'sort' => 'asc', 'first' => 'eat', 'last' => 'perform at superbowl'),
@@ -43,7 +43,7 @@ function testTableSortQuery() {
    * If a tablesort's orderByHeader is called before another orderBy, then its
    * header happens first.
    */
-  function testTableSortQueryFirst() {
+  public function testTableSortQueryFirst() {
     $sorts = array(
       array('field' => t('Task ID'), 'sort' => 'desc', 'first' => 'perform at superbowl', 'last' => 'eat'),
       array('field' => t('Task ID'), 'sort' => 'asc', 'first' => 'eat', 'last' => 'perform at superbowl'),
@@ -71,7 +71,7 @@ function testTableSortQueryFirst() {
    * Specifically that no sort is set in a tableselect, and that header links
    * are correct.
    */
-  function testTableSortDefaultSort() {
+  public function testTableSortDefaultSort() {
     $this->drupalGet('database_test/tablesort_default_sort');
 
     // Verify that the table was displayed. Just the header is checked for
diff --git a/core/modules/system/src/Tests/Database/TemporaryQueryTest.php b/core/modules/system/src/Tests/Database/TemporaryQueryTest.php
index 1bfa754..9f326f9 100644
--- a/core/modules/system/src/Tests/Database/TemporaryQueryTest.php
+++ b/core/modules/system/src/Tests/Database/TemporaryQueryTest.php
@@ -19,14 +19,14 @@ class TemporaryQueryTest extends DatabaseWebTestBase {
   /**
    * Returns the number of rows of a table.
    */
-  function countTableRows($table_name) {
+  public function countTableRows($table_name) {
     return db_select($table_name)->countQuery()->execute()->fetchField();
   }
 
   /**
    * Confirms that temporary tables work and are limited to one request.
    */
-  function testTemporaryQuery() {
+  public function testTemporaryQuery() {
     $this->drupalGet('database_test/db_query_temporary');
     $data = json_decode($this->getRawContent());
     if ($data) {
diff --git a/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php b/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
index 219bc34..f6c4fd9 100644
--- a/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
+++ b/core/modules/system/src/Tests/Datetime/DrupalDateTimeTest.php
@@ -101,7 +101,7 @@ public function testDateTimezone() {
   /**
    * Tests the ability to override the time zone in the format method.
    */
-  function testTimezoneFormat() {
+  public function testTimezoneFormat() {
     // Create a date in UTC
     $date = DrupalDateTime::createFromTimestamp(87654321, 'UTC');
 
diff --git a/core/modules/system/src/Tests/DrupalKernel/ContentNegotiationTest.php b/core/modules/system/src/Tests/DrupalKernel/ContentNegotiationTest.php
index dcd88ec..1d08582 100644
--- a/core/modules/system/src/Tests/DrupalKernel/ContentNegotiationTest.php
+++ b/core/modules/system/src/Tests/DrupalKernel/ContentNegotiationTest.php
@@ -19,7 +19,7 @@ class ContentNegotiationTest extends WebTestBase {
    *
    * @see https://www.drupal.org/node/1716790
    */
-  function testBogusAcceptHeader() {
+  public function testBogusAcceptHeader() {
     $tests = array(
       // See https://bugs.webkit.org/show_bug.cgi?id=27267.
       'Firefox 3.5 (2009)' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
diff --git a/core/modules/system/src/Tests/Entity/EntityFormTest.php b/core/modules/system/src/Tests/Entity/EntityFormTest.php
index 4e0ced5..8c96b14 100644
--- a/core/modules/system/src/Tests/Entity/EntityFormTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityFormTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Tests basic form CRUD functionality.
    */
-  function testFormCRUD() {
+  public function testFormCRUD() {
     // All entity variations have to have the same results.
     foreach (entity_test_entity_types() as $entity_type) {
       $this->doTestFormCRUD($entity_type);
@@ -53,7 +53,7 @@ public function testMultilingualFormCRUD() {
    *
    * @see entity_test_entity_form_display_alter()
    */
-  function testEntityFormDisplayAlter() {
+  public function testEntityFormDisplayAlter() {
     $this->drupalGet('entity_test/add');
     $altered_field = $this->xpath('//input[@name="field_test_text[0][value]" and @size="42"]');
     $this->assertTrue(count($altered_field) === 1, 'The altered field has the correct size value.');
diff --git a/core/modules/system/src/Tests/Entity/EntityTranslationFormTest.php b/core/modules/system/src/Tests/Entity/EntityTranslationFormTest.php
index d64e019..62fc425 100644
--- a/core/modules/system/src/Tests/Entity/EntityTranslationFormTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityTranslationFormTest.php
@@ -43,7 +43,7 @@ protected function setUp() {
   /**
    * Tests entity form language.
    */
-  function testEntityFormLanguage() {
+  public function testEntityFormLanguage() {
     $this->drupalCreateContentType(array('type' => 'page', 'name' => 'Basic page'));
 
     $web_user = $this->drupalCreateUser(array('create page content', 'edit own page content', 'administer content types'));
diff --git a/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php b/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php
index d9f36ff..a0d169b 100644
--- a/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityViewControllerTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
   /**
    * Tests EntityViewController.
    */
-  function testEntityViewController() {
+  public function testEntityViewController() {
     $get_label_markup = function($label) {
       return '<h1 class="page-title">
             <div class="field field--name-name field--type-string field--label-hidden field__item">' . $label . '</div>
diff --git a/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php b/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
index ceab801..ddc52fe 100644
--- a/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
+++ b/core/modules/system/src/Tests/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
@@ -134,7 +134,7 @@ public function testMultipleUpdates() {
   /**
    * Tests that entity updates are correctly reported in the status report page.
    */
-  function testStatusReport() {
+  public function testStatusReport() {
     // Create a test entity.
     $entity = EntityTest::create(['name' => $this->randomString(), 'user_id' => mt_rand()]);
     $entity->save();
diff --git a/core/modules/system/src/Tests/File/ConfigTest.php b/core/modules/system/src/Tests/File/ConfigTest.php
index 2313e26..d23bb6e 100644
--- a/core/modules/system/src/Tests/File/ConfigTest.php
+++ b/core/modules/system/src/Tests/File/ConfigTest.php
@@ -19,7 +19,7 @@ protected function setUp(){
   /**
    * Tests file configuration page.
    */
-  function testFileConfigurationPage() {
+  public function testFileConfigurationPage() {
     $this->drupalGet('admin/config/media/file-system');
 
     // Set the file paths to non-default values.
diff --git a/core/modules/system/src/Tests/File/FileSaveHtaccessLoggingTest.php b/core/modules/system/src/Tests/File/FileSaveHtaccessLoggingTest.php
index 5827e24..49ff766 100644
--- a/core/modules/system/src/Tests/File/FileSaveHtaccessLoggingTest.php
+++ b/core/modules/system/src/Tests/File/FileSaveHtaccessLoggingTest.php
@@ -17,7 +17,7 @@ class FileSaveHtaccessLoggingTest extends WebTestBase {
   /**
    * Tests file_save_htaccess().
    */
-  function testHtaccessSave() {
+  public function testHtaccessSave() {
     // Prepare test directories.
     $private = $this->publicFilesDirectory . '/test/private';
 
diff --git a/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php b/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
index e8a6789..72f2b6b 100644
--- a/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
+++ b/core/modules/system/src/Tests/FileTransfer/FileTransferTest.php
@@ -23,7 +23,7 @@ protected function setUp() {
     $this->testConnection = TestFileTransfer::factory(\Drupal::root(), array('hostname' => $this->hostname, 'username' => $this->username, 'password' => $this->password, 'port' => $this->port));
   }
 
-  function _getFakeModuleFiles() {
+  public function _getFakeModuleFiles() {
     $files = array(
       'fake.module',
       'fake.info.yml',
@@ -37,7 +37,7 @@ function _getFakeModuleFiles() {
     return $files;
   }
 
-  function _buildFakeModule() {
+  public function _buildFakeModule() {
     $location = 'temporary://fake';
     if (is_dir($location)) {
       $ret = 0;
@@ -53,7 +53,7 @@ function _buildFakeModule() {
     return $location;
   }
 
-  function _writeDirectory($base, $files = array()) {
+  public function _writeDirectory($base, $files = array()) {
     mkdir($base);
     foreach ($files as $key => $file) {
       if (is_array($file)) {
@@ -66,7 +66,7 @@ function _writeDirectory($base, $files = array()) {
     }
   }
 
-  function testJail() {
+  public function testJail() {
     $source = $this->_buildFakeModule();
 
     // This convoluted piece of code is here because our testing framework does
diff --git a/core/modules/system/src/Tests/FileTransfer/MockTestConnection.php b/core/modules/system/src/Tests/FileTransfer/MockTestConnection.php
index 7e63dc7..434ab06 100644
--- a/core/modules/system/src/Tests/FileTransfer/MockTestConnection.php
+++ b/core/modules/system/src/Tests/FileTransfer/MockTestConnection.php
@@ -10,11 +10,11 @@ class MockTestConnection {
   protected $commandsRun = array();
   public $connectionString;
 
-  function run($cmd) {
+  public function run($cmd) {
     $this->commandsRun[] = $cmd;
   }
 
-  function flushCommands() {
+  public function flushCommands() {
     $out = $this->commandsRun;
     $this->commandsRun = array();
     return $out;
diff --git a/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php b/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
index eb73ebc..7f3d17d 100644
--- a/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
+++ b/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
@@ -19,11 +19,11 @@ class TestFileTransfer extends FileTransfer {
    */
   public $shouldIsDirectoryReturnTrue = FALSE;
 
-  function __construct($jail, $username, $password, $hostname = 'localhost', $port = 9999) {
+  public function __construct($jail, $username, $password, $hostname = 'localhost', $port = 9999) {
     parent::__construct($jail, $username, $password, $hostname, $port);
   }
 
-  static function factory($jail, $settings) {
+  public static function factory($jail, $settings) {
     return new TestFileTransfer($jail, $settings['username'], $settings['password'], $settings['hostname'], $settings['port']);
   }
 
@@ -32,7 +32,7 @@ public function connect() {
     $this->connection->connectionString = 'test://' . urlencode($this->username) . ':' . urlencode($this->password) . "@$this->host:$this->port/";
   }
 
-  function copyFileJailed($source, $destination) {
+  public function copyFileJailed($source, $destination) {
     $this->connection->run("copyFile $source $destination");
   }
 
@@ -40,25 +40,25 @@ protected function removeDirectoryJailed($directory) {
     $this->connection->run("rmdir $directory");
   }
 
-  function createDirectoryJailed($directory) {
+  public function createDirectoryJailed($directory) {
     $this->connection->run("mkdir $directory");
   }
 
-  function removeFileJailed($destination) {
+  public function removeFileJailed($destination) {
     if (!ftp_delete($this->connection, $item)) {
       throw new FileTransferException('Unable to remove to file @file.', NULL, array('@file' => $item));
     }
   }
 
-  function isDirectory($path) {
+  public function isDirectory($path) {
     return $this->shouldIsDirectoryReturnTrue;
   }
 
-  function isFile($path) {
+  public function isFile($path) {
     return FALSE;
   }
 
-  function chmodJailed($path, $mode, $recursive) {
+  public function chmodJailed($path, $mode, $recursive) {
     return;
   }
 
diff --git a/core/modules/system/src/Tests/Form/AlterTest.php b/core/modules/system/src/Tests/Form/AlterTest.php
index ae30722..4c493d7 100644
--- a/core/modules/system/src/Tests/Form/AlterTest.php
+++ b/core/modules/system/src/Tests/Form/AlterTest.php
@@ -22,7 +22,7 @@ class AlterTest extends WebTestBase {
   /**
    * Tests execution order of hook_form_alter() and hook_form_FORM_ID_alter().
    */
-  function testExecutionOrder() {
+  public function testExecutionOrder() {
     $this->drupalGet('form-test/alter');
     // Ensure that the order is first by module, then for a given module, the
     // id-specific one after the generic one.
diff --git a/core/modules/system/src/Tests/Form/ArbitraryRebuildTest.php b/core/modules/system/src/Tests/Form/ArbitraryRebuildTest.php
index 3702d35..63f604f 100644
--- a/core/modules/system/src/Tests/Form/ArbitraryRebuildTest.php
+++ b/core/modules/system/src/Tests/Form/ArbitraryRebuildTest.php
@@ -48,7 +48,7 @@ protected function setUp() {
   /**
    * Tests a basic rebuild with the user registration form.
    */
-  function testUserRegistrationRebuild() {
+  public function testUserRegistrationRebuild() {
     $edit = array(
       'name' => 'foo',
       'mail' => 'bar@example.com',
@@ -62,7 +62,7 @@ function testUserRegistrationRebuild() {
   /**
    * Tests a rebuild caused by a multiple value field.
    */
-  function testUserRegistrationMultipleField() {
+  public function testUserRegistrationMultipleField() {
     $edit = array(
       'name' => 'foo',
       'mail' => 'bar@example.com',
diff --git a/core/modules/system/src/Tests/Form/CheckboxTest.php b/core/modules/system/src/Tests/Form/CheckboxTest.php
index ebeeeea..5b2659b 100644
--- a/core/modules/system/src/Tests/Form/CheckboxTest.php
+++ b/core/modules/system/src/Tests/Form/CheckboxTest.php
@@ -19,7 +19,7 @@ class CheckboxTest extends WebTestBase {
    */
   public static $modules = array('form_test');
 
-  function testFormCheckbox() {
+  public function testFormCheckbox() {
     // Ensure that the checked state is determined and rendered correctly for
     // tricky combinations of default and return values.
     foreach (array(FALSE, NULL, TRUE, 0, '0', '', 1, '1', 'foobar', '1foobar') as $default_value) {
diff --git a/core/modules/system/src/Tests/Form/ConfirmFormTest.php b/core/modules/system/src/Tests/Form/ConfirmFormTest.php
index 312aa2e..aa965fb 100644
--- a/core/modules/system/src/Tests/Form/ConfirmFormTest.php
+++ b/core/modules/system/src/Tests/Form/ConfirmFormTest.php
@@ -20,7 +20,7 @@ class ConfirmFormTest extends WebTestBase {
    */
   public static $modules = array('form_test');
 
-  function testConfirmForm() {
+  public function testConfirmForm() {
     // Test the building of the form.
     $this->drupalGet('form-test/confirm-form');
     $site_name = $this->config('system.site')->get('name');
diff --git a/core/modules/system/src/Tests/Form/ElementTest.php b/core/modules/system/src/Tests/Form/ElementTest.php
index 0ae2edc..1730b0e 100644
--- a/core/modules/system/src/Tests/Form/ElementTest.php
+++ b/core/modules/system/src/Tests/Form/ElementTest.php
@@ -21,7 +21,7 @@ class ElementTest extends WebTestBase {
   /**
    * Tests placeholder text for elements that support placeholders.
    */
-  function testPlaceHolderText() {
+  public function testPlaceHolderText() {
     $this->drupalGet('form-test/placeholder-text');
     $expected = 'placeholder-text';
     // Test to make sure non-textarea elements have the proper placeholder text.
@@ -44,7 +44,7 @@ function testPlaceHolderText() {
   /**
    * Tests expansion of #options for #type checkboxes and radios.
    */
-  function testOptions() {
+  public function testOptions() {
     $this->drupalGet('form-test/checkboxes-radios');
 
     // Verify that all options appear in their defined order.
@@ -91,7 +91,7 @@ function testOptions() {
   /**
    * Tests wrapper ids for checkboxes and radios.
    */
-  function testWrapperIds() {
+  public function testWrapperIds() {
     $this->drupalGet('form-test/checkboxes-radios');
 
     // Verify that wrapper id is different from element id.
@@ -106,7 +106,7 @@ function testWrapperIds() {
   /**
    * Tests button classes.
    */
-  function testButtonClasses() {
+  public function testButtonClasses() {
     $this->drupalGet('form-test/button-class');
     // Just contains(@class, "button") won't do because then
     // "button--foo" would contain "button". Instead, check
@@ -120,7 +120,7 @@ function testButtonClasses() {
   /**
    * Tests the #group property.
    */
-  function testGroupElements() {
+  public function testGroupElements() {
     $this->drupalGet('form-test/group-details');
     $elements = $this->xpath('//div[@class="details-wrapper"]//div[@class="details-wrapper"]//label');
     $this->assertTrue(count($elements) == 1);
diff --git a/core/modules/system/src/Tests/Form/ElementsLabelsTest.php b/core/modules/system/src/Tests/Form/ElementsLabelsTest.php
index 5965dc25..99d9bfd 100644
--- a/core/modules/system/src/Tests/Form/ElementsLabelsTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsLabelsTest.php
@@ -22,7 +22,7 @@ class ElementsLabelsTest extends WebTestBase {
    * Test form elements, labels, title attributes and required marks output
    * correctly and have the correct label option class if needed.
    */
-  function testFormLabels() {
+  public function testFormLabels() {
     $this->drupalGet('form_test/form-labels');
 
     // Check that the checkbox/radio processing is not interfering with
@@ -99,7 +99,7 @@ function testFormLabels() {
   /**
    * Tests different display options for form element descriptions.
    */
-  function testFormDescriptions() {
+  public function testFormDescriptions() {
     $this->drupalGet('form_test/form-descriptions');
 
     // Check #description placement with #description_display='after'.
@@ -126,7 +126,7 @@ function testFormDescriptions() {
   /**
    * Test forms in theme-less environments.
    */
-  function testFormsInThemeLessEnvironments() {
+  public function testFormsInThemeLessEnvironments() {
     $form = $this->getFormWithLimitedProperties();
     $render_service = $this->container->get('renderer');
     // This should not throw any notices.
diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
index 34a558c..0e0fdc9 100644
--- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
@@ -22,7 +22,7 @@ class ElementsTableSelectTest extends WebTestBase {
   /**
    * Test the display of checkboxes when #multiple is TRUE.
    */
-  function testMultipleTrue() {
+  public function testMultipleTrue() {
 
     $this->drupalGet('form_test/tableselect/multiple-true');
 
@@ -40,7 +40,7 @@ function testMultipleTrue() {
   /**
    * Test the presence of ajax functionality for all options.
    */
-  function testAjax() {
+  public function testAjax() {
     $rows = array('row1', 'row2', 'row3');
     // Test checkboxes (#multiple == TRUE).
     foreach ($rows as $row) {
@@ -61,7 +61,7 @@ function testAjax() {
   /**
    * Test the display of radios when #multiple is FALSE.
    */
-  function testMultipleFalse() {
+  public function testMultipleFalse() {
     $this->drupalGet('form_test/tableselect/multiple-false');
 
     $this->assertNoText(t('Empty text.'), 'Empty text should not be displayed.');
@@ -78,7 +78,7 @@ function testMultipleFalse() {
   /**
    * Tests the display when #colspan is set.
    */
-  function testTableselectColSpan() {
+  public function testTableselectColSpan() {
     $this->drupalGet('form_test/tableselect/colspan');
 
     $this->assertText(t('Three'), 'Presence of the third column');
@@ -103,7 +103,7 @@ function testTableselectColSpan() {
   /**
    * Test the display of the #empty text when #options is an empty array.
    */
-  function testEmptyText() {
+  public function testEmptyText() {
     $this->drupalGet('form_test/tableselect/empty-text');
     $this->assertText(t('Empty text.'), 'Empty text should be displayed.');
   }
@@ -111,7 +111,7 @@ function testEmptyText() {
   /**
    * Test the submission of single and multiple values when #multiple is TRUE.
    */
-  function testMultipleTrueSubmit() {
+  public function testMultipleTrueSubmit() {
 
     // Test a submission with one checkbox checked.
     $edit = array();
@@ -136,7 +136,7 @@ function testMultipleTrueSubmit() {
   /**
    * Test submission of values when #multiple is FALSE.
    */
-  function testMultipleFalseSubmit() {
+  public function testMultipleFalseSubmit() {
     $edit['tableselect'] = 'row1';
     $this->drupalPostForm('form_test/tableselect/multiple-false', $edit, 'Submit');
     $this->assertText(t('Submitted: row1'), 'Selected radio button');
@@ -145,7 +145,7 @@ function testMultipleFalseSubmit() {
   /**
    * Test the #js_select property.
    */
-  function testAdvancedSelect() {
+  public function testAdvancedSelect() {
     // When #multiple = TRUE a Select all checkbox should be displayed by default.
     $this->drupalGet('form_test/tableselect/advanced-select/multiple-true-default');
     $this->assertFieldByXPath('//th[@class="select-all"]', NULL, 'Display a "Select all" checkbox by default when #multiple is TRUE.');
@@ -166,7 +166,7 @@ function testAdvancedSelect() {
   /**
    * Test the whether the option checker gives an error on invalid tableselect values for checkboxes.
    */
-  function testMultipleTrueOptionchecker() {
+  public function testMultipleTrueOptionchecker() {
 
     list($header, $options) = _form_test_tableselect_get_data();
 
@@ -190,7 +190,7 @@ function testMultipleTrueOptionchecker() {
   /**
    * Test the whether the option checker gives an error on invalid tableselect values for radios.
    */
-  function testMultipleFalseOptionchecker() {
+  public function testMultipleFalseOptionchecker() {
 
     list($header, $options) = _form_test_tableselect_get_data();
 
diff --git a/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php b/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php
index 2e630cc..751a731 100644
--- a/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsVerticalTabsTest.php
@@ -47,7 +47,7 @@ protected function setUp() {
    *
    * Otherwise, collapse.js adds "SHOW" or "HIDE" labels to the tabs.
    */
-  function testJavaScriptOrdering() {
+  public function testJavaScriptOrdering() {
     $this->drupalGet('form_test/vertical-tabs');
     $position1 = strpos($this->content, 'core/misc/vertical-tabs.js');
     $position2 = strpos($this->content, 'core/misc/collapse.js');
@@ -57,7 +57,7 @@ function testJavaScriptOrdering() {
   /**
    * Ensures that vertical tab markup is not shown if user has no tab access.
    */
-  function testWrapperNotShownWhenEmpty() {
+  public function testWrapperNotShownWhenEmpty() {
     // Test admin user can see vertical tabs and wrapper.
     $this->drupalGet('form_test/vertical-tabs');
     $wrapper = $this->xpath("//div[@data-vertical-tabs-panes]");
@@ -73,7 +73,7 @@ function testWrapperNotShownWhenEmpty() {
   /**
    * Ensures that default vertical tab is correctly selected.
    */
-  function testDefaultTab() {
+  public function testDefaultTab() {
     $this->drupalGet('form_test/vertical-tabs');
     $this->assertFieldByName('vertical_tabs__active_tab', 'edit-tab3', t('The default vertical tab is correctly selected.'));
   }
@@ -81,7 +81,7 @@ function testDefaultTab() {
   /**
    * Ensures that vertical tab form values are cleaned.
    */
-  function testDefaultTabCleaned() {
+  public function testDefaultTabCleaned() {
     $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', [], t('Submit')));
     $this->assertFalse(isset($values['vertical_tabs__active_tab']), SafeMarkup::format('%element was removed.', ['%element' => 'vertical_tabs__active_tab']));
   }
diff --git a/core/modules/system/src/Tests/Form/EmailTest.php b/core/modules/system/src/Tests/Form/EmailTest.php
index e53247f..9644874 100644
--- a/core/modules/system/src/Tests/Form/EmailTest.php
+++ b/core/modules/system/src/Tests/Form/EmailTest.php
@@ -24,7 +24,7 @@ class EmailTest extends WebTestBase {
   /**
    * Tests that #type 'email' fields are properly validated.
    */
-  function testFormEmail() {
+  public function testFormEmail() {
     $edit = array();
     $edit['email'] = 'invalid';
     $edit['email_required'] = ' ';
diff --git a/core/modules/system/src/Tests/Form/FormObjectTest.php b/core/modules/system/src/Tests/Form/FormObjectTest.php
index 38db211..99f298e 100644
--- a/core/modules/system/src/Tests/Form/FormObjectTest.php
+++ b/core/modules/system/src/Tests/Form/FormObjectTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
    *
    * @see \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::onKernelRequest()
    */
-  function testObjectFormCallback() {
+  public function testObjectFormCallback() {
     $config_factory = $this->container->get('config.factory');
 
     $this->drupalGet('form-test/object-builder');
diff --git a/core/modules/system/src/Tests/Form/FormTest.php b/core/modules/system/src/Tests/Form/FormTest.php
index cf73836..ae700ae 100644
--- a/core/modules/system/src/Tests/Form/FormTest.php
+++ b/core/modules/system/src/Tests/Form/FormTest.php
@@ -48,7 +48,7 @@ protected function setUp() {
    *
    * If the form field is found in $form_state->getErrors() then the test pass.
    */
-  function testRequiredFields() {
+  public function testRequiredFields() {
     // Originates from https://www.drupal.org/node/117748.
     // Sets of empty strings and arrays.
     $empty_strings = array('""' => "", '"\n"' => "\n", '" "' => " ", '"\t"' => "\t", '" \n\t "' => " \n\t ", '"\n\n\n\n\n"' => "\n\n\n\n\n");
@@ -163,7 +163,7 @@ function testRequiredFields() {
    *
    * @see \Drupal\form_test\Form\FormTestValidateRequiredForm
    */
-  function testRequiredCheckboxesRadio() {
+  public function testRequiredCheckboxesRadio() {
     $form = \Drupal::formBuilder()->getForm('\Drupal\form_test\Form\FormTestValidateRequiredForm');
 
     // Attempt to submit the form with no required fields set.
@@ -312,7 +312,7 @@ public function testGetFormsCsrfToken() {
    *
    * @see \Drupal\form_test\Form\FormTestValidateRequiredNoTitleForm
    */
-  function testRequiredTextfieldNoTitle() {
+  public function testRequiredTextfieldNoTitle() {
     // Attempt to submit the form with no required field set.
     $edit = array();
     $this->drupalPostForm('form-test/validate-required-no-title', $edit, 'Submit');
@@ -339,7 +339,7 @@ function testRequiredTextfieldNoTitle() {
    *
    * @see _form_test_checkbox()
    */
-  function testCheckboxProcessing() {
+  public function testCheckboxProcessing() {
     // First, try to submit without the required checkbox.
     $edit = array();
     $this->drupalPostForm('form-test/checkbox', $edit, t('Submit'));
@@ -367,7 +367,7 @@ function testCheckboxProcessing() {
   /**
    * Tests validation of #type 'select' elements.
    */
-  function testSelect() {
+  public function testSelect() {
     $form = \Drupal::formBuilder()->getForm('Drupal\form_test\Form\FormTestSelectForm');
     $this->drupalGet('form-test/select');
 
@@ -444,7 +444,7 @@ function testSelect() {
   /**
    * Tests a select element when #options is not set.
    */
-  function testEmptySelect() {
+  public function testEmptySelect() {
     $this->drupalGet('form-test/empty-select');
     $this->assertFieldByXPath("//select[1]", NULL, 'Select element found.');
     $this->assertNoFieldByXPath("//select[1]/option", NULL, 'No option element found.');
@@ -453,7 +453,7 @@ function testEmptySelect() {
   /**
    * Tests validation of #type 'number' and 'range' elements.
    */
-  function testNumber() {
+  public function testNumber() {
     $form = \Drupal::formBuilder()->getForm('\Drupal\form_test\Form\FormTestNumberForm');
 
     // Array with all the error messages to be checked.
@@ -517,7 +517,7 @@ function testNumber() {
   /**
    * Tests default value handling of #type 'range' elements.
    */
-  function testRange() {
+  public function testRange() {
     $values = json_decode($this->drupalPostForm('form-test/range', array(), 'Submit'));
     $this->assertEqual($values->with_default_value, 18);
     $this->assertEqual($values->float, 10.5);
@@ -531,7 +531,7 @@ function testRange() {
   /**
    * Tests validation of #type 'color' elements.
    */
-  function testColorValidation() {
+  public function testColorValidation() {
     // Keys are inputs, values are expected results.
     $values = array(
       '' => '#000000',
@@ -568,7 +568,7 @@ function testColorValidation() {
    *
    * @see _form_test_disabled_elements()
    */
-  function testDisabledElements() {
+  public function testDisabledElements() {
     // Get the raw form in its original state.
     $form_state = new FormState();
     $form = (new FormTestDisabledElementsForm())->buildForm(array(), $form_state);
@@ -626,7 +626,7 @@ function testDisabledElements() {
   /**
    * Assert that the values submitted to a form matches the default values of the elements.
    */
-  function assertFormValuesDefault($values, $form) {
+  public function assertFormValuesDefault($values, $form) {
     foreach (Element::children($form) as $key) {
       if (isset($form[$key]['#default_value'])) {
         if (isset($form[$key]['#expected_value'])) {
@@ -653,7 +653,7 @@ function assertFormValuesDefault($values, $form) {
    *
    * @see _form_test_disabled_elements()
    */
-  function testDisabledMarkup() {
+  public function testDisabledMarkup() {
     $this->drupalGet('form-test/disabled-elements');
     $form = \Drupal::formBuilder()->getForm('\Drupal\form_test\Form\FormTestDisabledElementsForm');
     $type_map = array(
@@ -715,7 +715,7 @@ function testDisabledMarkup() {
    *
    * @see _form_test_input_forgery()
    */
-  function testInputForgery() {
+  public function testInputForgery() {
     $this->drupalGet('form-test/input-forgery');
     $checkbox = $this->xpath('//input[@name="checkboxes[two]"]');
     $checkbox[0]['value'] = 'FORGERY';
@@ -726,7 +726,7 @@ function testInputForgery() {
   /**
    * Tests required attribute.
    */
-  function testRequiredAttribute() {
+  public function testRequiredAttribute() {
     $this->drupalGet('form-test/required-attribute');
     $expected = 'required';
     // Test to make sure the elements have the proper required attribute.
diff --git a/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php b/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
index 7b3d73c..0039a1a 100644
--- a/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
+++ b/core/modules/system/src/Tests/Form/LanguageSelectElementTest.php
@@ -25,7 +25,7 @@ class LanguageSelectElementTest extends WebTestBase {
   /**
    * Tests that the options printed by the language select element are correct.
    */
-  function testLanguageSelectElementOptions() {
+  public function testLanguageSelectElementOptions() {
     // Add some languages.
     ConfigurableLanguage::create(array(
       'id' => 'aaa',
@@ -68,7 +68,7 @@ function testLanguageSelectElementOptions() {
    *
    * This happens when the language module is disabled.
    */
-  function testHiddenLanguageSelectElement() {
+  public function testHiddenLanguageSelectElement() {
     // Disable the language module, so that the language select field will not
     // be rendered.
     $this->container->get('module_installer')->uninstall(array('language'));
diff --git a/core/modules/system/src/Tests/Form/ProgrammaticTest.php b/core/modules/system/src/Tests/Form/ProgrammaticTest.php
index 5fbefb5..6d33e94 100644
--- a/core/modules/system/src/Tests/Form/ProgrammaticTest.php
+++ b/core/modules/system/src/Tests/Form/ProgrammaticTest.php
@@ -22,7 +22,7 @@ class ProgrammaticTest extends WebTestBase {
   /**
    * Test the programmatic form submission workflow.
    */
-  function testSubmissionWorkflow() {
+  public function testSubmissionWorkflow() {
     // Backup the current batch status and reset it to avoid conflicts while
     // processing the dummy form submit handler.
     $current_batch = $batch =& batch_get();
diff --git a/core/modules/system/src/Tests/Form/RebuildTest.php b/core/modules/system/src/Tests/Form/RebuildTest.php
index bee15fe..7a43bb8 100644
--- a/core/modules/system/src/Tests/Form/RebuildTest.php
+++ b/core/modules/system/src/Tests/Form/RebuildTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Tests preservation of values.
    */
-  function testRebuildPreservesValues() {
+  public function testRebuildPreservesValues() {
     $edit = array(
       'checkbox_1_default_off' => TRUE,
       'checkbox_1_default_on' => FALSE,
@@ -67,7 +67,7 @@ function testRebuildPreservesValues() {
    * The 'action' attribute of a form should not change after an Ajax submission
    * followed by a non-Ajax submission, which triggers a validation error.
    */
-  function testPreserveFormActionAfterAJAX() {
+  public function testPreserveFormActionAfterAJAX() {
     // Create a multi-valued field for 'page' nodes to use for Ajax testing.
     $field_name = 'field_ajax_test';
     FieldStorageConfig::create(array(
diff --git a/core/modules/system/src/Tests/Form/RedirectTest.php b/core/modules/system/src/Tests/Form/RedirectTest.php
index 6b6d360..aa7c21e 100644
--- a/core/modules/system/src/Tests/Form/RedirectTest.php
+++ b/core/modules/system/src/Tests/Form/RedirectTest.php
@@ -21,7 +21,7 @@ class RedirectTest extends WebTestBase {
   /**
    * Tests form redirection.
    */
-  function testRedirect() {
+  public function testRedirect() {
     $path = 'form-test/redirect';
     $options = array('query' => array('foo' => 'bar'));
     $options['absolute'] = TRUE;
diff --git a/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php b/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php
index eb53244..1fea902 100644
--- a/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php
+++ b/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php
@@ -28,7 +28,7 @@ class StateValuesCleanAdvancedTest extends WebTestBase {
   /**
    * Tests \Drupal\Core\Form\FormState::cleanValues().
    */
-  function testFormStateValuesCleanAdvanced() {
+  public function testFormStateValuesCleanAdvanced() {
 
     // Get an image for uploading.
     $image_files = $this->drupalGetTestFiles('image');
diff --git a/core/modules/system/src/Tests/Form/StateValuesCleanTest.php b/core/modules/system/src/Tests/Form/StateValuesCleanTest.php
index 7761bd8..28c63c3 100644
--- a/core/modules/system/src/Tests/Form/StateValuesCleanTest.php
+++ b/core/modules/system/src/Tests/Form/StateValuesCleanTest.php
@@ -24,7 +24,7 @@ class StateValuesCleanTest extends WebTestBase {
   /**
    * Tests \Drupal\Core\Form\FormState::cleanValues().
    */
-  function testFormStateValuesClean() {
+  public function testFormStateValuesClean() {
     $values = Json::decode($this->drupalPostForm('form_test/form-state-values-clean', array(), t('Submit')));
 
     // Setup the expected result.
diff --git a/core/modules/system/src/Tests/Form/StorageTest.php b/core/modules/system/src/Tests/Form/StorageTest.php
index d29f36b..79b4f50 100644
--- a/core/modules/system/src/Tests/Form/StorageTest.php
+++ b/core/modules/system/src/Tests/Form/StorageTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Tests using the form in a usual way.
    */
-  function testForm() {
+  public function testForm() {
     $this->drupalGet('form_test/form-storage');
     $this->assertText('Form constructions: 1');
 
@@ -60,7 +60,7 @@ function testForm() {
   /**
    * Tests using the form after calling $form_state->setCached().
    */
-  function testFormCached() {
+  public function testFormCached() {
     $this->drupalGet('form_test/form-storage', array('query' => array('cache' => 1)));
     $this->assertText('Form constructions: 1');
 
@@ -87,7 +87,7 @@ function testFormCached() {
   /**
    * Tests validation when form storage is used.
    */
-  function testValidation() {
+  public function testValidation() {
     $this->drupalPostForm('form_test/form-storage', array('title' => '', 'value' => 'value_is_set'), 'Continue submit');
     $this->assertPattern('/value_is_set/', 'The input values have been kept.');
   }
@@ -102,7 +102,7 @@ function testValidation() {
    * during form validation, while another, required element in the form
    * triggers a form validation error.
    */
-  function testCachedFormStorageValidation() {
+  public function testCachedFormStorageValidation() {
     // Request the form with 'cache' query parameter to enable form caching.
     $this->drupalGet('form_test/form-storage', array('query' => array('cache' => 1)));
 
diff --git a/core/modules/system/src/Tests/Form/SystemConfigFormTest.php b/core/modules/system/src/Tests/Form/SystemConfigFormTest.php
index 69a7f7e..55107b0 100644
--- a/core/modules/system/src/Tests/Form/SystemConfigFormTest.php
+++ b/core/modules/system/src/Tests/Form/SystemConfigFormTest.php
@@ -21,7 +21,7 @@ class SystemConfigFormTest extends WebTestBase {
   /**
    * Tests the SystemConfigFormTestBase class.
    */
-  function testSystemConfigForm() {
+  public function testSystemConfigForm() {
     $this->drupalGet('form-test/system-config-form');
     $element = $this->xpath('//div[@id = :id]/input[contains(@class, :class)]', array(':id' => 'edit-actions', ':class' => 'button--primary'));
     $this->assertTrue($element, 'The primary action submit button was found.');
diff --git a/core/modules/system/src/Tests/Form/TriggeringElementTest.php b/core/modules/system/src/Tests/Form/TriggeringElementTest.php
index 5d8a180..8950664 100644
--- a/core/modules/system/src/Tests/Form/TriggeringElementTest.php
+++ b/core/modules/system/src/Tests/Form/TriggeringElementTest.php
@@ -23,7 +23,7 @@ class TriggeringElementTest extends WebTestBase {
    * information is included in the POST data, as is sometimes the case when
    * the ENTER key is pressed in a textfield in Internet Explorer.
    */
-  function testNoButtonInfoInPost() {
+  public function testNoButtonInfoInPost() {
     $path = 'form-test/clicked-button';
     $edit = array();
     $form_html_id = 'form-test-clicked-button';
@@ -70,7 +70,7 @@ function testNoButtonInfoInPost() {
    * Test that the triggering element does not get set to a button with
    * #access=FALSE.
    */
-  function testAttemptAccessControlBypass() {
+  public function testAttemptAccessControlBypass() {
     $path = 'form-test/clicked-button';
     $form_html_id = 'form-test-clicked-button';
 
diff --git a/core/modules/system/src/Tests/Form/UrlTest.php b/core/modules/system/src/Tests/Form/UrlTest.php
index 4bf6f60..8278493 100644
--- a/core/modules/system/src/Tests/Form/UrlTest.php
+++ b/core/modules/system/src/Tests/Form/UrlTest.php
@@ -24,7 +24,7 @@ class UrlTest extends WebTestBase {
   /**
    * Tests that #type 'url' fields are properly validated and trimmed.
    */
-  function testFormUrl() {
+  public function testFormUrl() {
     $edit = array();
     $edit['url'] = 'http://';
     $edit['url_required'] = ' ';
diff --git a/core/modules/system/src/Tests/Form/ValidationTest.php b/core/modules/system/src/Tests/Form/ValidationTest.php
index 35b340b..267cd43 100644
--- a/core/modules/system/src/Tests/Form/ValidationTest.php
+++ b/core/modules/system/src/Tests/Form/ValidationTest.php
@@ -22,7 +22,7 @@ class ValidationTest extends WebTestBase {
   /**
    * Tests #element_validate and #validate.
    */
-  function testValidate() {
+  public function testValidate() {
     $this->drupalGet('form-test/validate');
     // Verify that #element_validate handlers can alter the form and submitted
     // form values.
@@ -72,7 +72,7 @@ function testValidate() {
   /**
    * Tests that a form with a disabled CSRF token can be validated.
    */
-  function testDisabledToken() {
+  public function testDisabledToken() {
     $this->drupalPostForm('form-test/validate-no-token', [], 'Save');
     $this->assertText('The form_test_validate_no_token form has been submitted successfully.');
   }
@@ -80,7 +80,7 @@ function testDisabledToken() {
   /**
    * Tests partial form validation through #limit_validation_errors.
    */
-  function testValidateLimitErrors() {
+  public function testValidateLimitErrors() {
     $edit = array(
       'test' => 'invalid',
       'test_numeric_index[0]' => 'invalid',
@@ -141,7 +141,7 @@ function testValidateLimitErrors() {
   /**
    * Tests #pattern validation.
    */
-  function testPatternValidation() {
+  public function testPatternValidation() {
     $textfield_error = t('%name field is not in the right format.', array('%name' => 'One digit followed by lowercase letters'));
     $tel_error = t('%name field is not in the right format.', array('%name' => 'Everything except numbers'));
     $password_error = t('%name field is not in the right format.', array('%name' => 'Password'));
@@ -202,7 +202,7 @@ function testPatternValidation() {
    *
    * @see \Drupal\form_test\Form\FormTestValidateRequiredForm
    */
-  function testCustomRequiredError() {
+  public function testCustomRequiredError() {
     $form = \Drupal::formBuilder()->getForm('\Drupal\form_test\Form\FormTestValidateRequiredForm');
 
     // Verify that a custom #required error can be set.
diff --git a/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php b/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php
index 66989de..f5cbc9a 100644
--- a/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php
+++ b/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Test Image toolkit setup form.
    */
-  function testToolkitSetupForm() {
+  public function testToolkitSetupForm() {
     // Get form.
     $this->drupalGet('admin/config/media/image-toolkit');
 
diff --git a/core/modules/system/src/Tests/Image/ToolkitTest.php b/core/modules/system/src/Tests/Image/ToolkitTest.php
index 8848323..72e9762 100644
--- a/core/modules/system/src/Tests/Image/ToolkitTest.php
+++ b/core/modules/system/src/Tests/Image/ToolkitTest.php
@@ -12,7 +12,7 @@ class ToolkitTest extends ToolkitTestBase {
    * Check that ImageToolkitManager::getAvailableToolkits() only returns
    * available toolkits.
    */
-  function testGetAvailableToolkits() {
+  public function testGetAvailableToolkits() {
     $manager = $this->container->get('image.toolkit.manager');
     $toolkits = $manager->getAvailableToolkits();
     $this->assertTrue(isset($toolkits['test']), 'The working toolkit was returned.');
@@ -24,7 +24,7 @@ function testGetAvailableToolkits() {
   /**
    * Tests Image's methods.
    */
-  function testLoad() {
+  public function testLoad() {
     $image = $this->getImage();
     $this->assertTrue(is_object($image), 'Returned an object.');
     $this->assertEqual($image->getToolkitId(), 'test', 'Image had toolkit set.');
@@ -34,7 +34,7 @@ function testLoad() {
   /**
    * Test the image_save() function.
    */
-  function testSave() {
+  public function testSave() {
     $this->assertFalse($this->image->save(), 'Function returned the expected value.');
     $this->assertToolkitOperationsCalled(array('save'));
   }
@@ -42,7 +42,7 @@ function testSave() {
   /**
    * Test the image_apply() function.
    */
-  function testApply() {
+  public function testApply() {
     $data = array('p1' => 1, 'p2' => TRUE, 'p3' => 'text');
     $this->assertTrue($this->image->apply('my_operation', $data), 'Function returned the expected value.');
 
@@ -58,7 +58,7 @@ function testApply() {
   /**
    * Test the image_apply() function.
    */
-  function testApplyNoParameters() {
+  public function testApplyNoParameters() {
     $this->assertTrue($this->image->apply('my_operation'), 'Function returned the expected value.');
 
     // Check that apply was called and with the correct parameters.
diff --git a/core/modules/system/src/Tests/Image/ToolkitTestBase.php b/core/modules/system/src/Tests/Image/ToolkitTestBase.php
index 53ede0d..50b6f3f 100644
--- a/core/modules/system/src/Tests/Image/ToolkitTestBase.php
+++ b/core/modules/system/src/Tests/Image/ToolkitTestBase.php
@@ -75,7 +75,7 @@ protected function getImage() {
    *   Array with string containing with the operation name, e.g. 'load',
    *   'save', 'crop', etc.
    */
-  function assertToolkitOperationsCalled(array $expected) {
+  public function assertToolkitOperationsCalled(array $expected) {
     // If one of the image operations is expected, apply should be expected as
     // well.
     $operations = array(
@@ -120,7 +120,7 @@ function assertToolkitOperationsCalled(array $expected) {
   /**
    * Resets/initializes the history of calls to the test toolkit functions.
    */
-  function imageTestReset() {
+  public function imageTestReset() {
     // Keep track of calls to these operations
     $results = array(
       'parseFile' => array(),
@@ -147,7 +147,7 @@ function imageTestReset() {
    *   'resize', 'rotate', 'crop', 'desaturate') with values being arrays of
    *   parameters passed to each call.
    */
-  function imageTestGetAllCalls() {
+  public function imageTestGetAllCalls() {
     return \Drupal::state()->get('image_test.results') ?: array();
   }
 
diff --git a/core/modules/system/src/Tests/Installer/SiteNameTest.php b/core/modules/system/src/Tests/Installer/SiteNameTest.php
index ec4c0e1..081dfb1 100644
--- a/core/modules/system/src/Tests/Installer/SiteNameTest.php
+++ b/core/modules/system/src/Tests/Installer/SiteNameTest.php
@@ -31,7 +31,7 @@ protected function installParameters() {
   /**
    * Tests that the desired site name appears on the page after installation.
    */
-  function testSiteName() {
+  public function testSiteName() {
     $this->drupalGet('');
     $this->assertRaw($this->siteName, 'The site name that was set during the installation appears on the front page after installation.');
   }
diff --git a/core/modules/system/src/Tests/Menu/BreadcrumbTest.php b/core/modules/system/src/Tests/Menu/BreadcrumbTest.php
index f756300..1797ccd 100644
--- a/core/modules/system/src/Tests/Menu/BreadcrumbTest.php
+++ b/core/modules/system/src/Tests/Menu/BreadcrumbTest.php
@@ -58,7 +58,7 @@ protected function setUp() {
   /**
    * Tests breadcrumbs on node and administrative paths.
    */
-  function testBreadCrumbs() {
+  public function testBreadCrumbs() {
     // Prepare common base breadcrumb elements.
     $home = array('' => 'Home');
     $admin = $home + array('admin' => t('Administration'));
diff --git a/core/modules/system/src/Tests/Module/ClassLoaderTest.php b/core/modules/system/src/Tests/Module/ClassLoaderTest.php
index bc2dfd5..fdf1b12 100644
--- a/core/modules/system/src/Tests/Module/ClassLoaderTest.php
+++ b/core/modules/system/src/Tests/Module/ClassLoaderTest.php
@@ -21,7 +21,7 @@ class ClassLoaderTest extends WebTestBase {
    *
    * @see \Drupal\module_autoload_test\SomeClass
    */
-  function testClassLoading() {
+  public function testClassLoading() {
     // Enable the module_test and module_autoload_test modules.
     \Drupal::service('module_installer')->install(array('module_test', 'module_autoload_test'), FALSE);
     $this->resetAll();
@@ -38,7 +38,7 @@ function testClassLoading() {
    *
    * @see \Drupal\module_autoload_test\SomeClass
    */
-  function testClassLoadingNotInstalledModules() {
+  public function testClassLoadingNotInstalledModules() {
     // Enable the module_test module.
     \Drupal::service('module_installer')->install(array('module_test'), FALSE);
     $this->resetAll();
@@ -55,7 +55,7 @@ function testClassLoadingNotInstalledModules() {
    *
    * @see \Drupal\module_autoload_test\SomeClass
    */
-  function testClassLoadingDisabledModules() {
+  public function testClassLoadingDisabledModules() {
     // Enable the module_test and module_autoload_test modules.
     \Drupal::service('module_installer')->install(array('module_test', 'module_autoload_test'), FALSE);
     $this->resetAll();
diff --git a/core/modules/system/src/Tests/Module/DependencyTest.php b/core/modules/system/src/Tests/Module/DependencyTest.php
index 8b219b2..d6c1858 100644
--- a/core/modules/system/src/Tests/Module/DependencyTest.php
+++ b/core/modules/system/src/Tests/Module/DependencyTest.php
@@ -12,7 +12,7 @@ class DependencyTest extends ModuleTestBase {
   /**
    * Checks functionality of project namespaces for dependencies.
    */
-  function testProjectNamespaceForDependencies() {
+  public function testProjectNamespaceForDependencies() {
     $edit = array(
       'modules[Core][filter][enable]' => TRUE,
     );
@@ -28,7 +28,7 @@ function testProjectNamespaceForDependencies() {
   /**
    * Attempts to enable the Content Translation module without Language enabled.
    */
-  function testEnableWithoutDependency() {
+  public function testEnableWithoutDependency() {
     // Attempt to enable Content Translation without Language enabled.
     $edit = array();
     $edit['modules[Multilingual][content_translation][enable]'] = 'content_translation';
@@ -52,7 +52,7 @@ function testEnableWithoutDependency() {
   /**
    * Attempts to enable a module with a missing dependency.
    */
-  function testMissingModules() {
+  public function testMissingModules() {
     // Test that the system_dependencies_test module is marked
     // as missing a dependency.
     $this->drupalGet('admin/modules');
@@ -64,7 +64,7 @@ function testMissingModules() {
   /**
    * Tests enabling a module that depends on an incompatible version of a module.
    */
-  function testIncompatibleModuleVersionDependency() {
+  public function testIncompatibleModuleVersionDependency() {
     // Test that the system_incompatible_module_version_dependencies_test is
     // marked as having an incompatible dependency.
     $this->drupalGet('admin/modules');
@@ -79,7 +79,7 @@ function testIncompatibleModuleVersionDependency() {
   /**
    * Tests enabling a module that depends on a module with an incompatible core version.
    */
-  function testIncompatibleCoreVersionDependency() {
+  public function testIncompatibleCoreVersionDependency() {
     // Test that the system_incompatible_core_version_dependencies_test is
     // marked as having an incompatible dependency.
     $this->drupalGet('admin/modules');
@@ -93,7 +93,7 @@ function testIncompatibleCoreVersionDependency() {
   /**
    * Tests enabling a module that depends on a module which fails hook_requirements().
    */
-  function testEnableRequirementsFailureDependency() {
+  public function testEnableRequirementsFailureDependency() {
     \Drupal::service('module_installer')->install(array('comment'));
 
     $this->assertModules(array('requirements1_test'), FALSE);
@@ -120,7 +120,7 @@ function testEnableRequirementsFailureDependency() {
    *
    * Dependencies should be enabled before their dependents.
    */
-  function testModuleEnableOrder() {
+  public function testModuleEnableOrder() {
     \Drupal::service('module_installer')->install(array('module_test'), FALSE);
     $this->resetAll();
     $this->assertModules(array('module_test'), TRUE);
@@ -153,7 +153,7 @@ function testModuleEnableOrder() {
   /**
    * Tests attempting to uninstall a module that has installed dependents.
    */
-  function testUninstallDependents() {
+  public function testUninstallDependents() {
     // Enable the forum module.
     $edit = array('modules[Core][forum][enable]' => 'forum');
     $this->drupalPostForm('admin/modules', $edit, t('Install'));
diff --git a/core/modules/system/src/Tests/Module/HookRequirementsTest.php b/core/modules/system/src/Tests/Module/HookRequirementsTest.php
index ccbbff9..c25b66c 100644
--- a/core/modules/system/src/Tests/Module/HookRequirementsTest.php
+++ b/core/modules/system/src/Tests/Module/HookRequirementsTest.php
@@ -11,7 +11,7 @@ class HookRequirementsTest extends ModuleTestBase {
   /**
    * Assert that a module cannot be installed if it fails hook_requirements().
    */
-  function testHookRequirementsFailure() {
+  public function testHookRequirementsFailure() {
     $this->assertModules(array('requirements1_test'), FALSE);
 
     // Attempt to install the requirements1_test module.
diff --git a/core/modules/system/src/Tests/Module/ModuleTestBase.php b/core/modules/system/src/Tests/Module/ModuleTestBase.php
index e212617..a0d066a 100644
--- a/core/modules/system/src/Tests/Module/ModuleTestBase.php
+++ b/core/modules/system/src/Tests/Module/ModuleTestBase.php
@@ -38,7 +38,7 @@ protected function setUp() {
    *   (optional) Whether or not to assert that there are tables that match the
    *   specified base table. Defaults to TRUE.
    */
-  function assertTableCount($base_table, $count = TRUE) {
+  public function assertTableCount($base_table, $count = TRUE) {
     $tables = db_find_tables(Database::getConnection()->prefixTables('{' . $base_table . '}') . '%');
 
     if ($count) {
@@ -53,7 +53,7 @@ function assertTableCount($base_table, $count = TRUE) {
    * @param $module
    *   The name of the module.
    */
-  function assertModuleTablesExist($module) {
+  public function assertModuleTablesExist($module) {
     $tables = array_keys(drupal_get_module_schema($module));
     $tables_exist = TRUE;
     foreach ($tables as $table) {
@@ -70,7 +70,7 @@ function assertModuleTablesExist($module) {
    * @param $module
    *   The name of the module.
    */
-  function assertModuleTablesDoNotExist($module) {
+  public function assertModuleTablesDoNotExist($module) {
     $tables = array_keys(drupal_get_module_schema($module));
     $tables_exist = FALSE;
     foreach ($tables as $table) {
@@ -90,7 +90,7 @@ function assertModuleTablesDoNotExist($module) {
    * @return bool
    *   TRUE if configuration has been installed, FALSE otherwise.
    */
-  function assertModuleConfig($module) {
+  public function assertModuleConfig($module) {
     $module_config_dir = drupal_get_path('module', $module) . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
     if (!is_dir($module_config_dir)) {
       return;
@@ -132,7 +132,7 @@ function assertModuleConfig($module) {
    * @return bool
    *   TRUE if no configuration was found, FALSE otherwise.
    */
-  function assertNoModuleConfig($module) {
+  public function assertNoModuleConfig($module) {
     $names = \Drupal::configFactory()->listAll($module . '.');
     return $this->assertFalse($names, format_string('No configuration found for @module module.', array('@module' => $module)));
   }
@@ -145,7 +145,7 @@ function assertNoModuleConfig($module) {
    * @param $enabled
    *   Expected module state.
    */
-  function assertModules(array $modules, $enabled) {
+  public function assertModules(array $modules, $enabled) {
     $this->rebuildContainer();
     foreach ($modules as $module) {
       if ($enabled) {
@@ -178,7 +178,7 @@ function assertModules(array $modules, $enabled) {
    * @param $link
    *   A link to associate with the message.
    */
-  function assertLogMessage($type, $message, $variables = array(), $severity = RfcLogLevel::NOTICE, $link = '') {
+  public function assertLogMessage($type, $message, $variables = array(), $severity = RfcLogLevel::NOTICE, $link = '') {
     $count = db_select('watchdog', 'w')
       ->condition('type', $type)
       ->condition('message', $message)
diff --git a/core/modules/system/src/Tests/Module/RequiredTest.php b/core/modules/system/src/Tests/Module/RequiredTest.php
index 004854b..96d2742 100644
--- a/core/modules/system/src/Tests/Module/RequiredTest.php
+++ b/core/modules/system/src/Tests/Module/RequiredTest.php
@@ -11,7 +11,7 @@ class RequiredTest extends ModuleTestBase {
   /**
    * Assert that core required modules cannot be disabled.
    */
-  function testDisableRequired() {
+  public function testDisableRequired() {
     $module_info = system_get_info('module');
     $this->drupalGet('admin/modules');
     foreach ($module_info as $module => $info) {
diff --git a/core/modules/system/src/Tests/Module/UninstallTest.php b/core/modules/system/src/Tests/Module/UninstallTest.php
index 9cecf8f..b719149 100644
--- a/core/modules/system/src/Tests/Module/UninstallTest.php
+++ b/core/modules/system/src/Tests/Module/UninstallTest.php
@@ -26,7 +26,7 @@ class UninstallTest extends WebTestBase {
   /**
    * Tests the hook_modules_uninstalled() of the user module.
    */
-  function testUserPermsUninstalled() {
+  public function testUserPermsUninstalled() {
     // Uninstalls the module_test module, so hook_modules_uninstalled()
     // is executed.
     $this->container->get('module_installer')->uninstall(array('module_test'));
@@ -38,7 +38,7 @@ function testUserPermsUninstalled() {
   /**
    * Tests the Uninstall page and Uninstall confirmation page.
    */
-  function testUninstallPage() {
+  public function testUninstallPage() {
     $account = $this->drupalCreateUser(array('administer modules'));
     $this->drupalLogin($account);
 
diff --git a/core/modules/system/src/Tests/Module/VersionTest.php b/core/modules/system/src/Tests/Module/VersionTest.php
index 031d4ba..e5c8a91 100644
--- a/core/modules/system/src/Tests/Module/VersionTest.php
+++ b/core/modules/system/src/Tests/Module/VersionTest.php
@@ -12,7 +12,7 @@ class VersionTest extends ModuleTestBase {
   /**
    * Test version dependencies.
    */
-  function testModuleVersions() {
+  public function testModuleVersions() {
     $dependencies = array(
       // Alternating between being compatible and incompatible with 8.x-2.4-beta3.
       // The first is always a compatible.
diff --git a/core/modules/system/src/Tests/Pager/PagerTest.php b/core/modules/system/src/Tests/Pager/PagerTest.php
index 4c13c0f..2c305fe 100644
--- a/core/modules/system/src/Tests/Pager/PagerTest.php
+++ b/core/modules/system/src/Tests/Pager/PagerTest.php
@@ -45,7 +45,7 @@ protected function setUp() {
   /**
    * Tests markup and CSS classes of pager links.
    */
-  function testActiveClass() {
+  public function testActiveClass() {
     // Verify first page.
     $this->drupalGet('admin/reports/dblog');
     $current_page = 0;
diff --git a/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php b/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
index c4143fd..eafab00 100644
--- a/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
+++ b/core/modules/system/src/Tests/Path/UrlAlterFunctionalTest.php
@@ -24,7 +24,7 @@ class UrlAlterFunctionalTest extends WebTestBase {
   /**
    * Test that URL altering works and that it occurs in the correct order.
    */
-  function testUrlAlter() {
+  public function testUrlAlter() {
     // Ensure that the url_alias table exists after Drupal installation.
     $this->assertTrue(Database::getConnection()->schema()->tableExists('url_alias'), 'The url_alias table exists after Drupal installation.');
 
diff --git a/core/modules/system/src/Tests/Render/DisplayVariantTest.php b/core/modules/system/src/Tests/Render/DisplayVariantTest.php
index 09f54d9..6e8ea72 100644
--- a/core/modules/system/src/Tests/Render/DisplayVariantTest.php
+++ b/core/modules/system/src/Tests/Render/DisplayVariantTest.php
@@ -21,7 +21,7 @@ class DisplayVariantTest extends WebTestBase {
   /**
    * Tests selecting the variant and passing configuration.
    */
-  function testPageDisplayVariantSelectionEvent() {
+  public function testPageDisplayVariantSelectionEvent() {
     // Tests that our display variant was selected, and that its configuration
     // was passed correctly. If the configuration wasn't passed, we'd get an
     // error page here.
diff --git a/core/modules/system/src/Tests/Session/SessionTest.php b/core/modules/system/src/Tests/Session/SessionTest.php
index 139fba5..95f065a 100644
--- a/core/modules/system/src/Tests/Session/SessionTest.php
+++ b/core/modules/system/src/Tests/Session/SessionTest.php
@@ -24,7 +24,7 @@ class SessionTest extends WebTestBase {
    * Tests for \Drupal\Core\Session\WriteSafeSessionHandler::setSessionWritable()
    * ::isSessionWritable and \Drupal\Core\Session\SessionManager::regenerate().
    */
-  function testSessionSaveRegenerate() {
+  public function testSessionSaveRegenerate() {
     $session_handler = $this->container->get('session_handler.write_safe');
     $this->assertTrue($session_handler->isSessionWritable(), 'session_handler->isSessionWritable() initially returns TRUE.');
     $session_handler->setSessionWritable(FALSE);
@@ -74,7 +74,7 @@ function testSessionSaveRegenerate() {
   /**
    * Test data persistence via the session_test module callbacks.
    */
-  function testDataPersistence() {
+  public function testDataPersistence() {
     $user = $this->drupalCreateUser(array());
     // Enable sessions.
     $this->sessionReset($user->id());
@@ -147,7 +147,7 @@ public function testSessionPersistenceOnLogin() {
   /**
    * Test that empty anonymous sessions are destroyed.
    */
-  function testEmptyAnonymousSession() {
+  public function testEmptyAnonymousSession() {
     // Disable the dynamic_page_cache module; it'd cause session_test's debug
     // output (that is added in
     // SessionTestSubscriber::onKernelResponseSessionTest()) to not be added.
@@ -210,7 +210,7 @@ function testEmptyAnonymousSession() {
   /**
    * Test that sessions are only saved when necessary.
    */
-  function testSessionWrite() {
+  public function testSessionWrite() {
     $user = $this->drupalCreateUser(array());
     $this->drupalLogin($user);
 
@@ -258,7 +258,7 @@ function testSessionWrite() {
   /**
    * Test that empty session IDs are not allowed.
    */
-  function testEmptySessionID() {
+  public function testEmptySessionID() {
     $user = $this->drupalCreateUser(array());
     $this->drupalLogin($user);
     $this->drupalGet('session-test/is-logged-in');
@@ -284,7 +284,7 @@ function testEmptySessionID() {
    *
    * @param $uid User id to set as the active session.
    */
-  function sessionReset($uid = 0) {
+  public function sessionReset($uid = 0) {
     // Close the internal browser.
     $this->curlClose();
     $this->loggedInUser = FALSE;
@@ -300,7 +300,7 @@ function sessionReset($uid = 0) {
   /**
    * Assert whether the SimpleTest browser sent a session cookie.
    */
-  function assertSessionCookie($sent) {
+  public function assertSessionCookie($sent) {
     if ($sent) {
       $this->assertNotNull($this->sessionId, 'Session cookie was sent.');
     }
@@ -312,7 +312,7 @@ function assertSessionCookie($sent) {
   /**
    * Assert whether $_SESSION is empty at the beginning of the request.
    */
-  function assertSessionEmpty($empty) {
+  public function assertSessionEmpty($empty) {
     if ($empty) {
       $this->assertIdentical($this->drupalGetHeader('X-Session-Empty'), '1', 'Session was empty.');
     }
diff --git a/core/modules/system/src/Tests/System/AccessDeniedTest.php b/core/modules/system/src/Tests/System/AccessDeniedTest.php
index e7f17d7..167122d 100644
--- a/core/modules/system/src/Tests/System/AccessDeniedTest.php
+++ b/core/modules/system/src/Tests/System/AccessDeniedTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
     user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access user profiles'));
   }
 
-  function testAccessDenied() {
+  public function testAccessDenied() {
     $this->drupalGet('admin');
     $this->assertText(t('Access denied'), 'Found the default 403 page');
     $this->assertResponse(403);
diff --git a/core/modules/system/src/Tests/System/AdminTest.php b/core/modules/system/src/Tests/System/AdminTest.php
index 8921ad0..f562b0f 100644
--- a/core/modules/system/src/Tests/System/AdminTest.php
+++ b/core/modules/system/src/Tests/System/AdminTest.php
@@ -51,7 +51,7 @@ protected function setUp() {
   /**
    * Tests output on administrative listing pages.
    */
-  function testAdminPages() {
+  public function testAdminPages() {
     // Go to Administration.
     $this->drupalGet('admin');
 
@@ -143,7 +143,7 @@ protected function getTopLevelMenuLinks() {
   /**
    * Test compact mode.
    */
-  function testCompactMode() {
+  public function testCompactMode() {
     // The front page defaults to 'user/login', which redirects to 'user/{user}'
     // for authenticated users. We cannot use '<front>', since this does not
     // match the redirected url.
diff --git a/core/modules/system/src/Tests/System/CronRunTest.php b/core/modules/system/src/Tests/System/CronRunTest.php
index ec35b72..87ca88a 100644
--- a/core/modules/system/src/Tests/System/CronRunTest.php
+++ b/core/modules/system/src/Tests/System/CronRunTest.php
@@ -21,7 +21,7 @@ class CronRunTest extends WebTestBase {
   /**
    * Test cron runs.
    */
-  function testCronRun() {
+  public function testCronRun() {
     // Run cron anonymously without any cron key.
     $this->drupalGet('cron');
     $this->assertResponse(404);
@@ -43,7 +43,7 @@ function testCronRun() {
    * In these tests we do not use REQUEST_TIME to track start time, because we
    * need the exact time when cron is triggered.
    */
-  function testAutomatedCron() {
+  public function testAutomatedCron() {
     // Test with a logged in user; anonymous users likely don't cause Drupal to
     // fully bootstrap, because of the internal page cache or an external
     // reverse proxy. Reuse this user for disabling cron later in the test.
@@ -83,7 +83,7 @@ function testAutomatedCron() {
   /**
    * Make sure exceptions thrown on hook_cron() don't affect other modules.
    */
-  function testCronExceptions() {
+  public function testCronExceptions() {
     \Drupal::state()->delete('common_test.cron');
     // The common_test module throws an exception. If it isn't caught, the tests
     // won't finish successfully.
@@ -96,7 +96,7 @@ function testCronExceptions() {
   /**
    * Make sure the cron UI reads from the state storage.
    */
-  function testCronUI() {
+  public function testCronUI() {
     $admin_user = $this->drupalCreateUser(array('administer site configuration'));
     $this->drupalLogin($admin_user);
     $this->drupalGet('admin/config/system/cron');
diff --git a/core/modules/system/src/Tests/System/DateTimeTest.php b/core/modules/system/src/Tests/System/DateTimeTest.php
index 9ca050f..9007b3f 100644
--- a/core/modules/system/src/Tests/System/DateTimeTest.php
+++ b/core/modules/system/src/Tests/System/DateTimeTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Test time zones and DST handling.
    */
-  function testTimeZoneHandling() {
+  public function testTimeZoneHandling() {
     // Setup date/time settings for Honolulu time.
     $config = $this->config('system.date')
       ->set('timezone.default', 'Pacific/Honolulu')
@@ -76,7 +76,7 @@ function testTimeZoneHandling() {
   /**
    * Test date format configuration.
    */
-  function testDateFormatConfiguration() {
+  public function testDateFormatConfiguration() {
     // Confirm 'no custom date formats available' message appears.
     $this->drupalGet('admin/config/regional/date-time');
 
@@ -167,7 +167,7 @@ function testDateFormatConfiguration() {
   /**
    * Test handling case with invalid data in selectors (like February, 31st).
    */
-  function testEnteringDateTimeViaSelectors() {
+  public function testEnteringDateTimeViaSelectors() {
 
     $this->drupalCreateContentType(array('type' => 'page_with_date', 'name' => 'Page with date'));
 
diff --git a/core/modules/system/src/Tests/System/ErrorHandlerTest.php b/core/modules/system/src/Tests/System/ErrorHandlerTest.php
index 113d495..3e116d0 100644
--- a/core/modules/system/src/Tests/System/ErrorHandlerTest.php
+++ b/core/modules/system/src/Tests/System/ErrorHandlerTest.php
@@ -22,7 +22,7 @@ class ErrorHandlerTest extends WebTestBase {
   /**
    * Test the error handler.
    */
-  function testErrorHandler() {
+  public function testErrorHandler() {
     $config = $this->config('system.logging');
     $error_notice = array(
       '%type' => 'Notice',
@@ -121,7 +121,7 @@ function testErrorHandler() {
   /**
    * Test the exception handler.
    */
-  function testExceptionHandler() {
+  public function testExceptionHandler() {
     // Ensure the test error log is empty before these tests.
     $this->assertNoErrorsLogged();
 
@@ -183,7 +183,7 @@ function testExceptionHandler() {
   /**
    * Helper function: assert that the error message is found.
    */
-  function assertErrorMessage(array $error) {
+  public function assertErrorMessage(array $error) {
     $message = new FormattableMarkup('%type: @message in %function (line ', $error);
     $this->assertRaw($message, format_string('Found error message: @message.', array('@message' => $message)));
   }
@@ -191,7 +191,7 @@ function assertErrorMessage(array $error) {
   /**
    * Helper function: assert that the error message is not found.
    */
-  function assertNoErrorMessage(array $error) {
+  public function assertNoErrorMessage(array $error) {
     $message = new FormattableMarkup('%type: @message in %function (line ', $error);
     $this->assertNoRaw($message, format_string('Did not find error message: @message.', array('@message' => $message)));
   }
diff --git a/core/modules/system/src/Tests/System/IndexPhpTest.php b/core/modules/system/src/Tests/System/IndexPhpTest.php
index 72811a8..9bf8efd 100644
--- a/core/modules/system/src/Tests/System/IndexPhpTest.php
+++ b/core/modules/system/src/Tests/System/IndexPhpTest.php
@@ -17,7 +17,7 @@ protected function setUp() {
   /**
    * Test index.php handling.
    */
-  function testIndexPhpHandling() {
+  public function testIndexPhpHandling() {
     $index_php = $GLOBALS['base_url'] . '/index.php';
 
     $this->drupalGet($index_php, array('external' => TRUE));
diff --git a/core/modules/system/src/Tests/System/MainContentFallbackTest.php b/core/modules/system/src/Tests/System/MainContentFallbackTest.php
index 551e4c7..107ff26 100644
--- a/core/modules/system/src/Tests/System/MainContentFallbackTest.php
+++ b/core/modules/system/src/Tests/System/MainContentFallbackTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Test availability of main content: Drupal falls back to SimplePageVariant.
    */
-  function testMainContentFallback() {
+  public function testMainContentFallback() {
     $edit = array();
     // Uninstall the block module.
     $edit['uninstall[block]'] = 'block';
diff --git a/core/modules/system/src/Tests/System/PageNotFoundTest.php b/core/modules/system/src/Tests/System/PageNotFoundTest.php
index f289f0e..38adfe7 100644
--- a/core/modules/system/src/Tests/System/PageNotFoundTest.php
+++ b/core/modules/system/src/Tests/System/PageNotFoundTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
     user_role_grant_permissions(RoleInterface::AUTHENTICATED_ID, array('access user profiles'));
   }
 
-  function testPageNotFound() {
+  public function testPageNotFound() {
     $this->drupalLogin($this->adminUser);
     $this->drupalGet($this->randomMachineName(10));
     $this->assertText(t('Page not found'), 'Found the default 404 page');
diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php
index 848eacc..2c8574f 100644
--- a/core/modules/system/src/Tests/System/PageTitleTest.php
+++ b/core/modules/system/src/Tests/System/PageTitleTest.php
@@ -40,7 +40,7 @@ protected function setUp() {
   /**
    * Tests the handling of HTML in node titles.
    */
-  function testTitleTags() {
+  public function testTitleTags() {
     $title = "string with <em>HTML</em>";
     // Generate node content.
     $edit = array(
@@ -60,7 +60,7 @@ function testTitleTags() {
   /**
    * Test if the title of the site is XSS proof.
    */
-  function testTitleXSS() {
+  public function testTitleXSS() {
     // Set some title with JavaScript and HTML chars to escape.
     $title = '</title><script type="text/javascript">alert("Title XSS!");</script> & < > " \' ';
     $title_filtered = Html::escape($title);
diff --git a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
index f54c651..d2ae5fa 100644
--- a/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
+++ b/core/modules/system/src/Tests/System/ResponseGeneratorTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
   /**
    * Test to see if generator header is added.
    */
-  function testGeneratorHeaderAdded() {
+  public function testGeneratorHeaderAdded() {
 
     $node = $this->drupalCreateNode();
 
diff --git a/core/modules/system/src/Tests/System/RetrieveFileTest.php b/core/modules/system/src/Tests/System/RetrieveFileTest.php
index 8f6fe4a..f7974b3 100644
--- a/core/modules/system/src/Tests/System/RetrieveFileTest.php
+++ b/core/modules/system/src/Tests/System/RetrieveFileTest.php
@@ -13,7 +13,7 @@ class RetrieveFileTest extends WebTestBase {
   /**
    * Invokes system_retrieve_file() in several scenarios.
    */
-  function testFileRetrieving() {
+  public function testFileRetrieving() {
     // Test 404 handling by trying to fetch a randomly named file.
     drupal_mkdir($sourcedir = 'public://' . $this->randomMachineName());
     $filename = 'Файл для тестирования ' . $this->randomMachineName();
diff --git a/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php b/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
index 99839ab..9c2081d 100644
--- a/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
+++ b/core/modules/system/src/Tests/System/ShutdownFunctionsTest.php
@@ -29,7 +29,7 @@ protected function tearDown() {
   /**
    * Test shutdown functions.
    */
-  function testShutdownFunctions() {
+  public function testShutdownFunctions() {
     $arg1 = $this->randomMachineName();
     $arg2 = $this->randomMachineName();
     $this->drupalGet('system-test/shutdown-functions/' . $arg1 . '/' . $arg2);
diff --git a/core/modules/system/src/Tests/System/SystemAuthorizeTest.php b/core/modules/system/src/Tests/System/SystemAuthorizeTest.php
index 5e278d7..c437625 100644
--- a/core/modules/system/src/Tests/System/SystemAuthorizeTest.php
+++ b/core/modules/system/src/Tests/System/SystemAuthorizeTest.php
@@ -36,14 +36,14 @@ protected function setUp() {
    *
    * @see system_authorized_init()
    */
-  function drupalGetAuthorizePHP($page_title = 'system-test-auth') {
+  public function drupalGetAuthorizePHP($page_title = 'system-test-auth') {
     $this->drupalGet('system-test/authorize-init/' . $page_title);
   }
 
   /**
    * Tests the FileTransfer hooks
    */
-  function testFileTransferHooks() {
+  public function testFileTransferHooks() {
     $page_title = $this->randomMachineName(16);
     $this->drupalGetAuthorizePHP($page_title);
     $this->assertTitle(strtr('@title | Drupal', array('@title' => $page_title)), 'authorize.php page title is correct.');
diff --git a/core/modules/system/src/Tests/System/ThemeTest.php b/core/modules/system/src/Tests/System/ThemeTest.php
index 667c97a..bfac222 100644
--- a/core/modules/system/src/Tests/System/ThemeTest.php
+++ b/core/modules/system/src/Tests/System/ThemeTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
   /**
    * Test the theme settings form.
    */
-  function testThemeSettings() {
+  public function testThemeSettings() {
     // Ensure invalid theme settings form URLs return a proper 404.
     $this->drupalGet('admin/appearance/settings/bartik');
     $this->assertResponse(404, 'The theme settings form URL for a uninstalled theme could not be found.');
@@ -218,7 +218,7 @@ function testThemeSettings() {
   /**
    * Test the theme settings logo form.
    */
-  function testThemeSettingsLogo() {
+  public function testThemeSettingsLogo() {
     // Visit Bartik's theme settings page to replace the logo.
     $this->container->get('theme_handler')->install(['bartik']);
     $this->drupalGet('admin/appearance/settings/bartik');
@@ -241,7 +241,7 @@ function testThemeSettingsLogo() {
   /**
    * Test the administration theme functionality.
    */
-  function testAdministrationTheme() {
+  public function testAdministrationTheme() {
     $this->container->get('theme_handler')->install(array('seven'));
 
     // Install an administration theme and show it on the node admin pages.
@@ -300,7 +300,7 @@ function testAdministrationTheme() {
   /**
    * Test switching the default theme.
    */
-  function testSwitchDefaultTheme() {
+  public function testSwitchDefaultTheme() {
     /** @var \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler */
     $theme_handler = \Drupal::service('theme_handler');
     // First, install Stark and set it as the default theme programmatically.
@@ -330,7 +330,7 @@ function testSwitchDefaultTheme() {
    * Include test for themes that have a missing base theme somewhere further up
    * the chain than the immediate base theme.
    */
-  function testInvalidTheme() {
+  public function testInvalidTheme() {
     // theme_page_test_system_info_alter() un-hides all hidden themes.
     $this->container->get('module_installer')->install(array('theme_page_test'));
     // Clear the system_list() and theme listing cache to pick up the change.
@@ -348,7 +348,7 @@ function testInvalidTheme() {
   /**
    * Test uninstalling of themes works.
    */
-  function testUninstallingThemes() {
+  public function testUninstallingThemes() {
     // Install Bartik and set it as the default theme.
     \Drupal::service('theme_handler')->install(array('bartik'));
     // Set up seven as the admin theme.
@@ -408,7 +408,7 @@ function testUninstallingThemes() {
   /**
    * Tests installing a theme and setting it as default.
    */
-  function testInstallAndSetAsDefault() {
+  public function testInstallAndSetAsDefault() {
     $this->drupalGet('admin/appearance');
     // Bartik is uninstalled in the test profile and has the third "Install and
     // set as default" link.
diff --git a/core/modules/system/src/Tests/Theme/EngineNyanCatTest.php b/core/modules/system/src/Tests/Theme/EngineNyanCatTest.php
index 0eb43b7..e0fde83 100644
--- a/core/modules/system/src/Tests/Theme/EngineNyanCatTest.php
+++ b/core/modules/system/src/Tests/Theme/EngineNyanCatTest.php
@@ -26,7 +26,7 @@ protected function setUp() {
   /**
    * Ensures a theme's template is overridable based on the 'template' filename.
    */
-  function testTemplateOverride() {
+  public function testTemplateOverride() {
     $this->config('system.theme')
       ->set('default', 'test_theme_nyan_cat_engine')
       ->save();
diff --git a/core/modules/system/src/Tests/Theme/EngineTwigTest.php b/core/modules/system/src/Tests/Theme/EngineTwigTest.php
index a79c01d..30e7087 100644
--- a/core/modules/system/src/Tests/Theme/EngineTwigTest.php
+++ b/core/modules/system/src/Tests/Theme/EngineTwigTest.php
@@ -28,7 +28,7 @@ protected function setUp() {
   /**
    * Tests that the Twig engine handles PHP data correctly.
    */
-  function testTwigVariableDataTypes() {
+  public function testTwigVariableDataTypes() {
     $this->config('system.theme')
       ->set('default', 'test_theme')
       ->save();
diff --git a/core/modules/system/src/Tests/Theme/EntityFilteringThemeTest.php b/core/modules/system/src/Tests/Theme/EntityFilteringThemeTest.php
index cc4af2a..214a88e 100644
--- a/core/modules/system/src/Tests/Theme/EntityFilteringThemeTest.php
+++ b/core/modules/system/src/Tests/Theme/EntityFilteringThemeTest.php
@@ -121,7 +121,7 @@ protected function setUp() {
   /**
    * Checks each themed entity for XSS filtering in available themes.
    */
-  function testThemedEntity() {
+  public function testThemedEntity() {
     // Check paths where various view modes of the entities are rendered.
     $paths = array(
       'user',
diff --git a/core/modules/system/src/Tests/Theme/FastTest.php b/core/modules/system/src/Tests/Theme/FastTest.php
index a05666f..851d628 100644
--- a/core/modules/system/src/Tests/Theme/FastTest.php
+++ b/core/modules/system/src/Tests/Theme/FastTest.php
@@ -26,7 +26,7 @@ protected function setUp() {
   /**
    * Tests access to user autocompletion and verify the correct results.
    */
-  function testUserAutocomplete() {
+  public function testUserAutocomplete() {
     $this->drupalLogin($this->account);
     $this->drupalGet('user/autocomplete', array('query' => array('q' => $this->account->getUsername())));
     $this->assertRaw($this->account->getUsername());
diff --git a/core/modules/system/src/Tests/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index fa5a2ac..82ebd5f 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -26,7 +26,7 @@ class FunctionsTest extends WebTestBase {
   /**
    * Tests item-list.html.twig.
    */
-  function testItemList() {
+  public function testItemList() {
     // Verify that empty items produce no output.
     $variables = array();
     $expected = '';
@@ -166,7 +166,7 @@ function testItemList() {
   /**
    * Tests links.html.twig.
    */
-  function testLinks() {
+  public function testLinks() {
     // Turn off the query for the
     // \Drupal\Core\Utility\LinkGeneratorInterface::generate() method to compare
     // the active link correctly.
@@ -287,7 +287,7 @@ function testLinks() {
   /**
    * Tests links.html.twig using links with indexed keys.
    */
-  function testIndexedKeyedLinks() {
+  public function testIndexedKeyedLinks() {
     // Turn off the query for the
     // \Drupal\Core\Utility\LinkGeneratorInterface::generate() method to compare
     // the active link correctly.
@@ -408,7 +408,7 @@ function testIndexedKeyedLinks() {
   /**
    * Test the use of drupal_pre_render_links() on a nested array of links.
    */
-  function testDrupalPreRenderLinks() {
+  public function testDrupalPreRenderLinks() {
     // Define the base array to be rendered, containing a variety of different
     // kinds of links.
     $base_array = array(
@@ -506,7 +506,7 @@ function testDrupalPreRenderLinks() {
   /**
    * Tests theme_image().
    */
-  function testImage() {
+  public function testImage() {
     // Test that data URIs work with theme_image().
     $variables = array();
     $variables['uri'] = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==';
diff --git a/core/modules/system/src/Tests/Theme/HtmlAttributesTest.php b/core/modules/system/src/Tests/Theme/HtmlAttributesTest.php
index f103caa..8b3e9f0 100644
--- a/core/modules/system/src/Tests/Theme/HtmlAttributesTest.php
+++ b/core/modules/system/src/Tests/Theme/HtmlAttributesTest.php
@@ -21,7 +21,7 @@ class HtmlAttributesTest extends WebTestBase {
   /**
    * Tests that attributes in the 'html' and 'body' elements can be altered.
    */
-  function testThemeHtmlAttributes() {
+  public function testThemeHtmlAttributes() {
     $this->drupalGet('');
     $attributes = $this->xpath('/html[@theme_test_html_attribute="theme test html attribute value"]');
     $this->assertTrue(count($attributes) == 1, "Attribute set in the 'html' element via hook_preprocess_HOOK() found.");
diff --git a/core/modules/system/src/Tests/Theme/ThemeEarlyInitializationTest.php b/core/modules/system/src/Tests/Theme/ThemeEarlyInitializationTest.php
index ddbb770..f7e8d8c 100644
--- a/core/modules/system/src/Tests/Theme/ThemeEarlyInitializationTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeEarlyInitializationTest.php
@@ -22,7 +22,7 @@ class ThemeEarlyInitializationTest extends WebTestBase {
   /**
    * Test that the theme system can generate output in a request listener.
    */
-  function testRequestListener() {
+  public function testRequestListener() {
     $this->drupalGet('theme-test/request-listener');
     // Verify that themed output generated in the request listener appears.
     $this->assertRaw('Themed output generated in a KernelEvents::REQUEST listener');
diff --git a/core/modules/system/src/Tests/Theme/ThemeInfoTest.php b/core/modules/system/src/Tests/Theme/ThemeInfoTest.php
index 0763917..e005805 100644
--- a/core/modules/system/src/Tests/Theme/ThemeInfoTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeInfoTest.php
@@ -53,7 +53,7 @@ protected function setUp() {
   /**
    * Tests stylesheets-remove.
    */
-  function testStylesheets() {
+  public function testStylesheets() {
     $this->themeHandler->install(array('test_basetheme', 'test_subtheme'));
     $this->config('system.theme')
       ->set('default', 'test_subtheme')
diff --git a/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php b/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
index 75e52c9..348be07 100644
--- a/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeSuggestionsAlterTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Tests that hooks to provide theme suggestions work.
    */
-  function testTemplateSuggestions() {
+  public function testTemplateSuggestions() {
     $this->drupalGet('theme-test/suggestion-provided');
     $this->assertText('Template for testing suggestions provided by the module declaring the theme hook.');
 
@@ -44,7 +44,7 @@ function testTemplateSuggestions() {
   /**
    * Tests hook_theme_suggestions_alter().
    */
-  function testGeneralSuggestionsAlter() {
+  public function testGeneralSuggestionsAlter() {
     $this->drupalGet('theme-test/general-suggestion-alter');
     $this->assertText('Original template for testing hook_theme_suggestions_alter().');
 
@@ -66,7 +66,7 @@ function testGeneralSuggestionsAlter() {
   /**
    * Tests that theme suggestion alter hooks work for templates.
    */
-  function testTemplateSuggestionsAlter() {
+  public function testTemplateSuggestionsAlter() {
     $this->drupalGet('theme-test/suggestion-alter');
     $this->assertText('Original template for testing hook_theme_suggestions_HOOK_alter().');
 
@@ -88,7 +88,7 @@ function testTemplateSuggestionsAlter() {
   /**
    * Tests that theme suggestion alter hooks work for specific theme calls.
    */
-  function testSpecificSuggestionsAlter() {
+  public function testSpecificSuggestionsAlter() {
     // Test that the default template is rendered.
     $this->drupalGet('theme-test/specific-suggestion-alter');
     $this->assertText('Template for testing specific theme calls.');
@@ -113,7 +113,7 @@ function testSpecificSuggestionsAlter() {
   /**
    * Tests that theme suggestion alter hooks work for theme functions.
    */
-  function testThemeFunctionSuggestionsAlter() {
+  public function testThemeFunctionSuggestionsAlter() {
     $this->drupalGet('theme-test/function-suggestion-alter');
     $this->assertText('Original theme function.');
 
@@ -157,7 +157,7 @@ public function testSuggestionsAlterInclude() {
    * hook_theme_suggestions_alter() should fire before
    * hook_theme_suggestions_HOOK_alter() within an extension (module or theme).
    */
-  function testExecutionOrder() {
+  public function testExecutionOrder() {
     // Install our test theme and module.
     $this->config('system.theme')
       ->set('default', 'test_theme')
diff --git a/core/modules/system/src/Tests/Theme/ThemeTest.php b/core/modules/system/src/Tests/Theme/ThemeTest.php
index afced8e..b5ba066 100644
--- a/core/modules/system/src/Tests/Theme/ThemeTest.php
+++ b/core/modules/system/src/Tests/Theme/ThemeTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
    *   - the render element's #attributes
    *   - any attributes set in the template's preprocessing function
    */
-  function testAttributeMerging() {
+  public function testAttributeMerging() {
     $theme_test_render_element = array(
       'elements' => array(
         '#attributes' => array('data-foo' => 'bar'),
@@ -54,7 +54,7 @@ function testAttributeMerging() {
   /**
    * Test that ThemeManager renders the expected data types.
    */
-  function testThemeDataTypes() {
+  public function testThemeDataTypes() {
     // theme_test_false is an implemented theme hook so \Drupal::theme() service
     // should return a string or an object that implements MarkupInterface,
     // even though the theme function itself can return anything.
@@ -79,7 +79,7 @@ function testThemeDataTypes() {
   /**
    * Test function theme_get_suggestions() for SA-CORE-2009-003.
    */
-  function testThemeSuggestions() {
+  public function testThemeSuggestions() {
     // Set the front page as something random otherwise the CLI
     // test runner fails.
     $this->config('system.site')->set('page.front', '/nobody-home')->save();
@@ -110,7 +110,7 @@ function testThemeSuggestions() {
    * separate file, so this test also ensures that that file is correctly loaded
    * when needed.
    */
-  function testPreprocessForSuggestions() {
+  public function testPreprocessForSuggestions() {
     // Test with both an unprimed and primed theme registry.
     drupal_theme_rebuild();
     for ($i = 0; $i < 2; $i++) {
@@ -142,7 +142,7 @@ public function testThemeOnNonHtmlRequest() {
   /**
    * Ensure page-front template suggestion is added when on front page.
    */
-  function testFrontPageThemeSuggestion() {
+  public function testFrontPageThemeSuggestion() {
     // Set the current route to user.login because theme_get_suggestions() will
     // query it to see if we are on the front page.
     $request = Request::create('/user/login');
@@ -161,7 +161,7 @@ function testFrontPageThemeSuggestion() {
    *
    * @see test_theme.info.yml
    */
-  function testCSSOverride() {
+  public function testCSSOverride() {
     // Reuse the same page as in testPreprocessForSuggestions(). We're testing
     // what is output to the HTML HEAD based on what is in a theme's .info.yml
     // file, so it doesn't matter what page we get, as long as it is themed with
@@ -186,7 +186,7 @@ function testCSSOverride() {
   /**
    * Ensures a themes template is overridable based on the 'template' filename.
    */
-  function testTemplateOverride() {
+  public function testTemplateOverride() {
     $this->config('system.theme')
       ->set('default', 'test_theme')
       ->save();
@@ -197,7 +197,7 @@ function testTemplateOverride() {
   /**
    * Ensures a theme template can override a theme function.
    */
-  function testFunctionOverride() {
+  public function testFunctionOverride() {
     $this->drupalGet('theme-test/function-template-overridden');
     $this->assertText('Success: Template overrides theme function.', 'Theme function overridden by test_theme template.');
   }
@@ -205,7 +205,7 @@ function testFunctionOverride() {
   /**
    * Test the listInfo() function.
    */
-  function testListThemes() {
+  public function testListThemes() {
     $theme_handler = $this->container->get('theme_handler');
     $theme_handler->install(array('test_subtheme'));
     $themes = $theme_handler->listInfo();
@@ -230,7 +230,7 @@ function testListThemes() {
   /**
    * Tests child element rendering for 'render element' theme hooks.
    */
-  function testDrupalRenderChildren() {
+  public function testDrupalRenderChildren() {
     $element = array(
       '#theme' => 'theme_test_render_element_children',
       'child' => array(
@@ -251,7 +251,7 @@ function testDrupalRenderChildren() {
   /**
    * Tests theme can provide classes.
    */
-  function testClassLoading() {
+  public function testClassLoading() {
     new ThemeClass();
   }
 
@@ -270,7 +270,7 @@ public function testFindThemeTemplates() {
    * Some modules check the page array in template_preprocess_html(), so we
    * ensure that it has not been rendered prematurely.
    */
-  function testPreprocessHtml() {
+  public function testPreprocessHtml() {
     $this->drupalGet('');
     $attributes = $this->xpath('/html/body[@theme_test_page_variable="Page variable is an array."]');
     $this->assertTrue(count($attributes) == 1, 'In template_preprocess_html(), the page variable is still an array (not rendered yet).');
diff --git a/core/modules/system/src/Tests/Theme/TwigDebugMarkupTest.php b/core/modules/system/src/Tests/Theme/TwigDebugMarkupTest.php
index df3c26c..ffb83fd 100644
--- a/core/modules/system/src/Tests/Theme/TwigDebugMarkupTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigDebugMarkupTest.php
@@ -21,7 +21,7 @@ class TwigDebugMarkupTest extends WebTestBase {
   /**
    * Tests debug markup added to Twig template output.
    */
-  function testTwigDebugMarkup() {
+  public function testTwigDebugMarkup() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
     $extension = twig_extension();
diff --git a/core/modules/system/src/Tests/Theme/TwigExtensionTest.php b/core/modules/system/src/Tests/Theme/TwigExtensionTest.php
index 4be1f73..38156f9 100644
--- a/core/modules/system/src/Tests/Theme/TwigExtensionTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigExtensionTest.php
@@ -26,7 +26,7 @@ protected function setUp() {
   /**
    * Tests that the provided Twig extension loads the service appropriately.
    */
-  function testTwigExtensionLoaded() {
+  public function testTwigExtensionLoaded() {
     $twigService = \Drupal::service('twig');
     $ext = $twigService->getExtension('twig_extension_test.test_extension');
     $this->assertEqual(get_class($ext), 'Drupal\twig_extension_test\TwigExtension\TestExtension', 'TestExtension loaded successfully.');
@@ -35,7 +35,7 @@ function testTwigExtensionLoaded() {
   /**
    * Tests that the Twig extension's filter produces expected output.
    */
-  function testTwigExtensionFilter() {
+  public function testTwigExtensionFilter() {
     $this->config('system.theme')
       ->set('default', 'test_theme')
       ->save();
@@ -49,7 +49,7 @@ function testTwigExtensionFilter() {
   /**
    * Tests that the Twig extension's function produces expected output.
    */
-  function testTwigExtensionFunction() {
+  public function testTwigExtensionFunction() {
     $this->config('system.theme')
       ->set('default', 'test_theme')
       ->save();
diff --git a/core/modules/system/src/Tests/Theme/TwigSettingsTest.php b/core/modules/system/src/Tests/Theme/TwigSettingsTest.php
index 3722431..e80b3c5 100644
--- a/core/modules/system/src/Tests/Theme/TwigSettingsTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigSettingsTest.php
@@ -22,7 +22,7 @@ class TwigSettingsTest extends WebTestBase {
   /**
    * Ensures Twig template auto reload setting can be overridden.
    */
-  function testTwigAutoReloadOverride() {
+  public function testTwigAutoReloadOverride() {
     // Enable auto reload and rebuild the service container.
     $parameters = $this->container->getParameter('twig.config');
     $parameters['auto_reload'] = TRUE;
@@ -44,7 +44,7 @@ function testTwigAutoReloadOverride() {
   /**
    * Ensures Twig engine debug setting can be overridden.
    */
-  function testTwigDebugOverride() {
+  public function testTwigDebugOverride() {
     // Enable debug and rebuild the service container.
     $parameters = $this->container->getParameter('twig.config');
     $parameters['debug'] = TRUE;
@@ -74,7 +74,7 @@ function testTwigDebugOverride() {
   /**
    * Ensures Twig template cache setting can be overridden.
    */
-  function testTwigCacheOverride() {
+  public function testTwigCacheOverride() {
     $extension = twig_extension();
     $theme_handler = $this->container->get('theme_handler');
     $theme_handler->install(array('test_theme'));
diff --git a/core/modules/system/src/Tests/Update/DependencyHookInvocationTest.php b/core/modules/system/src/Tests/Update/DependencyHookInvocationTest.php
index a9723c2..102d8df 100644
--- a/core/modules/system/src/Tests/Update/DependencyHookInvocationTest.php
+++ b/core/modules/system/src/Tests/Update/DependencyHookInvocationTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Test the structure of the array returned by hook_update_dependencies().
    */
-  function testHookUpdateDependencies() {
+  public function testHookUpdateDependencies() {
     $update_dependencies = update_retrieve_dependencies();
     $this->assertTrue($update_dependencies['update_test_0'][8001]['update_test_1'] == 8001, 'An update function that has a dependency on two separate modules has the first dependency recorded correctly.');
     $this->assertTrue($update_dependencies['update_test_0'][8001]['update_test_2'] == 8002, 'An update function that has a dependency on two separate modules has the second dependency recorded correctly.');
diff --git a/core/modules/system/src/Tests/Update/DependencyMissingTest.php b/core/modules/system/src/Tests/Update/DependencyMissingTest.php
index 9764b4c..31f2854 100644
--- a/core/modules/system/src/Tests/Update/DependencyMissingTest.php
+++ b/core/modules/system/src/Tests/Update/DependencyMissingTest.php
@@ -25,7 +25,7 @@ protected function setUp() {
     require_once \Drupal::root() . '/core/includes/update.inc';
   }
 
-  function testMissingUpdate() {
+  public function testMissingUpdate() {
     $starting_updates = array(
       'update_test_2' => 8001,
     );
diff --git a/core/modules/system/src/Tests/Update/DependencyOrderingTest.php b/core/modules/system/src/Tests/Update/DependencyOrderingTest.php
index bb3ae37..c7edb88 100644
--- a/core/modules/system/src/Tests/Update/DependencyOrderingTest.php
+++ b/core/modules/system/src/Tests/Update/DependencyOrderingTest.php
@@ -26,7 +26,7 @@ protected function setUp() {
   /**
    * Test that updates within a single module run in the correct order.
    */
-  function testUpdateOrderingSingleModule() {
+  public function testUpdateOrderingSingleModule() {
     $starting_updates = array(
       'update_test_1' => 8001,
     );
@@ -42,7 +42,7 @@ function testUpdateOrderingSingleModule() {
   /**
    * Test that dependencies between modules are resolved correctly.
    */
-  function testUpdateOrderingModuleInterdependency() {
+  public function testUpdateOrderingModuleInterdependency() {
     $starting_updates = array(
       'update_test_2' => 8001,
       'update_test_3' => 8001,
diff --git a/core/modules/system/src/Tests/Update/InvalidUpdateHookTest.php b/core/modules/system/src/Tests/Update/InvalidUpdateHookTest.php
index ce5a006..1f282c7 100644
--- a/core/modules/system/src/Tests/Update/InvalidUpdateHookTest.php
+++ b/core/modules/system/src/Tests/Update/InvalidUpdateHookTest.php
@@ -41,7 +41,7 @@ protected function setUp() {
     $this->updateUser = $this->drupalCreateUser(array('administer software updates'));
   }
 
-  function testInvalidUpdateHook() {
+  public function testInvalidUpdateHook() {
     // Confirm that a module with hook_update_8000() cannot be updated.
     $this->drupalLogin($this->updateUser);
     $this->drupalGet($this->updateUrl);
diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
index 0f80f05..2f41dfc 100644
--- a/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
+++ b/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
@@ -132,7 +132,7 @@
    *   (optional) The ID of the test. Tests with the same id are reported
    *   together.
    */
-  function __construct($test_id = NULL) {
+  public function __construct($test_id = NULL) {
     parent::__construct($test_id);
     $this->zlibInstalled = function_exists('gzopen');
   }
diff --git a/core/modules/system/src/Tests/Update/UpdateScriptTest.php b/core/modules/system/src/Tests/Update/UpdateScriptTest.php
index b80ef82..4f7d987 100644
--- a/core/modules/system/src/Tests/Update/UpdateScriptTest.php
+++ b/core/modules/system/src/Tests/Update/UpdateScriptTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
   /**
    * Tests access to the update script.
    */
-  function testUpdateAccess() {
+  public function testUpdateAccess() {
     // Try accessing update.php without the proper permission.
     $regular_user = $this->drupalCreateUser();
     $this->drupalLogin($regular_user);
@@ -93,7 +93,7 @@ function testUpdateAccess() {
   /**
    * Tests that requirements warnings and errors are correctly displayed.
    */
-  function testRequirements() {
+  public function testRequirements() {
     $update_script_test_config = $this->config('update_script_test.settings');
     $this->drupalLogin($this->updateUser);
 
@@ -146,7 +146,7 @@ function testRequirements() {
   /**
    * Tests the effect of using the update script on the theme system.
    */
-  function testThemeSystem() {
+  public function testThemeSystem() {
     // Since visiting update.php triggers a rebuild of the theme system from an
     // unusual maintenance mode environment, we check that this rebuild did not
     // put any incorrect information about the themes into the database.
@@ -160,7 +160,7 @@ function testThemeSystem() {
   /**
    * Tests update.php when there are no updates to apply.
    */
-  function testNoUpdateFunctionality() {
+  public function testNoUpdateFunctionality() {
     // Click through update.php with 'administer software updates' permission.
     $this->drupalLogin($this->updateUser);
     $this->drupalGet($this->updateUrl, array('external' => TRUE));
@@ -186,7 +186,7 @@ function testNoUpdateFunctionality() {
   /**
    * Tests update.php after performing a successful update.
    */
-  function testSuccessfulUpdateFunctionality() {
+  public function testSuccessfulUpdateFunctionality() {
     $initial_maintenance_mode = $this->container->get('state')->get('system.maintenance_mode');
     $this->assertFalse($initial_maintenance_mode, 'Site is not in maintenance mode.');
     $this->updateScriptTest($initial_maintenance_mode);
@@ -220,7 +220,7 @@ function testSuccessfulUpdateFunctionality() {
   /**
    * Tests update.php while in maintenance mode.
    */
-  function testMaintenanceModeUpdateFunctionality() {
+  public function testMaintenanceModeUpdateFunctionality() {
     $this->container->get('state')
       ->set('system.maintenance_mode', TRUE);
     $initial_maintenance_mode = $this->container->get('state')
@@ -235,7 +235,7 @@ function testMaintenanceModeUpdateFunctionality() {
   /**
    * Tests perfoming updates with update.php in a multilingual environment.
    */
-  function testSuccessfulMultilingualUpdateFunctionality() {
+  public function testSuccessfulMultilingualUpdateFunctionality() {
     // Add some custom languages.
     foreach (array('aa', 'bb') as $language_code) {
       ConfigurableLanguage::create(array(
diff --git a/core/modules/system/src/Tests/Update/UpdatesWith7xTest.php b/core/modules/system/src/Tests/Update/UpdatesWith7xTest.php
index 9782d91..1d66f47 100644
--- a/core/modules/system/src/Tests/Update/UpdatesWith7xTest.php
+++ b/core/modules/system/src/Tests/Update/UpdatesWith7xTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
     $this->updateUser = $this->drupalCreateUser(array('administer software updates'));
   }
 
-  function testWith7x() {
+  public function testWith7x() {
     // Ensure that the minimum schema version is 8000, despite 7200 update
     // hooks and a 7XXX hook_update_last_removed().
     $this->assertEqual(drupal_get_installed_schema_version('update_test_with_7x'), 8000);
diff --git a/core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php b/core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php
index 4b3b039..0ad80c9 100644
--- a/core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php
+++ b/core/modules/system/tests/modules/ajax_forms_test/src/Callbacks.php
@@ -15,7 +15,7 @@ class Callbacks {
   /**
    * Ajax callback triggered by select.
    */
-  function selectCallback($form, FormStateInterface $form_state) {
+  public function selectCallback($form, FormStateInterface $form_state) {
     $response = new AjaxResponse();
     $response->addCommand(new HtmlCommand('#ajax_selected_color', $form_state->getValue('select')));
     $response->addCommand(new DataCommand('#ajax_selected_color', 'form_state_value_select', $form_state->getValue('select')));
@@ -25,7 +25,7 @@ function selectCallback($form, FormStateInterface $form_state) {
   /**
    * Ajax callback triggered by checkbox.
    */
-  function checkboxCallback($form, FormStateInterface $form_state) {
+  public function checkboxCallback($form, FormStateInterface $form_state) {
     $response = new AjaxResponse();
     $response->addCommand(new HtmlCommand('#ajax_checkbox_value', (int) $form_state->getValue('checkbox')));
     $response->addCommand(new DataCommand('#ajax_checkbox_value', 'form_state_value_select', (int) $form_state->getValue('checkbox')));
@@ -35,7 +35,7 @@ function checkboxCallback($form, FormStateInterface $form_state) {
   /**
    * Ajax callback triggered by the checkbox in a #group.
    */
-  function checkboxGroupCallback($form, FormStateInterface $form_state) {
+  public function checkboxGroupCallback($form, FormStateInterface $form_state) {
     return $form['checkbox_in_group_wrapper'];
   }
 
diff --git a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
index 811c7fc..1c749c1 100644
--- a/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
+++ b/core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
@@ -95,7 +95,7 @@ public function testFinishRedirect() {
    * @return array
    *   Render array containing markup.
    */
-  function testProgrammatic($value = 1) {
+  public function testProgrammatic($value = 1) {
     $form_state = (new FormState())->setValues([
       'value' => $value,
     ]);
diff --git a/core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php b/core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php
index 3768bcd..8c6a199 100644
--- a/core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php
+++ b/core/modules/system/tests/modules/display_variant_test/src/EventSubscriber/TestPageDisplayVariantSubscriber.php
@@ -31,7 +31,7 @@ public function onSelectPageDisplayVariant(PageDisplayVariantSelectionEvent $eve
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[RenderEvents::SELECT_PAGE_DISPLAY_VARIANT][] = array('onSelectPageDisplayVariant');
     return $events;
   }
diff --git a/core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php b/core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php
index 6dac62f..e6152ca 100644
--- a/core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php
+++ b/core/modules/system/tests/modules/early_rendering_controller_test/src/TestDomainObjectViewSubscriber.php
@@ -37,7 +37,7 @@ public function onViewTestDomainObject(GetResponseForControllerResultEvent $even
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[KernelEvents::VIEW][] = ['onViewTestDomainObject'];
 
     return $events;
diff --git a/core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php b/core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
index a31762e..2b06d80 100644
--- a/core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
+++ b/core/modules/system/tests/modules/entity_test/src/EntityTestDefinitionSubscriber.php
@@ -38,7 +38,7 @@ class EntityTestDefinitionSubscriber implements EventSubscriberInterface, Entity
   /**
    * {@inheritdoc}
    */
-  function __construct(StateInterface $state) {
+  public function __construct(StateInterface $state) {
     $this->state = $state;
   }
 
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php
index e7abbfd..ff0a1e8 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php
@@ -49,7 +49,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
   /**
    * Form element #after_build callback: output the old form build-id.
    */
-  function form_test_storage_page_cache_old_build_id($form) {
+  public function form_test_storage_page_cache_old_build_id($form) {
     if (isset($form['#build_id_old'])) {
       $form['test_build_id_old']['#plain_text'] = $form['#build_id_old'];
     }
@@ -59,7 +59,7 @@ function form_test_storage_page_cache_old_build_id($form) {
   /**
    * Form submit callback: Rebuild the form and continue.
    */
-  function form_test_storage_page_cache_rebuild($form, FormStateInterface $form_state) {
+  public function form_test_storage_page_cache_rebuild($form, FormStateInterface $form_state) {
     $form_state->setRebuild();
   }
 
diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectFormBase.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectFormBase.php
index 4431460..53fb34d 100644
--- a/core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectFormBase.php
+++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestTableSelectFormBase.php
@@ -23,7 +23,7 @@
    * @return array
    *   A form with a tableselect element and a submit button.
    */
-  function tableselectFormBuilder($form, FormStateInterface $form_state, $element_properties) {
+  public function tableselectFormBuilder($form, FormStateInterface $form_state, $element_properties) {
     list($header, $options) = _form_test_tableselect_get_data();
 
     $form['tableselect'] = $element_properties;
diff --git a/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php b/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
index 72ef717..e9e47bc 100644
--- a/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
+++ b/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
@@ -12,14 +12,14 @@ class TestTasksSettingsSub1 extends LocalTaskDefault {
   /**
    * {@inheritdoc}
    */
-  function getTitle() {
+  public function getTitle() {
     return $this->t('Dynamic title for @class', array('@class' => 'TestTasksSettingsSub1'));
   }
 
   /**
    * {@inheritdoc}
    */
-  function getCacheTags() {
+  public function getCacheTags() {
     return ['kittens:ragdoll'];
   }
 
diff --git a/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php b/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
index b46f374..6cd97a0 100644
--- a/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
+++ b/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
@@ -3,7 +3,7 @@
 namespace Drupal\module_autoload_test;
 
 class SomeClass {
-  function testMethod() {
+  public function testMethod() {
     return 'Drupal\\module_autoload_test\\SomeClass::testMethod() was invoked.';
   }
 
diff --git a/core/modules/system/tests/modules/service_provider_test/src/TestClass.php b/core/modules/system/tests/modules/service_provider_test/src/TestClass.php
index 9a87c97..6987649 100644
--- a/core/modules/system/tests/modules/service_provider_test/src/TestClass.php
+++ b/core/modules/system/tests/modules/service_provider_test/src/TestClass.php
@@ -57,7 +57,7 @@ public function onKernelResponseTest(FilterResponseEvent $event) {
    * @return array
    *   An array of event listener definitions.
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[KernelEvents::REQUEST][] = array('onKernelRequestTest');
     $events[KernelEvents::RESPONSE][] = array('onKernelResponseTest');
     return $events;
diff --git a/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php b/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
index d5f9110..707e657 100644
--- a/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
+++ b/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
@@ -91,7 +91,7 @@ public function onView(GetResponseEvent $event) {
   /**
    * {@inheritdoc}
    */
-  static function getSubscribedEvents() {
+  public static function getSubscribedEvents() {
     $events[KernelEvents::REQUEST][] = array('onRequest');
     $events[KernelEvents::VIEW][] = array('onView', -1000);
     return $events;
diff --git a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
index 639f1b7..843c048 100644
--- a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
+++ b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
@@ -87,35 +87,35 @@ public function testRequestListener() {
   /**
    * Menu callback for testing suggestion alter hooks with template files.
    */
-  function suggestionProvided() {
+  public function suggestionProvided() {
     return array('#theme' => 'theme_test_suggestion_provided');
   }
 
   /**
    * Menu callback for testing suggestion alter hooks with template files.
    */
-  function suggestionAlter() {
+  public function suggestionAlter() {
     return array('#theme' => 'theme_test_suggestions');
   }
 
   /**
    * Menu callback for testing hook_theme_suggestions_alter().
    */
-  function generalSuggestionAlter() {
+  public function generalSuggestionAlter() {
     return array('#theme' => 'theme_test_general_suggestions');
   }
 
   /**
    * Menu callback for testing suggestion alter hooks with specific suggestions.
    */
-  function specificSuggestionAlter() {
+  public function specificSuggestionAlter() {
     return array('#theme' => 'theme_test_specific_suggestions__variant');
   }
 
   /**
    * Menu callback for testing suggestion alter hooks with theme functions.
    */
-  function functionSuggestionAlter() {
+  public function functionSuggestionAlter() {
     return array('#theme' => 'theme_test_function_suggestions');
   }
 
@@ -123,7 +123,7 @@ function functionSuggestionAlter() {
   /**
    * Menu callback for testing includes with suggestion alter hooks.
    */
-  function suggestionAlterInclude() {
+  public function suggestionAlterInclude() {
     return array('#theme' => 'theme_test_suggestions_include');
   }
 
diff --git a/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php b/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
index 8072944..fa16947 100644
--- a/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
+++ b/core/modules/system/tests/src/Kernel/Common/PageRenderTest.php
@@ -14,7 +14,7 @@ class PageRenderTest extends KernelTestBase {
   /**
    * Tests hook_page_attachments() exceptions.
    */
-  function testHookPageAttachmentsExceptions() {
+  public function testHookPageAttachmentsExceptions() {
     $this->enableModules(['common_test', 'system']);
     \Drupal::service('router.builder')->rebuild();
 
@@ -24,7 +24,7 @@ function testHookPageAttachmentsExceptions() {
   /**
    * Tests hook_page_attachments_alter() exceptions.
    */
-  function testHookPageAlter() {
+  public function testHookPageAlter() {
     $this->enableModules(['common_test', 'system']);
     \Drupal::service('router.builder')->rebuild();
 
@@ -39,7 +39,7 @@ function testHookPageAlter() {
    * @param string $hook
    *   The page render hook to assert expected exceptions for.
    */
-  function assertPageRenderHookExceptions($module, $hook) {
+  public function assertPageRenderHookExceptions($module, $hook) {
     $html_renderer = \Drupal::getContainer()->get('main_content_renderer.html');
 
     // Assert a valid hook implementation doesn't trigger an exception.
diff --git a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
index 7de7ecf..b6ff0c5 100644
--- a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
+++ b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
@@ -14,7 +14,7 @@ class SystemListingTest extends KernelTestBase {
   /**
    * Tests that files in different directories take precedence as expected.
    */
-  function testDirectoryPrecedence() {
+  public function testDirectoryPrecedence() {
     // Define the module files we will search for, and the directory precedence
     // we expect.
     $expected_directories = array(
diff --git a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
index 8a3e98ed..4959829 100644
--- a/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
+++ b/core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
@@ -38,7 +38,7 @@ protected function setUp() {
   /**
    * The basic functionality of retrieving enabled modules.
    */
-  function testModuleList() {
+  public function testModuleList() {
     $module_list = ['system'];
 
     $this->assertModuleList($module_list, 'Initial');
@@ -92,7 +92,7 @@ protected function assertModuleList(array $expected_values, $condition) {
    * @see module_test_system_info_alter()
    * @see https://www.drupal.org/files/issues/dep.gv__0.png
    */
-  function testDependencyResolution() {
+  public function testDependencyResolution() {
     $this->enableModules(array('module_test'));
     $this->assertTrue($this->moduleHandler()->moduleExists('module_test'), 'Test module is enabled.');
 
@@ -171,7 +171,7 @@ function testDependencyResolution() {
   /**
    * Tests uninstalling a module that is a "dependency" of a profile.
    */
-  function testUninstallProfileDependency() {
+  public function testUninstallProfileDependency() {
     $profile = 'minimal';
     $dependency = 'dblog';
     $this->setSetting('install_profile', $profile);
@@ -204,7 +204,7 @@ function testUninstallProfileDependency() {
   /**
    * Tests uninstalling a module that has content.
    */
-  function testUninstallContentDependency() {
+  public function testUninstallContentDependency() {
     $this->enableModules(array('module_test', 'entity_test', 'text', 'user', 'help'));
     $this->assertTrue($this->moduleHandler()->moduleExists('entity_test'), 'Test module is enabled.');
     $this->assertTrue($this->moduleHandler()->moduleExists('module_test'), 'Test module is enabled.');
@@ -258,7 +258,7 @@ function testUninstallContentDependency() {
   /**
    * Tests whether the correct module metadata is returned.
    */
-  function testModuleMetaData() {
+  public function testModuleMetaData() {
     // Generate the list of available modules.
     $modules = system_rebuild_module_data();
     // Check that the mtime field exists for the system module.
@@ -289,7 +289,7 @@ public function testModuleStreamWrappers() {
   /**
    * Tests whether the correct theme metadata is returned.
    */
-  function testThemeMetaData() {
+  public function testThemeMetaData() {
     // Generate the list of available themes.
     $themes = \Drupal::service('theme_handler')->rebuildThemeData();
     // Check that the mtime field exists for the bartik theme.
diff --git a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
index 76cf23e..5801632 100644
--- a/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
+++ b/core/modules/system/tests/src/Kernel/Render/ClassyTest.php
@@ -36,7 +36,7 @@ public function setUp() {
   /**
    * Test the classy theme.
    */
-  function testClassyTheme() {
+  public function testClassyTheme() {
     drupal_set_message('An error occurred', 'error');
     drupal_set_message('But then something nice happened');
     $messages = array(
diff --git a/core/modules/system/tests/src/Kernel/System/InfoAlterTest.php b/core/modules/system/tests/src/Kernel/System/InfoAlterTest.php
index 8e6f79e..c178caf 100644
--- a/core/modules/system/tests/src/Kernel/System/InfoAlterTest.php
+++ b/core/modules/system/tests/src/Kernel/System/InfoAlterTest.php
@@ -20,7 +20,7 @@ class InfoAlterTest extends KernelTestBase {
    * hook_system_info_alter() is enabled. Also tests if core *_list() functions
    * return freshly altered info.
    */
-  function testSystemInfoAlter() {
+  public function testSystemInfoAlter() {
     \Drupal::state()->set('module_required_test.hook_system_info_alter', TRUE);
     $info = system_rebuild_module_data();
     $this->assertFalse(isset($info['node']->info['required']), 'Before the module_required_test is installed the node module is not required.');
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
index 6884716..8d846a0 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php
@@ -130,7 +130,7 @@ public function query($group_by = FALSE) {
     $this->query->addWhere(0, "$this->tableAlias.$this->realField", $subquery, 'IN');
   }
 
-  function title() {
+  public function title() {
     $term = $this->termStorage->load($this->argument);
     if (!empty($term)) {
       return $term->getName();
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php b/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
index 38e64c7..25efbf3 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/Taxonomy.php
@@ -45,7 +45,7 @@ public static function create(ContainerInterface $container, array $configuratio
   /**
    * Override the behavior of title(). Get the title of the node.
    */
-  function title() {
+  public function title() {
     // There might be no valid argument.
     if ($this->argument) {
       $term = $this->termStorage->load($this->argument);
diff --git a/core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php b/core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php
index 9432c7c..d2fe820 100644
--- a/core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php
+++ b/core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php
@@ -54,7 +54,7 @@ public static function create(ContainerInterface $container, array $configuratio
   /**
    * Override the behavior of title(). Get the name of the vocabulary.
    */
-  function title() {
+  public function title() {
     $vocabulary = $this->vocabularyStorage->load($this->argument);
     if ($vocabulary) {
       return $vocabulary->label();
diff --git a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
index 86a4fce..4183a20 100644
--- a/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
+++ b/core/modules/taxonomy/src/Plugin/views/field/TaxonomyIndexTid.php
@@ -157,7 +157,7 @@ public function preRender(&$values) {
     }
   }
 
-  function render_item($count, $item) {
+  public function render_item($count, $item) {
     return $item['name'];
   }
 
diff --git a/core/modules/taxonomy/src/TermTranslationHandler.php b/core/modules/taxonomy/src/TermTranslationHandler.php
index 72539b5..5b4d491 100644
--- a/core/modules/taxonomy/src/TermTranslationHandler.php
+++ b/core/modules/taxonomy/src/TermTranslationHandler.php
@@ -26,7 +26,7 @@ public function entityFormAlter(array &$form, FormStateInterface $form_state, En
    *
    * @see \Drupal\Core\Entity\EntityForm::build()
    */
-  function entityFormSave(array $form, FormStateInterface $form_state) {
+  public function entityFormSave(array $form, FormStateInterface $form_state) {
     if ($this->getSourceLangcode($form_state)) {
       $entity = $form_state->getFormObject()->getEntity();
       // We need a redirect here, otherwise we would get an access denied page,
diff --git a/core/modules/taxonomy/src/Tests/EfqTest.php b/core/modules/taxonomy/src/Tests/EfqTest.php
index 572ae8f..7907506 100644
--- a/core/modules/taxonomy/src/Tests/EfqTest.php
+++ b/core/modules/taxonomy/src/Tests/EfqTest.php
@@ -25,7 +25,7 @@ protected function setUp() {
   /**
    * Tests that a basic taxonomy entity query works.
    */
-  function testTaxonomyEfq() {
+  public function testTaxonomyEfq() {
     $terms = array();
     for ($i = 0; $i < 5; $i++) {
       $term = $this->createTerm($this->vocabulary);
diff --git a/core/modules/taxonomy/src/Tests/LegacyTest.php b/core/modules/taxonomy/src/Tests/LegacyTest.php
index b842226..6774462 100644
--- a/core/modules/taxonomy/src/Tests/LegacyTest.php
+++ b/core/modules/taxonomy/src/Tests/LegacyTest.php
@@ -51,7 +51,7 @@ protected function setUp() {
   /**
    * Test taxonomy functionality with nodes prior to 1970.
    */
-  function testTaxonomyLegacyNode() {
+  public function testTaxonomyLegacyNode() {
     // Posts an article with a taxonomy term and a date prior to 1970.
     $date = new DrupalDateTime('1969-01-01 00:00:00');
     $edit = array();
diff --git a/core/modules/taxonomy/src/Tests/LoadMultipleTest.php b/core/modules/taxonomy/src/Tests/LoadMultipleTest.php
index 349516c..252f650 100644
--- a/core/modules/taxonomy/src/Tests/LoadMultipleTest.php
+++ b/core/modules/taxonomy/src/Tests/LoadMultipleTest.php
@@ -20,7 +20,7 @@ protected function setUp() {
    * Create a vocabulary and some taxonomy terms, ensuring they're loaded
    * correctly using entity_load_multiple().
    */
-  function testTaxonomyTermMultipleLoad() {
+  public function testTaxonomyTermMultipleLoad() {
     // Create a vocabulary.
     $vocabulary = $this->createVocabulary();
 
diff --git a/core/modules/taxonomy/src/Tests/RssTest.php b/core/modules/taxonomy/src/Tests/RssTest.php
index effd4dd..2bf6097 100644
--- a/core/modules/taxonomy/src/Tests/RssTest.php
+++ b/core/modules/taxonomy/src/Tests/RssTest.php
@@ -66,7 +66,7 @@ protected function setUp() {
    *
    * Create a node and assert that taxonomy terms appear in rss.xml.
    */
-  function testTaxonomyRss() {
+  public function testTaxonomyRss() {
     // Create two taxonomy terms.
     $term1 = $this->createTerm($this->vocabulary);
 
diff --git a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
index 6043d77..08a95c1 100644
--- a/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
+++ b/core/modules/taxonomy/src/Tests/TaxonomyTermIndentationTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
   /**
    * Tests term indentation.
    */
-  function testTermIndentation() {
+  public function testTermIndentation() {
     // Create three taxonomy terms.
     $term1 = $this->createTerm($this->vocabulary);
     $term2 = $this->createTerm($this->vocabulary);
diff --git a/core/modules/taxonomy/src/Tests/TermEntityReferenceTest.php b/core/modules/taxonomy/src/Tests/TermEntityReferenceTest.php
index de77654..4c1da53 100644
--- a/core/modules/taxonomy/src/Tests/TermEntityReferenceTest.php
+++ b/core/modules/taxonomy/src/Tests/TermEntityReferenceTest.php
@@ -26,7 +26,7 @@ class TermEntityReferenceTest extends TaxonomyTestBase {
    * field to limit the target vocabulary to one of them, ensuring that
    * the restriction applies.
    */
-  function testSelectionTestVocabularyRestriction() {
+  public function testSelectionTestVocabularyRestriction() {
 
     // Create two vocabularies.
     $vocabulary = $this->createVocabulary();
diff --git a/core/modules/taxonomy/src/Tests/TermIndexTest.php b/core/modules/taxonomy/src/Tests/TermIndexTest.php
index 28e816c..a03a306 100644
--- a/core/modules/taxonomy/src/Tests/TermIndexTest.php
+++ b/core/modules/taxonomy/src/Tests/TermIndexTest.php
@@ -87,7 +87,7 @@ protected function setUp() {
   /**
    * Tests that the taxonomy index is maintained properly.
    */
-  function testTaxonomyIndex() {
+  public function testTaxonomyIndex() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     // Create terms in the vocabulary.
     $term_1 = $this->createTerm($this->vocabulary);
@@ -197,7 +197,7 @@ function testTaxonomyIndex() {
   /**
    * Tests that there is a link to the parent term on the child term page.
    */
-  function testTaxonomyTermHierarchyBreadcrumbs() {
+  public function testTaxonomyTermHierarchyBreadcrumbs() {
     // Create two taxonomy terms and set term2 as the parent of term1.
     $term1 = $this->createTerm($this->vocabulary);
     $term2 = $this->createTerm($this->vocabulary);
diff --git a/core/modules/taxonomy/src/Tests/TermLanguageTest.php b/core/modules/taxonomy/src/Tests/TermLanguageTest.php
index e894ad2..fee3b49 100644
--- a/core/modules/taxonomy/src/Tests/TermLanguageTest.php
+++ b/core/modules/taxonomy/src/Tests/TermLanguageTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
     }
   }
 
-  function testTermLanguage() {
+  public function testTermLanguage() {
     // Configure the vocabulary to not hide the language selector.
     $edit = array(
       'default_language[language_alterable]' => TRUE,
@@ -73,7 +73,7 @@ function testTermLanguage() {
     $this->assertOptionSelected('edit-langcode-0-value', $edit['langcode[0][value]'], 'The term language was correctly selected.');
   }
 
-  function testDefaultTermLanguage() {
+  public function testDefaultTermLanguage() {
     // Configure the vocabulary to not hide the language selector, and make the
     // default language of the terms fixed.
     $edit = array(
diff --git a/core/modules/taxonomy/src/Tests/TermTest.php b/core/modules/taxonomy/src/Tests/TermTest.php
index 403c28c..f48ae05 100644
--- a/core/modules/taxonomy/src/Tests/TermTest.php
+++ b/core/modules/taxonomy/src/Tests/TermTest.php
@@ -76,7 +76,7 @@ protected function setUp() {
   /**
    * Test terms in a single and multiple hierarchy.
    */
-  function testTaxonomyTermHierarchy() {
+  public function testTaxonomyTermHierarchy() {
     // Create two taxonomy terms.
     $term1 = $this->createTerm($this->vocabulary);
     $term2 = $this->createTerm($this->vocabulary);
@@ -116,7 +116,7 @@ function testTaxonomyTermHierarchy() {
   /**
    * Tests that many terms with parents show on each page
    */
-  function testTaxonomyTermChildTerms() {
+  public function testTaxonomyTermChildTerms() {
     // Set limit to 10 terms per page. Set variable to 9 so 10 terms appear.
     $this->config('taxonomy.settings')->set('terms_per_page_admin', '9')->save();
     $term1 = $this->createTerm($this->vocabulary);
@@ -171,7 +171,7 @@ function testTaxonomyTermChildTerms() {
    *
    * Save & edit a node and assert that taxonomy terms are saved/loaded properly.
    */
-  function testTaxonomyNode() {
+  public function testTaxonomyNode() {
     // Create two taxonomy terms.
     $term1 = $this->createTerm($this->vocabulary);
     $term2 = $this->createTerm($this->vocabulary);
@@ -210,7 +210,7 @@ function testTaxonomyNode() {
   /**
    * Test term creation with a free-tagging vocabulary from the node form.
    */
-  function testNodeTermCreationAndDeletion() {
+  public function testNodeTermCreationAndDeletion() {
     // Enable tags in the vocabulary.
     $field = $this->field;
     entity_get_form_display($field->getTargetEntityTypeId(), $field->getTargetBundle(), 'default')
@@ -303,7 +303,7 @@ function testNodeTermCreationAndDeletion() {
   /**
    * Save, edit and delete a term using the user interface.
    */
-  function testTermInterface() {
+  public function testTermInterface() {
     \Drupal::service('module_installer')->install(array('views'));
     $edit = array(
       'name[0][value]' => $this->randomMachineName(12),
@@ -380,7 +380,7 @@ function testTermInterface() {
   /**
    * Save, edit and delete a term using the user interface.
    */
-  function testTermReorder() {
+  public function testTermReorder() {
     $this->createTerm($this->vocabulary);
     $this->createTerm($this->vocabulary);
     $this->createTerm($this->vocabulary);
@@ -437,7 +437,7 @@ function testTermReorder() {
   /**
    * Test saving a term with multiple parents through the UI.
    */
-  function testTermMultipleParentsInterface() {
+  public function testTermMultipleParentsInterface() {
     // Add a new term to the vocabulary so that we can have multiple parents.
     $parent = $this->createTerm($this->vocabulary);
 
@@ -466,7 +466,7 @@ function testTermMultipleParentsInterface() {
   /**
    * Test taxonomy_term_load_multiple_by_name().
    */
-  function testTaxonomyGetTermByName() {
+  public function testTaxonomyGetTermByName() {
     $term = $this->createTerm($this->vocabulary);
 
     // Load the term with the exact name.
@@ -526,7 +526,7 @@ function testTaxonomyGetTermByName() {
   /**
    * Tests that editing and saving a node with no changes works correctly.
    */
-  function testReSavingTags() {
+  public function testReSavingTags() {
     // Enable tags in the vocabulary.
     $field = $this->field;
     entity_get_form_display($field->getTargetEntityTypeId(), $field->getTargetBundle(), 'default')
diff --git a/core/modules/taxonomy/src/Tests/TermTranslationUITest.php b/core/modules/taxonomy/src/Tests/TermTranslationUITest.php
index fa9652d..079bd07 100644
--- a/core/modules/taxonomy/src/Tests/TermTranslationUITest.php
+++ b/core/modules/taxonomy/src/Tests/TermTranslationUITest.php
@@ -100,7 +100,7 @@ public function testTranslationUI() {
   /**
    * Tests translate link on vocabulary term list.
    */
-  function testTranslateLinkVocabularyAdminPage() {
+  public function testTranslateLinkVocabularyAdminPage() {
     $this->drupalLogin($this->drupalCreateUser(array_merge(parent::getTranslatorPermissions(), ['access administration pages', 'administer taxonomy'])));
 
     $values = array(
diff --git a/core/modules/taxonomy/src/Tests/ThemeTest.php b/core/modules/taxonomy/src/Tests/ThemeTest.php
index 54ad6e4..0288009 100644
--- a/core/modules/taxonomy/src/Tests/ThemeTest.php
+++ b/core/modules/taxonomy/src/Tests/ThemeTest.php
@@ -29,7 +29,7 @@ protected function setUp() {
   /**
    * Test the theme used when adding, viewing and editing taxonomy terms.
    */
-  function testTaxonomyTermThemes() {
+  public function testTaxonomyTermThemes() {
     // Adding a term to a vocabulary is considered an administrative action and
     // should use the administrative theme.
     $vocabulary = $this->createVocabulary();
diff --git a/core/modules/taxonomy/src/Tests/TokenReplaceTest.php b/core/modules/taxonomy/src/Tests/TokenReplaceTest.php
index f3c6c5d..e9f3cb8 100644
--- a/core/modules/taxonomy/src/Tests/TokenReplaceTest.php
+++ b/core/modules/taxonomy/src/Tests/TokenReplaceTest.php
@@ -56,7 +56,7 @@ protected function setUp() {
   /**
    * Creates some terms and a node, then tests the tokens generated from them.
    */
-  function testTaxonomyTokenReplacement() {
+  public function testTaxonomyTokenReplacement() {
     $token_service = \Drupal::token();
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
 
diff --git a/core/modules/taxonomy/src/Tests/Views/RelationshipNodeTermDataTest.php b/core/modules/taxonomy/src/Tests/Views/RelationshipNodeTermDataTest.php
index c38c45c..cb09631 100644
--- a/core/modules/taxonomy/src/Tests/Views/RelationshipNodeTermDataTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/RelationshipNodeTermDataTest.php
@@ -18,7 +18,7 @@ class RelationshipNodeTermDataTest extends TaxonomyTestBase {
    */
   public static $testViews = array('test_taxonomy_node_term_data');
 
-  function testViewsHandlerRelationshipNodeTermData() {
+  public function testViewsHandlerRelationshipNodeTermData() {
     $view = Views::getView('test_taxonomy_node_term_data');
     // Tests \Drupal\taxonomy\Plugin\views\relationship\NodeTermData::calculateDependencies().
     $expected = [
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
index fb0c0df..15a1637 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
@@ -45,7 +45,7 @@ class TaxonomyFieldFilterTest extends ViewTestBase {
    */
   public $termNames = [];
 
-  function setUp() {
+  protected function setUp() {
     parent::setUp();
 
     // Add two new languages.
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldTidTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldTidTest.php
index 6480491..778b6ae 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldTidTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldTidTest.php
@@ -19,7 +19,7 @@ class TaxonomyFieldTidTest extends TaxonomyTestBase {
    */
   public static $testViews = array('test_taxonomy_tid_field');
 
-  function testViewsHandlerTidField() {
+  public function testViewsHandlerTidField() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
 
diff --git a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
index 914b7f2..165dc57 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyCrudTest.php
@@ -32,7 +32,7 @@ protected function setUp() {
   /**
    * Test deleting a taxonomy that contains terms.
    */
-  function testTaxonomyVocabularyDeleteWithTerms() {
+  public function testTaxonomyVocabularyDeleteWithTerms() {
     // Delete any existing vocabularies.
     foreach (Vocabulary::loadMultiple() as $vocabulary) {
       $vocabulary->delete();
@@ -65,7 +65,7 @@ function testTaxonomyVocabularyDeleteWithTerms() {
   /**
    * Ensure that the vocabulary static reset works correctly.
    */
-  function testTaxonomyVocabularyLoadStaticReset() {
+  public function testTaxonomyVocabularyLoadStaticReset() {
     $original_vocabulary = Vocabulary::load($this->vocabulary->id());
     $this->assertTrue(is_object($original_vocabulary), 'Vocabulary loaded successfully.');
     $this->assertEqual($this->vocabulary->label(), $original_vocabulary->label(), 'Vocabulary loaded successfully.');
@@ -89,7 +89,7 @@ function testTaxonomyVocabularyLoadStaticReset() {
   /**
    * Tests for loading multiple vocabularies.
    */
-  function testTaxonomyVocabularyLoadMultiple() {
+  public function testTaxonomyVocabularyLoadMultiple() {
 
     // Delete any existing vocabularies.
     foreach (Vocabulary::loadMultiple() as $vocabulary) {
@@ -141,7 +141,7 @@ function testTaxonomyVocabularyLoadMultiple() {
   /**
    * Test uninstall and reinstall of the taxonomy module.
    */
-  function testUninstallReinstall() {
+  public function testUninstallReinstall() {
     // Field storages and fields attached to taxonomy term bundles should be
     // removed when the module is uninstalled.
     $field_name = Unicode::strtolower($this->randomMachineName() . '_field_name');
diff --git a/core/modules/taxonomy/src/Tests/VocabularyLanguageTest.php b/core/modules/taxonomy/src/Tests/VocabularyLanguageTest.php
index 3326e51..ee88612 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyLanguageTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyLanguageTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests language settings for vocabularies.
    */
-  function testVocabularyLanguage() {
+  public function testVocabularyLanguage() {
     $this->drupalGet('admin/structure/taxonomy/add');
 
     // Check that we have the language selector available.
@@ -67,7 +67,7 @@ function testVocabularyLanguage() {
   /**
    * Tests term language settings for vocabulary terms are saved and updated.
    */
-  function testVocabularyDefaultLanguageForTerms() {
+  public function testVocabularyDefaultLanguageForTerms() {
     // Add a new vocabulary and check that the default language settings are for
     // the terms are saved.
     $edit = array(
diff --git a/core/modules/taxonomy/src/Tests/VocabularyPermissionsTest.php b/core/modules/taxonomy/src/Tests/VocabularyPermissionsTest.php
index 9a5e8c0..2211211 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyPermissionsTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyPermissionsTest.php
@@ -18,7 +18,7 @@ protected function setUp() {
   /**
    * Create, edit and delete a taxonomy term via the user interface.
    */
-  function testVocabularyPermissionsTaxonomyTerm() {
+  public function testVocabularyPermissionsTaxonomyTerm() {
     // Vocabulary used for creating, removing and editing terms.
     $vocabulary = $this->createVocabulary();
 
diff --git a/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php b/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
index 7ad7609..81956b0 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyTranslationTest.php
@@ -19,7 +19,7 @@ class VocabularyTranslationTest extends TaxonomyTestBase {
   /**
    * {@inheritdoc}
    */
-  protected function setUp() {
+    protected function setUp() {
     parent::setUp();
 
     // Create an administrative user.
@@ -32,7 +32,7 @@ protected function setUp() {
   /**
    * Tests language settings for vocabularies.
    */
-  function testVocabularyLanguage() {
+  public function testVocabularyLanguage() {
     $this->drupalGet('admin/structure/taxonomy/add');
 
     // Check that the field to enable content translation is available.
diff --git a/core/modules/taxonomy/src/Tests/VocabularyUiTest.php b/core/modules/taxonomy/src/Tests/VocabularyUiTest.php
index 76fcac2..0c69cfd 100644
--- a/core/modules/taxonomy/src/Tests/VocabularyUiTest.php
+++ b/core/modules/taxonomy/src/Tests/VocabularyUiTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Create, edit and delete a vocabulary via the user interface.
    */
-  function testVocabularyInterface() {
+  public function testVocabularyInterface() {
     // Visit the main taxonomy administration page.
     $this->drupalGet('admin/structure/taxonomy');
 
@@ -84,7 +84,7 @@ function testVocabularyInterface() {
   /**
    * Changing weights on the vocabulary overview with two or more vocabularies.
    */
-  function testTaxonomyAdminChangingWeights() {
+  public function testTaxonomyAdminChangingWeights() {
     // Create some vocabularies.
     for ($i = 0; $i < 10; $i++) {
       $this->createVocabulary();
@@ -113,7 +113,7 @@ function testTaxonomyAdminChangingWeights() {
   /**
    * Test the vocabulary overview with no vocabularies.
    */
-  function testTaxonomyAdminNoVocabularies() {
+  public function testTaxonomyAdminNoVocabularies() {
     // Delete all vocabularies.
     $vocabularies = Vocabulary::loadMultiple();
     foreach ($vocabularies as $key => $vocabulary) {
@@ -129,7 +129,7 @@ function testTaxonomyAdminNoVocabularies() {
   /**
    * Deleting a vocabulary.
    */
-  function testTaxonomyAdminDeletingVocabulary() {
+  public function testTaxonomyAdminDeletingVocabulary() {
     // Create a vocabulary.
     $vid = Unicode::strtolower($this->randomMachineName());
     $edit = array(
diff --git a/core/modules/telephone/src/Tests/TelephoneFieldTest.php b/core/modules/telephone/src/Tests/TelephoneFieldTest.php
index f7452b0..b9e591f 100644
--- a/core/modules/telephone/src/Tests/TelephoneFieldTest.php
+++ b/core/modules/telephone/src/Tests/TelephoneFieldTest.php
@@ -44,7 +44,7 @@ protected function setUp() {
   /**
    * Helper function for testTelephoneField().
    */
-  function testTelephoneField() {
+  public function testTelephoneField() {
 
     // Add the telephone field to the article content type.
     FieldStorageConfig::create(array(
diff --git a/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php b/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
index 0a72e3e..8549e46 100644
--- a/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
+++ b/core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
@@ -59,7 +59,7 @@ public function settingsSummary() {
   /**
    * {@inheritdoc}
    */
-  function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
+  public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
     $element = parent::formElement($items, $delta, $element, $form, $form_state);
 
     $display_summary = $items[$delta]->summary || $this->getFieldSetting('display_summary');
diff --git a/core/modules/text/src/Tests/TextFieldTest.php b/core/modules/text/src/Tests/TextFieldTest.php
index 993346a..cc03853 100644
--- a/core/modules/text/src/Tests/TextFieldTest.php
+++ b/core/modules/text/src/Tests/TextFieldTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Test text field validation.
    */
-  function testTextFieldValidation() {
+  public function testTextFieldValidation() {
     // Create a field with settings to validate.
     $max_length = 3;
     $field_name = Unicode::strtolower($this->randomMachineName());
@@ -69,7 +69,7 @@ function testTextFieldValidation() {
   /**
    * Test required long text with file upload.
    */
-  function testRequiredLongTextWithFileUpload() {
+  public function testRequiredLongTextWithFileUpload() {
     // Create a text field.
     $text_field_name = 'text_long';
     $field_storage = FieldStorageConfig::create(array(
@@ -128,7 +128,7 @@ function testRequiredLongTextWithFileUpload() {
   /**
    * Test widgets.
    */
-  function testTextfieldWidgets() {
+  public function testTextfieldWidgets() {
     $this->_testTextfieldWidgets('text', 'text_textfield');
     $this->_testTextfieldWidgets('text_long', 'text_textarea');
   }
@@ -136,7 +136,7 @@ function testTextfieldWidgets() {
   /**
    * Test widgets + 'formatted_text' setting.
    */
-  function testTextfieldWidgetsFormatted() {
+  public function testTextfieldWidgetsFormatted() {
     $this->_testTextfieldWidgetsFormatted('text', 'text_textfield');
     $this->_testTextfieldWidgetsFormatted('text_long', 'text_textarea');
   }
@@ -144,7 +144,7 @@ function testTextfieldWidgetsFormatted() {
   /**
    * Helper function for testTextfieldWidgetsFormatted().
    */
-  function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
+  public function _testTextfieldWidgetsFormatted($field_type, $widget_type) {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = $this->container->get('renderer');
 
diff --git a/core/modules/text/tests/src/Kernel/TextSummaryTest.php b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
index abc0b68..6c80bea 100644
--- a/core/modules/text/tests/src/Kernel/TextSummaryTest.php
+++ b/core/modules/text/tests/src/Kernel/TextSummaryTest.php
@@ -25,7 +25,7 @@ protected function setUp() {
    * subsequent sentences are not. This edge case is documented at
    * https://www.drupal.org/node/180425.
    */
-  function testFirstSentenceQuestion() {
+  public function testFirstSentenceQuestion() {
     $text = 'A question? A sentence. Another sentence.';
     $expected = 'A question? A sentence.';
     $this->assertTextSummary($text, $expected, NULL, 30);
@@ -34,7 +34,7 @@ function testFirstSentenceQuestion() {
   /**
    * Test summary with long example.
    */
-  function testLongSentence() {
+  public function testLongSentence() {
     $text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' . // 125
             'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ' . // 108
             'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ' . // 103
@@ -49,7 +49,7 @@ function testLongSentence() {
   /**
    * Test various summary length edge cases.
    */
-  function testLength() {
+  public function testLength() {
     FilterFormat::create(array(
       'format' => 'autop',
       'filters' => array(
@@ -205,7 +205,7 @@ function testLength() {
   /**
    * Calls text_summary() and asserts that the expected teaser is returned.
    */
-  function assertTextSummary($text, $expected, $format = NULL, $size = NULL) {
+  public function assertTextSummary($text, $expected, $format = NULL, $size = NULL) {
     $summary = text_summary($text, $format, $size);
     $this->assertIdentical($summary, $expected, format_string('<pre style="white-space: pre-wrap">@actual</pre> is identical to <pre style="white-space: pre-wrap">@expected</pre>', array(
       '@actual' => $summary,
diff --git a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
index 56b9d69..b4d0a2d 100644
--- a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
+++ b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php
@@ -97,7 +97,7 @@ protected function setUp() {
    * Tests the toolbar_modules_installed() and toolbar_modules_uninstalled() hook
    * implementations.
    */
-  function testModuleStatusChangeSubtreesHashCacheClear() {
+  public function testModuleStatusChangeSubtreesHashCacheClear() {
     // Uninstall a module.
     $edit = array();
     $edit['uninstall[taxonomy]'] = TRUE;
@@ -124,7 +124,7 @@ function testModuleStatusChangeSubtreesHashCacheClear() {
   /**
    * Tests toolbar cache tags implementation.
    */
-  function testMenuLinkUpdateSubtreesHashCacheClear() {
+  public function testMenuLinkUpdateSubtreesHashCacheClear() {
     // The ID of a (any) admin menu link.
     $admin_menu_link_id = 'system.admin_config_development';
 
@@ -144,7 +144,7 @@ function testMenuLinkUpdateSubtreesHashCacheClear() {
    * Exercises the toolbar_user_role_update() and toolbar_user_update() hook
    * implementations.
    */
-  function testUserRoleUpdateSubtreesHashCacheClear() {
+  public function testUserRoleUpdateSubtreesHashCacheClear() {
     // Find the new role ID.
     $all_rids = $this->adminUser->getRoles();
     unset($all_rids[array_search(RoleInterface::AUTHENTICATED_ID, $all_rids)]);
@@ -208,7 +208,7 @@ function testUserRoleUpdateSubtreesHashCacheClear() {
    * Tests that changes to a user account by another user clears the changed
    * account's toolbar cached, not the user's who took the action.
    */
-  function testNonCurrentUserAccountUpdates() {
+  public function testNonCurrentUserAccountUpdates() {
     $admin_user_id = $this->adminUser->id();
     $this->hash = $this->getSubtreesHash();
 
@@ -243,7 +243,7 @@ function testNonCurrentUserAccountUpdates() {
   /**
    * Tests that toolbar cache is cleared when string translations are made.
    */
-  function testLocaleTranslationSubtreesHashCacheClear() {
+  public function testLocaleTranslationSubtreesHashCacheClear() {
     $admin_user = $this->adminUser;
     // User to translate and delete string.
     $translate_user = $this->drupalCreateUser(array('translate interface', 'access administration pages'));
@@ -324,7 +324,7 @@ function testLocaleTranslationSubtreesHashCacheClear() {
   /**
    * Tests that the 'toolbar/subtrees/{hash}' is reachable and correct.
    */
-  function testSubtreesJsonRequest() {
+  public function testSubtreesJsonRequest() {
     $admin_user = $this->adminUser;
     $this->drupalLogin($admin_user);
     // Request a new page to refresh the drupalSettings object.
@@ -339,7 +339,7 @@ function testSubtreesJsonRequest() {
   /**
    * Test that subtrees hashes vary by the language of the page.
    */
-  function testLanguageSwitching() {
+  public function testLanguageSwitching() {
     // Create a new language with the langcode 'xx'.
     $langcode = 'xx';
     $language = ConfigurableLanguage::createFromLangcode($langcode);
diff --git a/core/modules/toolbar/src/Tests/ToolbarHookToolbarTest.php b/core/modules/toolbar/src/Tests/ToolbarHookToolbarTest.php
index 7cff043..a32ee34 100644
--- a/core/modules/toolbar/src/Tests/ToolbarHookToolbarTest.php
+++ b/core/modules/toolbar/src/Tests/ToolbarHookToolbarTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests for a tab and tray provided by a module implementing hook_toolbar().
    */
-  function testHookToolbar() {
+  public function testHookToolbar() {
     $this->drupalGet('test-page');
     $this->assertResponse(200);
 
diff --git a/core/modules/toolbar/src/Tests/ToolbarMenuTranslationTest.php b/core/modules/toolbar/src/Tests/ToolbarMenuTranslationTest.php
index 8fa2bed5..c0f0e0e 100644
--- a/core/modules/toolbar/src/Tests/ToolbarMenuTranslationTest.php
+++ b/core/modules/toolbar/src/Tests/ToolbarMenuTranslationTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests that toolbar classes don't change when adding a translation.
    */
-  function testToolbarClasses() {
+  public function testToolbarClasses() {
     $langcode = 'es';
 
     // Add Spanish.
diff --git a/core/modules/tracker/src/Tests/TrackerNodeAccessTest.php b/core/modules/tracker/src/Tests/TrackerNodeAccessTest.php
index 29492bc..f60ea4b 100644
--- a/core/modules/tracker/src/Tests/TrackerNodeAccessTest.php
+++ b/core/modules/tracker/src/Tests/TrackerNodeAccessTest.php
@@ -35,7 +35,7 @@ protected function setUp() {
   /**
    * Ensure private node on /tracker is only visible to users with permission.
    */
-  function testTrackerNodeAccess() {
+  public function testTrackerNodeAccess() {
     // Create user with node test view permission.
     $access_user = $this->drupalCreateUser(array('node test view', 'access user profiles'));
 
diff --git a/core/modules/tracker/src/Tests/TrackerTest.php b/core/modules/tracker/src/Tests/TrackerTest.php
index a927e89..8504ae0 100644
--- a/core/modules/tracker/src/Tests/TrackerTest.php
+++ b/core/modules/tracker/src/Tests/TrackerTest.php
@@ -63,7 +63,7 @@ protected function setUp() {
   /**
    * Tests for the presence of nodes on the global tracker listing.
    */
-  function testTrackerAll() {
+  public function testTrackerAll() {
     $this->drupalLogin($this->user);
 
     $unpublished = $this->drupalCreateNode(array(
@@ -129,7 +129,7 @@ function testTrackerAll() {
   /**
    * Tests for the presence of nodes on a user's tracker listing.
    */
-  function testTrackerUser() {
+  public function testTrackerUser() {
     $this->drupalLogin($this->user);
 
     $unpublished = $this->drupalCreateNode(array(
@@ -223,7 +223,7 @@ function testTrackerUser() {
   /**
    * Tests the metadata for the "new"/"updated" indicators.
    */
-  function testTrackerHistoryMetadata() {
+  public function testTrackerHistoryMetadata() {
     $this->drupalLogin($this->user);
 
     // Create a page node.
@@ -274,7 +274,7 @@ function testTrackerHistoryMetadata() {
   /**
    * Tests for ordering on a users tracker listing when comments are posted.
    */
-  function testTrackerOrderingNewComments() {
+  public function testTrackerOrderingNewComments() {
     $this->drupalLogin($this->user);
 
     $node_one = $this->drupalCreateNode(array(
@@ -340,7 +340,7 @@ function testTrackerOrderingNewComments() {
   /**
    * Tests that existing nodes are indexed by cron.
    */
-  function testTrackerCronIndexing() {
+  public function testTrackerCronIndexing() {
     $this->drupalLogin($this->user);
 
     // Create 3 nodes.
@@ -393,7 +393,7 @@ function testTrackerCronIndexing() {
   /**
    * Tests that publish/unpublish works at admin/content/node.
    */
-  function testTrackerAdminUnpublish() {
+  public function testTrackerAdminUnpublish() {
     \Drupal::service('module_installer')->install(array('views'));
     \Drupal::service('router.builder')->rebuild();
     $admin_user = $this->drupalCreateUser(array('access content overview', 'administer nodes', 'bypass node access'));
@@ -438,7 +438,7 @@ function testTrackerAdminUnpublish() {
    * @param bool $library_is_present
    *   Whether the drupal.tracker-history library should be present or not.
    */
-  function assertHistoryMetadata($node_id, $node_timestamp, $node_last_comment_timestamp, $library_is_present = TRUE) {
+  public function assertHistoryMetadata($node_id, $node_timestamp, $node_last_comment_timestamp, $library_is_present = TRUE) {
     $settings = $this->getDrupalSettings();
     $this->assertIdentical($library_is_present, isset($settings['ajaxPageState']) && in_array('tracker/history', explode(',', $settings['ajaxPageState']['libraries'])), 'drupal.tracker-history library is present.');
     $this->assertIdentical(1, count($this->xpath('//table/tbody/tr/td[@data-history-node-id="' . $node_id . '" and @data-history-node-timestamp="' . $node_timestamp . '"]')), 'Tracker table cell contains the data-history-node-id and data-history-node-timestamp attributes for the node.');
diff --git a/core/modules/update/src/Tests/UpdateContribTest.php b/core/modules/update/src/Tests/UpdateContribTest.php
index 88cf378..67e5b40 100644
--- a/core/modules/update/src/Tests/UpdateContribTest.php
+++ b/core/modules/update/src/Tests/UpdateContribTest.php
@@ -29,7 +29,7 @@ protected function setUp() {
   /**
    * Tests when there is no available release data for a contrib module.
    */
-  function testNoReleasesAvailable() {
+  public function testNoReleasesAvailable() {
     $system_info = array(
       '#all' => array(
         'version' => '8.0.0',
@@ -60,7 +60,7 @@ function testNoReleasesAvailable() {
   /**
    * Tests the basic functionality of a contrib module on the status report.
    */
-  function testUpdateContribBasic() {
+  public function testUpdateContribBasic() {
     $project_link = \Drupal::l(t('AAA Update test'), Url::fromUri('http://example.com/project/aaa_update_test'));
     $system_info = array(
       '#all' => array(
@@ -122,7 +122,7 @@ function testUpdateContribBasic() {
    * if you sort alphabetically by module name (which is the order we see things
    * inside system_rebuild_module_data() for example).
    */
-  function testUpdateContribOrder() {
+  public function testUpdateContribOrder() {
     // We want core to be version 8.0.0.
     $system_info = array(
       '#all' => array(
@@ -184,7 +184,7 @@ function testUpdateContribOrder() {
   /**
    * Tests that subthemes are notified about security updates for base themes.
    */
-  function testUpdateBaseThemeSecurityUpdate() {
+  public function testUpdateBaseThemeSecurityUpdate() {
     // @todo https://www.drupal.org/node/2338175 base themes have to be
     //  installed.
     // Only install the subtheme, not the base theme.
@@ -226,7 +226,7 @@ function testUpdateBaseThemeSecurityUpdate() {
    * @todo https://www.drupal.org/node/2338175 extensions can not be hidden and
    *   base themes have to be installed.
    */
-  function testUpdateShowDisabledThemes() {
+  public function testUpdateShowDisabledThemes() {
     $update_settings = $this->config('update.settings');
     // Make sure all the update_test_* themes are disabled.
     $extension_config = $this->config('core.extension');
@@ -291,7 +291,7 @@ function testUpdateShowDisabledThemes() {
   /**
    * Tests updates with a hidden base theme.
    */
-  function testUpdateHiddenBaseTheme() {
+  public function testUpdateHiddenBaseTheme() {
     module_load_include('compare.inc', 'update');
 
     // Install the subtheme.
@@ -322,7 +322,7 @@ function testUpdateHiddenBaseTheme() {
   /**
    * Makes sure that if we fetch from a broken URL, sane things happen.
    */
-  function testUpdateBrokenFetchURL() {
+  public function testUpdateBrokenFetchURL() {
     $system_info = array(
       '#all' => array(
         'version' => '8.0.0',
@@ -386,7 +386,7 @@ function testUpdateBrokenFetchURL() {
    * hook_update_status_alter() to try to mark this as missing a security
    * update, then assert if we see the appropriate warnings on the right pages.
    */
-  function testHookUpdateStatusAlter() {
+  public function testHookUpdateStatusAlter() {
     $update_test_config = $this->config('update_test.settings');
     $update_admin_user = $this->drupalCreateUser(array('administer site configuration', 'administer software updates'));
     $this->drupalLogin($update_admin_user);
diff --git a/core/modules/update/src/Tests/UpdateCoreTest.php b/core/modules/update/src/Tests/UpdateCoreTest.php
index baecde8..0b25e35 100644
--- a/core/modules/update/src/Tests/UpdateCoreTest.php
+++ b/core/modules/update/src/Tests/UpdateCoreTest.php
@@ -44,7 +44,7 @@ protected function setSystemInfo($version) {
   /**
    * Tests the Update Manager module when no updates are available.
    */
-  function testNoUpdatesAvailable() {
+  public function testNoUpdatesAvailable() {
     foreach (array(0, 1) as $minor_version) {
       foreach (array(0, 1) as $patch_version) {
         foreach (array('-alpha1', '-beta1', '') as $extra_version) {
@@ -63,7 +63,7 @@ function testNoUpdatesAvailable() {
   /**
    * Tests the Update Manager module when one normal update is available.
    */
-  function testNormalUpdateAvailable() {
+  public function testNormalUpdateAvailable() {
     $this->setSystemInfo('8.0.0');
 
     // Ensure that the update check requires a token.
@@ -130,7 +130,7 @@ function testNormalUpdateAvailable() {
   /**
    * Tests the Update Manager module when a major update is available.
    */
-  function testMajorUpdateAvailable() {
+  public function testMajorUpdateAvailable() {
     foreach (array(0, 1) as $minor_version) {
       foreach (array(0, 1) as $patch_version) {
         foreach (array('-alpha1', '-beta1', '') as $extra_version) {
@@ -156,7 +156,7 @@ function testMajorUpdateAvailable() {
   /**
    * Tests the Update Manager module when a security update is available.
    */
-  function testSecurityUpdateAvailable() {
+  public function testSecurityUpdateAvailable() {
     foreach (array(0, 1) as $minor_version) {
       $this->setSystemInfo("8.$minor_version.0");
       $this->refreshUpdateStatus(array('drupal' => "$minor_version.2-sec"));
@@ -174,7 +174,7 @@ function testSecurityUpdateAvailable() {
   /**
    * Ensures proper results where there are date mismatches among modules.
    */
-  function testDatestampMismatch() {
+  public function testDatestampMismatch() {
     $system_info = array(
       '#all' => array(
         // We need to think we're running a -dev snapshot to see dates.
@@ -197,7 +197,7 @@ function testDatestampMismatch() {
   /**
    * Checks that running cron updates the list of available updates.
    */
-  function testModulePageRunCron() {
+  public function testModulePageRunCron() {
     $this->setSystemInfo('8.0.0');
     $this->config('update.settings')
       ->set('fetch.url', Url::fromRoute('update_test.update_test')->setAbsolute()->toString())
@@ -214,7 +214,7 @@ function testModulePageRunCron() {
   /**
    * Checks the messages at admin/modules when the site is up to date.
    */
-  function testModulePageUpToDate() {
+  public function testModulePageUpToDate() {
     $this->setSystemInfo('8.0.0');
     // Instead of using refreshUpdateStatus(), set these manually.
     $this->config('update.settings')
@@ -235,7 +235,7 @@ function testModulePageUpToDate() {
   /**
    * Checks the messages at admin/modules when an update is missing.
    */
-  function testModulePageRegularUpdate() {
+  public function testModulePageRegularUpdate() {
     $this->setSystemInfo('8.0.0');
     // Instead of using refreshUpdateStatus(), set these manually.
     $this->config('update.settings')
@@ -256,7 +256,7 @@ function testModulePageRegularUpdate() {
   /**
    * Checks the messages at admin/modules when a security update is missing.
    */
-  function testModulePageSecurityUpdate() {
+  public function testModulePageSecurityUpdate() {
     $this->setSystemInfo('8.0.0');
     // Instead of using refreshUpdateStatus(), set these manually.
     $this->config('update.settings')
@@ -295,7 +295,7 @@ function testModulePageSecurityUpdate() {
   /**
    * Tests the Update Manager module when the update server returns 503 errors.
    */
-  function testServiceUnavailable() {
+  public function testServiceUnavailable() {
     $this->refreshUpdateStatus(array(), '503-error');
     // Ensure that no "Warning: SimpleXMLElement..." parse errors are found.
     $this->assertNoText('SimpleXMLElement');
@@ -305,7 +305,7 @@ function testServiceUnavailable() {
   /**
    * Tests that exactly one fetch task per project is created and not more.
    */
-  function testFetchTasks() {
+  public function testFetchTasks() {
     $projecta = array(
       'name' => 'aaa_update_test',
     );
@@ -331,7 +331,7 @@ function testFetchTasks() {
   /**
    * Checks language module in core package at admin/reports/updates.
    */
-  function testLanguageModuleUpdate() {
+  public function testLanguageModuleUpdate() {
     $this->setSystemInfo('8.0.0');
     // Instead of using refreshUpdateStatus(), set these manually.
     $this->config('update.settings')
diff --git a/core/modules/update/src/Tests/UpdateDeleteFileIfStaleTest.php b/core/modules/update/src/Tests/UpdateDeleteFileIfStaleTest.php
index 63c2889..0977156 100644
--- a/core/modules/update/src/Tests/UpdateDeleteFileIfStaleTest.php
+++ b/core/modules/update/src/Tests/UpdateDeleteFileIfStaleTest.php
@@ -26,7 +26,7 @@ protected function setUp() {
   /**
    * Tests the deletion of stale files.
    */
-  function testUpdateDeleteFileIfStale() {
+  public function testUpdateDeleteFileIfStale() {
     $file_name = file_unmanaged_save_data($this->randomMachineName());
     $this->assertNotNull($file_name);
 
diff --git a/core/modules/update/src/Tests/UpdateUploadTest.php b/core/modules/update/src/Tests/UpdateUploadTest.php
index 39b6944..3aa3b9d 100644
--- a/core/modules/update/src/Tests/UpdateUploadTest.php
+++ b/core/modules/update/src/Tests/UpdateUploadTest.php
@@ -129,7 +129,7 @@ public function testUploadModule() {
   /**
    * Ensures that archiver extensions are properly merged in the UI.
    */
-  function testFileNameExtensionMerging() {
+  public function testFileNameExtensionMerging() {
     $this->drupalGet('admin/modules/install');
     // Make sure the bogus extension supported by update_test.module is there.
     $this->assertPattern('/file extensions are supported:.*update-test-extension/', "Found 'update-test-extension' extension.");
@@ -140,7 +140,7 @@ function testFileNameExtensionMerging() {
   /**
    * Checks the messages on update manager pages when missing a security update.
    */
-  function testUpdateManagerCoreSecurityUpdateMessages() {
+  public function testUpdateManagerCoreSecurityUpdateMessages() {
     $setting = array(
       '#all' => array(
         'version' => '8.0.0',
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index 6a3d6b1..a50f294 100644
--- a/core/modules/user/src/Entity/User.php
+++ b/core/modules/user/src/Entity/User.php
@@ -308,7 +308,7 @@ public function getTimeZone() {
   /**
    * {@inheritdoc}
    */
-  function getPreferredLangcode($fallback_to_default = TRUE) {
+  public function getPreferredLangcode($fallback_to_default = TRUE) {
     $language_list = $this->languageManager()->getLanguages();
     $preferred_langcode = $this->get('preferred_langcode')->value;
     if (!empty($preferred_langcode) && isset($language_list[$preferred_langcode])) {
@@ -322,7 +322,7 @@ function getPreferredLangcode($fallback_to_default = TRUE) {
   /**
    * {@inheritdoc}
    */
-  function getPreferredAdminLangcode($fallback_to_default = TRUE) {
+  public function getPreferredAdminLangcode($fallback_to_default = TRUE) {
     $language_list = $this->languageManager()->getLanguages();
     $preferred_langcode = $this->get('preferred_admin_langcode')->value;
     if (!empty($preferred_langcode) && isset($language_list[$preferred_langcode])) {
diff --git a/core/modules/user/src/Form/UserPermissionsForm.php b/core/modules/user/src/Form/UserPermissionsForm.php
index 75bbaf2..f3d08c8 100644
--- a/core/modules/user/src/Form/UserPermissionsForm.php
+++ b/core/modules/user/src/Form/UserPermissionsForm.php
@@ -192,7 +192,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
   /**
    * {@inheritdoc}
    */
-  function submitForm(array &$form, FormStateInterface $form_state) {
+  public function submitForm(array &$form, FormStateInterface $form_state) {
     foreach ($form_state->getValue('role_names') as $role_name => $name) {
       user_role_change_permissions($role_name, (array) $form_state->getValue($role_name));
     }
diff --git a/core/modules/user/src/Plugin/views/field/Permissions.php b/core/modules/user/src/Plugin/views/field/Permissions.php
index bd5c11d..c51dfce 100644
--- a/core/modules/user/src/Plugin/views/field/Permissions.php
+++ b/core/modules/user/src/Plugin/views/field/Permissions.php
@@ -108,7 +108,7 @@ public function preRender(&$values) {
     }
   }
 
-  function render_item($count, $item) {
+  public function render_item($count, $item) {
     return $item['permission'];
   }
 
diff --git a/core/modules/user/src/Plugin/views/field/Roles.php b/core/modules/user/src/Plugin/views/field/Roles.php
index 9d8edc0..d65e962 100644
--- a/core/modules/user/src/Plugin/views/field/Roles.php
+++ b/core/modules/user/src/Plugin/views/field/Roles.php
@@ -90,7 +90,7 @@ public function preRender(&$values) {
     }
   }
 
-  function render_item($count, $item) {
+  public function render_item($count, $item) {
     return $item['role'];
   }
 
diff --git a/core/modules/user/src/Plugin/views/filter/Roles.php b/core/modules/user/src/Plugin/views/filter/Roles.php
index 64074c3..65103fb 100644
--- a/core/modules/user/src/Plugin/views/filter/Roles.php
+++ b/core/modules/user/src/Plugin/views/filter/Roles.php
@@ -62,7 +62,7 @@ public function getValueOptions() {
   /**
    * Override empty and not empty operator labels to be clearer for user roles.
    */
-  function operators() {
+  public function operators() {
     $operators = parent::operators();
     $operators['empty']['title'] = $this->t("Only has the 'authenticated user' role");
     $operators['not empty']['title'] = $this->t("Has roles in addition to 'authenticated user'");
diff --git a/core/modules/user/src/PrivateTempStoreFactory.php b/core/modules/user/src/PrivateTempStoreFactory.php
index acbf41b..063a920 100644
--- a/core/modules/user/src/PrivateTempStoreFactory.php
+++ b/core/modules/user/src/PrivateTempStoreFactory.php
@@ -61,7 +61,7 @@ class PrivateTempStoreFactory {
    * @param int $expire
    *   The time to live for items, in seconds.
    */
-  function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, AccountProxyInterface $current_user, RequestStack $request_stack, $expire = 604800) {
+  public function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, AccountProxyInterface $current_user, RequestStack $request_stack, $expire = 604800) {
     $this->storageFactory = $storage_factory;
     $this->lockBackend = $lock_backend;
     $this->currentUser = $current_user;
@@ -79,7 +79,7 @@ function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBac
    * @return \Drupal\user\PrivateTempStore
    *   An instance of the key/value store.
    */
-  function get($collection) {
+  public function get($collection) {
     // Store the data for this collection in the database.
     $storage = $this->storageFactory->get("user.private_tempstore.$collection");
     return new PrivateTempStore($storage, $this->lockBackend, $this->currentUser, $this->requestStack, $this->expire);
diff --git a/core/modules/user/src/SharedTempStoreFactory.php b/core/modules/user/src/SharedTempStoreFactory.php
index 662ef47..c1c48a9 100644
--- a/core/modules/user/src/SharedTempStoreFactory.php
+++ b/core/modules/user/src/SharedTempStoreFactory.php
@@ -51,7 +51,7 @@ class SharedTempStoreFactory {
    * @param int $expire
    *   The time to live for items, in seconds.
    */
-  function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, RequestStack $request_stack, $expire = 604800) {
+  public function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBackendInterface $lock_backend, RequestStack $request_stack, $expire = 604800) {
     $this->storageFactory = $storage_factory;
     $this->lockBackend = $lock_backend;
     $this->requestStack = $request_stack;
@@ -72,7 +72,7 @@ function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBac
    * @return \Drupal\user\SharedTempStore
    *   An instance of the key/value store.
    */
-  function get($collection, $owner = NULL) {
+  public function get($collection, $owner = NULL) {
     // Use the currently authenticated user ID or the active user ID unless
     // the owner is overridden.
     if (!isset($owner)) {
diff --git a/core/modules/user/src/Tests/UserAccountLinksTest.php b/core/modules/user/src/Tests/UserAccountLinksTest.php
index 6d7d723..37006ce 100644
--- a/core/modules/user/src/Tests/UserAccountLinksTest.php
+++ b/core/modules/user/src/Tests/UserAccountLinksTest.php
@@ -31,7 +31,7 @@ protected function setUp() {
   /**
    * Tests the secondary menu.
    */
-  function testSecondaryMenu() {
+  public function testSecondaryMenu() {
     // Create a regular user.
     $user = $this->drupalCreateUser(array());
 
@@ -71,7 +71,7 @@ function testSecondaryMenu() {
   /**
    * Tests disabling the 'My account' link.
    */
-  function testDisabledAccountLink() {
+  public function testDisabledAccountLink() {
     // Create an admin user and log in.
     $this->drupalLogin($this->drupalCreateUser(array('access administration pages', 'administer menu')));
 
@@ -110,7 +110,7 @@ function testDisabledAccountLink() {
   /**
    * Tests page title is set correctly on user account tabs.
    */
-  function testAccountPageTitles() {
+  public function testAccountPageTitles() {
     // Default page titles are suffixed with the site name - Drupal.
     $title_suffix = ' | Drupal';
 
diff --git a/core/modules/user/src/Tests/UserAdminLanguageTest.php b/core/modules/user/src/Tests/UserAdminLanguageTest.php
index 03baa04..83f51b4 100644
--- a/core/modules/user/src/Tests/UserAdminLanguageTest.php
+++ b/core/modules/user/src/Tests/UserAdminLanguageTest.php
@@ -44,7 +44,7 @@ protected function setUp() {
   /**
    * Tests that admin language is not configurable in single language sites.
    */
-  function testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage() {
+  public function testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage() {
     $this->drupalLogin($this->adminUser);
     $this->setLanguageNegotiation();
     $path = 'user/' . $this->adminUser->id() . '/edit';
@@ -56,7 +56,7 @@ function testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage() {
   /**
    * Tests that admin language negotiation is configurable only if enabled.
    */
-  function testUserAdminLanguageConfigurationAvailableWithAdminLanguageNegotiation() {
+  public function testUserAdminLanguageConfigurationAvailableWithAdminLanguageNegotiation() {
     $this->drupalLogin($this->adminUser);
     $this->addCustomLanguage();
     $path = 'user/' . $this->adminUser->id() . '/edit';
@@ -83,7 +83,7 @@ function testUserAdminLanguageConfigurationAvailableWithAdminLanguageNegotiation
    * have a setting for pages they cannot access, so they should not be able to
    * set a language for those pages.
    */
-  function testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIsEnabled() {
+  public function testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIsEnabled() {
     $this->drupalLogin($this->adminUser);
     // Adds a new language, because with only one language, setting won't show.
     $this->addCustomLanguage();
@@ -103,7 +103,7 @@ function testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIs
   /**
    * Tests the actual language negotiation.
    */
-  function testActualNegotiation() {
+  public function testActualNegotiation() {
     $this->drupalLogin($this->adminUser);
     $this->addCustomLanguage();
     $this->setLanguageNegotiation();
@@ -155,7 +155,7 @@ function testActualNegotiation() {
    * @param bool $admin_first
    *   Whether the admin negotiation should be first.
    */
-  function setLanguageNegotiation($admin_first = FALSE) {
+  public function setLanguageNegotiation($admin_first = FALSE) {
     $edit = array(
       'language_interface[enabled][language-user-admin]' => TRUE,
       'language_interface[enabled][language-url]' => TRUE,
@@ -168,7 +168,7 @@ function setLanguageNegotiation($admin_first = FALSE) {
   /**
    * Helper method for adding a custom language.
    */
-  function addCustomLanguage() {
+  public function addCustomLanguage() {
     $langcode = 'xx';
     // The English name for the language.
     $name = $this->randomMachineName(16);
diff --git a/core/modules/user/src/Tests/UserAdminTest.php b/core/modules/user/src/Tests/UserAdminTest.php
index 8d4a22b..aa30361 100644
--- a/core/modules/user/src/Tests/UserAdminTest.php
+++ b/core/modules/user/src/Tests/UserAdminTest.php
@@ -22,7 +22,7 @@ class UserAdminTest extends WebTestBase {
   /**
    * Registers a user and deletes it.
    */
-  function testUserAdmin() {
+  public function testUserAdmin() {
     $config = $this->config('user.settings');
     $user_a = $this->drupalCreateUser();
     $user_a->name = 'User A';
@@ -149,7 +149,7 @@ function testUserAdmin() {
   /**
    * Tests the alternate notification email address for user mails.
    */
-  function testNotificationEmailAddress() {
+  public function testNotificationEmailAddress() {
     // Test that the Notification Email address field is on the config page.
     $admin_user = $this->drupalCreateUser(array('administer users', 'administer account settings'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/user/src/Tests/UserBlocksTest.php b/core/modules/user/src/Tests/UserBlocksTest.php
index 9216a27..3576050 100644
--- a/core/modules/user/src/Tests/UserBlocksTest.php
+++ b/core/modules/user/src/Tests/UserBlocksTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Tests that user login block is hidden from user/login.
    */
-  function testUserLoginBlockVisibility() {
+  public function testUserLoginBlockVisibility() {
     // Array keyed list where key being the URL address and value being expected
     // visibility as boolean type.
     $paths = [
@@ -61,7 +61,7 @@ function testUserLoginBlockVisibility() {
   /**
    * Test the user login block.
    */
-  function testUserLoginBlock() {
+  public function testUserLoginBlock() {
     // Create a user with some permission that anonymous users lack.
     $user = $this->drupalCreateUser(array('administer permissions'));
 
@@ -103,7 +103,7 @@ function testUserLoginBlock() {
   /**
    * Test the Who's Online block.
    */
-  function testWhosOnlineBlock() {
+  public function testWhosOnlineBlock() {
     $block = $this->drupalPlaceBlock('views_block:who_s_online-who_s_online_block');
 
     // Generate users.
diff --git a/core/modules/user/src/Tests/UserCancelTest.php b/core/modules/user/src/Tests/UserCancelTest.php
index 4ce4d91..00d0f9a 100644
--- a/core/modules/user/src/Tests/UserCancelTest.php
+++ b/core/modules/user/src/Tests/UserCancelTest.php
@@ -33,7 +33,7 @@ protected function setUp() {
   /**
    * Attempt to cancel account without permission.
    */
-  function testUserCancelWithoutPermission() {
+  public function testUserCancelWithoutPermission() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
     $user_storage = $this->container->get('entity.manager')->getStorage('user');
@@ -94,7 +94,7 @@ public function testUserCancelChangePermission() {
    * This should never be possible, or the site owner would become unable to
    * administer the site.
    */
-  function testUserCancelUid1() {
+  public function testUserCancelUid1() {
     $user_storage = $this->container->get('entity.manager')->getStorage('user');
 
     \Drupal::service('module_installer')->install(array('views'));
@@ -135,7 +135,7 @@ function testUserCancelUid1() {
   /**
    * Attempt invalid account cancellations.
    */
-  function testUserCancelInvalid() {
+  public function testUserCancelInvalid() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
     $user_storage = $this->container->get('entity.manager')->getStorage('user');
@@ -183,7 +183,7 @@ function testUserCancelInvalid() {
   /**
    * Disable account and keep all content.
    */
-  function testUserBlock() {
+  public function testUserBlock() {
     $this->config('user.settings')->set('cancel_method', 'user_cancel_block')->save();
     $user_storage = $this->container->get('entity.manager')->getStorage('user');
 
@@ -221,7 +221,7 @@ function testUserBlock() {
   /**
    * Disable account and unpublish all content.
    */
-  function testUserBlockUnpublish() {
+  public function testUserBlockUnpublish() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $this->config('user.settings')->set('cancel_method', 'user_cancel_block_unpublish')->save();
     // Create comment field on page.
@@ -291,7 +291,7 @@ function testUserBlockUnpublish() {
   /**
    * Delete account and anonymize all content.
    */
-  function testUserAnonymize() {
+  public function testUserAnonymize() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
     // Create comment field on page.
@@ -418,7 +418,7 @@ public function testUserAnonymizeBatch() {
   /**
    * Delete account and remove all content.
    */
-  function testUserDelete() {
+  public function testUserDelete() {
     $node_storage = $this->container->get('entity.manager')->getStorage('node');
     $this->config('user.settings')->set('cancel_method', 'user_cancel_delete')->save();
     \Drupal::service('module_installer')->install(array('comment'));
@@ -489,7 +489,7 @@ function testUserDelete() {
   /**
    * Create an administrative user and delete another user.
    */
-  function testUserCancelByAdmin() {
+  public function testUserCancelByAdmin() {
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
 
     // Create a regular user.
@@ -514,7 +514,7 @@ function testUserCancelByAdmin() {
   /**
    * Tests deletion of a user account without an email address.
    */
-  function testUserWithoutEmailCancelByAdmin() {
+  public function testUserWithoutEmailCancelByAdmin() {
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
 
     // Create a regular user.
@@ -542,7 +542,7 @@ function testUserWithoutEmailCancelByAdmin() {
   /**
    * Create an administrative user and mass-delete other users.
    */
-  function testMassUserCancelByAdmin() {
+  public function testMassUserCancelByAdmin() {
     \Drupal::service('module_installer')->install(array('views'));
     \Drupal::service('router.builder')->rebuild();
     $this->config('user.settings')->set('cancel_method', 'user_cancel_reassign')->save();
diff --git a/core/modules/user/src/Tests/UserDeleteTest.php b/core/modules/user/src/Tests/UserDeleteTest.php
index dbb3002..eaf84f9 100644
--- a/core/modules/user/src/Tests/UserDeleteTest.php
+++ b/core/modules/user/src/Tests/UserDeleteTest.php
@@ -15,7 +15,7 @@ class UserDeleteTest extends WebTestBase {
   /**
    * Test deleting multiple users.
    */
-  function testUserDeleteMultiple() {
+  public function testUserDeleteMultiple() {
     // Create a few users with permissions, so roles will be created.
     $user_a = $this->drupalCreateUser(array('access user profiles'));
     $user_b = $this->drupalCreateUser(array('access user profiles'));
diff --git a/core/modules/user/src/Tests/UserEditTest.php b/core/modules/user/src/Tests/UserEditTest.php
index 5b34d2e..9d01933 100644
--- a/core/modules/user/src/Tests/UserEditTest.php
+++ b/core/modules/user/src/Tests/UserEditTest.php
@@ -14,7 +14,7 @@ class UserEditTest extends WebTestBase {
   /**
    * Test user edit page.
    */
-  function testUserEdit() {
+  public function testUserEdit() {
     // Test user edit functionality.
     $user1 = $this->drupalCreateUser(array('change own username'));
     $user2 = $this->drupalCreateUser(array());
@@ -131,7 +131,7 @@ public function testUserWith0Password() {
   /**
    * Tests editing of a user account without an email address.
    */
-  function testUserWithoutEmailEdit() {
+  public function testUserWithoutEmailEdit() {
     // Test that an admin can edit users without an email address.
     $admin = $this->drupalCreateUser(array('administer users'));
     $this->drupalLogin($admin);
diff --git a/core/modules/user/src/Tests/UserEditedOwnAccountTest.php b/core/modules/user/src/Tests/UserEditedOwnAccountTest.php
index 6c058bf..66ddd73 100644
--- a/core/modules/user/src/Tests/UserEditedOwnAccountTest.php
+++ b/core/modules/user/src/Tests/UserEditedOwnAccountTest.php
@@ -18,7 +18,7 @@ class UserEditedOwnAccountTest extends WebTestBase {
    */
   public static $modules = array('user_form_test');
 
-  function testUserEditedOwnAccount() {
+  public function testUserEditedOwnAccount() {
     // Change account setting 'Who can register accounts?' to Administrators
     // only.
     $this->config('user.settings')->set('register', USER_REGISTER_ADMINISTRATORS_ONLY)->save();
diff --git a/core/modules/user/src/Tests/UserEntityCallbacksTest.php b/core/modules/user/src/Tests/UserEntityCallbacksTest.php
index 944b352..a970544 100644
--- a/core/modules/user/src/Tests/UserEntityCallbacksTest.php
+++ b/core/modules/user/src/Tests/UserEntityCallbacksTest.php
@@ -44,7 +44,7 @@ protected function setUp() {
   /**
    * Test label callback.
    */
-  function testLabelCallback() {
+  public function testLabelCallback() {
     $this->assertEqual($this->account->label(), $this->account->getUsername(), 'The username should be used as label');
 
     // Setup a random anonymous name to be sure the name is used.
diff --git a/core/modules/user/src/Tests/UserLanguageCreationTest.php b/core/modules/user/src/Tests/UserLanguageCreationTest.php
index 08ca707..0801cf4 100644
--- a/core/modules/user/src/Tests/UserLanguageCreationTest.php
+++ b/core/modules/user/src/Tests/UserLanguageCreationTest.php
@@ -23,7 +23,7 @@ class UserLanguageCreationTest extends WebTestBase {
   /**
    * Functional test for language handling during user creation.
    */
-  function testLocalUserCreation() {
+  public function testLocalUserCreation() {
     // User to add and remove language and create new users.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages', 'administer users'));
     $this->drupalLogin($admin_user);
diff --git a/core/modules/user/src/Tests/UserLanguageTest.php b/core/modules/user/src/Tests/UserLanguageTest.php
index 5c5f73f..ed9f88f 100644
--- a/core/modules/user/src/Tests/UserLanguageTest.php
+++ b/core/modules/user/src/Tests/UserLanguageTest.php
@@ -22,7 +22,7 @@ class UserLanguageTest extends WebTestBase {
   /**
    * Test if user can change their default language.
    */
-  function testUserLanguageConfiguration() {
+  public function testUserLanguageConfiguration() {
     // User to add and remove language.
     $admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
     // User to change their default language.
diff --git a/core/modules/user/src/Tests/UserLoginTest.php b/core/modules/user/src/Tests/UserLoginTest.php
index af00c74..97ca4ab 100644
--- a/core/modules/user/src/Tests/UserLoginTest.php
+++ b/core/modules/user/src/Tests/UserLoginTest.php
@@ -15,7 +15,7 @@ class UserLoginTest extends WebTestBase {
   /**
    * Tests login with destination.
    */
-  function testLoginCacheTagsAndDestination() {
+  public function testLoginCacheTagsAndDestination() {
     $this->drupalGet('user/login');
     // The user login form says "Enter your <site name> username.", hence it
     // depends on config:system.site, and its cache tags should be present.
@@ -31,7 +31,7 @@ function testLoginCacheTagsAndDestination() {
   /**
    * Test the global login flood control.
    */
-  function testGlobalLoginFloodControl() {
+  public function testGlobalLoginFloodControl() {
     $this->config('user.flood')
       ->set('ip_limit', 10)
       // Set a high per-user limit out so that it is not relevant in the test.
@@ -68,7 +68,7 @@ function testGlobalLoginFloodControl() {
   /**
    * Test the per-user login flood control.
    */
-  function testPerUserLoginFloodControl() {
+  public function testPerUserLoginFloodControl() {
     $this->config('user.flood')
       // Set a high global limit out so that it is not relevant in the test.
       ->set('ip_limit', 4000)
@@ -108,7 +108,7 @@ function testPerUserLoginFloodControl() {
   /**
    * Test that user password is re-hashed upon login after changing $count_log2.
    */
-  function testPasswordRehashOnLogin() {
+  public function testPasswordRehashOnLogin() {
     // Determine default log2 for phpass hashing algorithm
     $default_count_log2 = 16;
 
@@ -154,7 +154,7 @@ function testPasswordRehashOnLogin() {
    *   .
    *   - Set to NULL to expect a failed login.
    */
-  function assertFailedLogin($account, $flood_trigger = NULL) {
+  public function assertFailedLogin($account, $flood_trigger = NULL) {
     $edit = array(
       'name' => $account->getUsername(),
       'pass' => $account->pass_raw,
diff --git a/core/modules/user/src/Tests/UserPasswordResetTest.php b/core/modules/user/src/Tests/UserPasswordResetTest.php
index c012e9f..c1fcfa5 100644
--- a/core/modules/user/src/Tests/UserPasswordResetTest.php
+++ b/core/modules/user/src/Tests/UserPasswordResetTest.php
@@ -69,7 +69,7 @@ protected function setUp() {
   /**
    * Tests password reset functionality.
    */
-  function testUserPasswordReset() {
+  public function testUserPasswordReset() {
     // Verify that accessing the password reset form without having the session
     // variables set results in an access denied message.
     $this->drupalGet(Url::fromRoute('user.reset.form', ['uid' => $this->account->id()]));
@@ -297,7 +297,7 @@ public function testUserResetPasswordTextboxFilled() {
   /**
    * Make sure that users cannot forge password reset URLs of other users.
    */
-  function testResetImpersonation() {
+  public function testResetImpersonation() {
     // Create two identical user accounts except for the user name. They must
     // have the same empty password, so we can't use $this->drupalCreateUser().
     $edit = array();
diff --git a/core/modules/user/src/Tests/UserPermissionsTest.php b/core/modules/user/src/Tests/UserPermissionsTest.php
index 5e3ecd5..33aeb09 100644
--- a/core/modules/user/src/Tests/UserPermissionsTest.php
+++ b/core/modules/user/src/Tests/UserPermissionsTest.php
@@ -42,7 +42,7 @@ protected function setUp() {
   /**
    * Test changing user permissions through the permissions page.
    */
-  function testUserPermissionChanges() {
+  public function testUserPermissionChanges() {
     $permissions_hash_generator = $this->container->get('user_permissions_hash_generator');
 
     $storage = $this->container->get('entity.manager')->getStorage('user_role');
@@ -92,7 +92,7 @@ function testUserPermissionChanges() {
   /**
    * Test assigning of permissions for the administrator role.
    */
-  function testAdministratorRole() {
+  public function testAdministratorRole() {
     $this->drupalLogin($this->adminUser);
     $this->drupalGet('admin/config/people/accounts');
 
@@ -135,7 +135,7 @@ function testAdministratorRole() {
   /**
    * Verify proper permission changes by user_role_change_permissions().
    */
-  function testUserRoleChangePermissions() {
+  public function testUserRoleChangePermissions() {
     $permissions_hash_generator = $this->container->get('user_permissions_hash_generator');
 
     $rid = $this->rid;
diff --git a/core/modules/user/src/Tests/UserPictureTest.php b/core/modules/user/src/Tests/UserPictureTest.php
index 3f8db42..8a110de 100644
--- a/core/modules/user/src/Tests/UserPictureTest.php
+++ b/core/modules/user/src/Tests/UserPictureTest.php
@@ -44,7 +44,7 @@ protected function setUp() {
   /**
    * Tests creation, display, and deletion of user pictures.
    */
-  function testCreateDeletePicture() {
+  public function testCreateDeletePicture() {
     $this->drupalLogin($this->webUser);
 
     // Save a new picture.
@@ -81,7 +81,7 @@ function testCreateDeletePicture() {
   /**
    * Tests embedded users on node pages.
    */
-  function testPictureOnNodeComment() {
+  public function testPictureOnNodeComment() {
     $this->drupalLogin($this->webUser);
 
     // Save a new picture.
@@ -129,7 +129,7 @@ function testPictureOnNodeComment() {
   /**
    * Edits the user picture for the test user.
    */
-  function saveUserPicture($image) {
+  public function saveUserPicture($image) {
     $edit = array('files[user_picture_0]' => drupal_realpath($image->uri));
     $this->drupalPostForm('user/' . $this->webUser->id() . '/edit', $edit, t('Save'));
 
diff --git a/core/modules/user/src/Tests/UserRegistrationTest.php b/core/modules/user/src/Tests/UserRegistrationTest.php
index 0831362..0930d48 100644
--- a/core/modules/user/src/Tests/UserRegistrationTest.php
+++ b/core/modules/user/src/Tests/UserRegistrationTest.php
@@ -23,7 +23,7 @@ class UserRegistrationTest extends WebTestBase {
    */
   public static $modules = array('field_test');
 
-  function testRegistrationWithEmailVerification() {
+  public function testRegistrationWithEmailVerification() {
     $config = $this->config('user.settings');
     // Require email verification.
     $config->set('verify_mail', TRUE)->save();
@@ -62,7 +62,7 @@ function testRegistrationWithEmailVerification() {
     $this->assertFalse($new_user->isActive(), 'New account is blocked until approved by an administrator.');
   }
 
-  function testRegistrationWithoutEmailVerification() {
+  public function testRegistrationWithoutEmailVerification() {
     $config = $this->config('user.settings');
     // Don't require email verification and allow registration by site visitors
     // without administrator approval.
@@ -128,7 +128,7 @@ function testRegistrationWithoutEmailVerification() {
     $this->assertText(t('Member for'), 'User can log in after administrator approval.');
   }
 
-  function testRegistrationEmailDuplicates() {
+  public function testRegistrationEmailDuplicates() {
     // Don't require email verification and allow registration by site visitors
     // without administrator approval.
     $this->config('user.settings')
@@ -223,7 +223,7 @@ public function testUuidFormState() {
     $this->assertTrue($user_storage->loadByProperties(['name' => $edit['name']]));
   }
 
-  function testRegistrationDefaultValues() {
+  public function testRegistrationDefaultValues() {
     // Don't require email verification and allow registration by site visitors
     // without administrator approval.
     $config_user_settings = $this->config('user.settings')
@@ -287,7 +287,7 @@ public function testUniqueFields() {
   /**
    * Tests Field API fields on user registration forms.
    */
-  function testRegistrationWithUserFields() {
+  public function testRegistrationWithUserFields() {
     // Create a field on 'user' entity type.
     $field_storage = FieldStorageConfig::create(array(
       'field_name' => 'test_user_field',
diff --git a/core/modules/user/src/Tests/UserRoleAdminTest.php b/core/modules/user/src/Tests/UserRoleAdminTest.php
index 182da93..05e68ca 100644
--- a/core/modules/user/src/Tests/UserRoleAdminTest.php
+++ b/core/modules/user/src/Tests/UserRoleAdminTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Test adding, renaming and deleting roles.
    */
-  function testRoleAdministration() {
+  public function testRoleAdministration() {
     $this->drupalLogin($this->adminUser);
     $default_langcode = \Drupal::languageManager()->getDefaultLanguage()->getId();
     // Test presence of tab.
@@ -98,7 +98,7 @@ function testRoleAdministration() {
   /**
    * Test user role weight change operation and ordering.
    */
-  function testRoleWeightOrdering() {
+  public function testRoleWeightOrdering() {
     $this->drupalLogin($this->adminUser);
     $roles = user_roles();
     $weight = count($roles);
diff --git a/core/modules/user/src/Tests/UserRolesAssignmentTest.php b/core/modules/user/src/Tests/UserRolesAssignmentTest.php
index 485bd2f..9852b90 100644
--- a/core/modules/user/src/Tests/UserRolesAssignmentTest.php
+++ b/core/modules/user/src/Tests/UserRolesAssignmentTest.php
@@ -21,7 +21,7 @@ protected function setUp() {
    * Tests that a user can be assigned a role and that the role can be removed
    * again.
    */
-  function testAssignAndRemoveRole()  {
+  public function testAssignAndRemoveRole()  {
     $rid = $this->drupalCreateRole(array('administer users'));
     $account = $this->drupalCreateUser();
 
@@ -42,7 +42,7 @@ function testAssignAndRemoveRole()  {
    * Tests that when creating a user the role can be assigned. And that it can
    * be removed again.
    */
-  function testCreateUserWithRole() {
+  public function testCreateUserWithRole() {
     $rid = $this->drupalCreateRole(array('administer users'));
     // Create a new user and add the role at the same time.
     $edit = array(
diff --git a/core/modules/user/src/Tests/UserSaveTest.php b/core/modules/user/src/Tests/UserSaveTest.php
index 6a454ee..b7185cb 100644
--- a/core/modules/user/src/Tests/UserSaveTest.php
+++ b/core/modules/user/src/Tests/UserSaveTest.php
@@ -15,7 +15,7 @@ class UserSaveTest extends WebTestBase {
   /**
    * Test creating a user with arbitrary uid.
    */
-  function testUserImport() {
+  public function testUserImport() {
     // User ID must be a number that is not in the database.
 
     $uids = \Drupal::entityManager()->getStorage('user')->getQuery()
@@ -48,7 +48,7 @@ function testUserImport() {
   /**
    * Ensures that an existing password is unset after the user was saved.
    */
-  function testExistingPasswordRemoval() {
+  public function testExistingPasswordRemoval() {
     /** @var \Drupal\user\Entity\User $user */
     $user = User::create(['name' => $this->randomMachineName()]);
     $user->save();
diff --git a/core/modules/user/src/Tests/UserSearchTest.php b/core/modules/user/src/Tests/UserSearchTest.php
index d154030..7768e0f 100644
--- a/core/modules/user/src/Tests/UserSearchTest.php
+++ b/core/modules/user/src/Tests/UserSearchTest.php
@@ -19,7 +19,7 @@ class UserSearchTest extends WebTestBase {
    */
   public static $modules = array('search');
 
-  function testUserSearch() {
+  public function testUserSearch() {
     // Verify that a user without 'administer users' permission cannot search
     // for users by email address. Additionally, ensure that the username has a
     // plus sign to ensure searching works with that.
diff --git a/core/modules/user/src/Tests/UserTimeZoneTest.php b/core/modules/user/src/Tests/UserTimeZoneTest.php
index 3229d31..05b711f 100644
--- a/core/modules/user/src/Tests/UserTimeZoneTest.php
+++ b/core/modules/user/src/Tests/UserTimeZoneTest.php
@@ -22,7 +22,7 @@ class UserTimeZoneTest extends WebTestBase {
   /**
    * Tests the display of dates and time when user-configurable time zones are set.
    */
-  function testUserTimeZone() {
+  public function testUserTimeZone() {
     // Setup date/time settings for Los Angeles time.
     $this->config('system.date')
       ->set('timezone.user.configurable', 1)
diff --git a/core/modules/user/src/Tests/UserTokenReplaceTest.php b/core/modules/user/src/Tests/UserTokenReplaceTest.php
index b8cfde0..294562a 100644
--- a/core/modules/user/src/Tests/UserTokenReplaceTest.php
+++ b/core/modules/user/src/Tests/UserTokenReplaceTest.php
@@ -34,7 +34,7 @@ protected function setUp() {
   /**
    * Creates a user, then tests the tokens generated from it.
    */
-  function testUserTokenReplacement() {
+  public function testUserTokenReplacement() {
     $token_service = \Drupal::token();
     $language_interface = \Drupal::languageManager()->getCurrentLanguage();
     $url_options = array(
diff --git a/core/modules/user/src/Tests/Views/AccessPermissionTest.php b/core/modules/user/src/Tests/Views/AccessPermissionTest.php
index b8ef5a9..9f233ff 100644
--- a/core/modules/user/src/Tests/Views/AccessPermissionTest.php
+++ b/core/modules/user/src/Tests/Views/AccessPermissionTest.php
@@ -24,7 +24,7 @@ class AccessPermissionTest extends AccessTestBase {
   /**
    * Tests perm access plugin.
    */
-  function testAccessPerm() {
+  public function testAccessPerm() {
     $view = Views::getView('test_access_perm');
     $view->setDisplay();
 
diff --git a/core/modules/user/src/Tests/Views/AccessRoleTest.php b/core/modules/user/src/Tests/Views/AccessRoleTest.php
index 02a83a7..11ab713 100644
--- a/core/modules/user/src/Tests/Views/AccessRoleTest.php
+++ b/core/modules/user/src/Tests/Views/AccessRoleTest.php
@@ -25,7 +25,7 @@ class AccessRoleTest extends AccessTestBase {
   /**
    * Tests role access plugin.
    */
-  function testAccessRole() {
+  public function testAccessRole() {
     /** @var \Drupal\views\ViewEntityInterface $view */
     $view = \Drupal::entityManager()->getStorage('view')->load('test_access_role');
     $display = &$view->getDisplay('default');
diff --git a/core/modules/user/src/Tests/Views/ArgumentValidateTest.php b/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
index 0a49142..1714f1e 100644
--- a/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
+++ b/core/modules/user/src/Tests/Views/ArgumentValidateTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests the User (ID) argument validator.
    */
-  function testArgumentValidateUserUid() {
+  public function testArgumentValidateUserUid() {
     $account = $this->account;
 
     $view = Views::getView('test_view_argument_validate_user');
diff --git a/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php b/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
index 4022972..4c1cad5 100644
--- a/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
+++ b/core/modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
@@ -23,7 +23,7 @@ class UserAccountFormFieldsTest extends KernelTestBase {
   /**
    * Tests the root user account form section in the "Configure site" form.
    */
-  function testInstallConfigureForm() {
+  public function testInstallConfigureForm() {
     require_once \Drupal::root() . '/core/includes/install.core.inc';
     require_once \Drupal::root() . '/core/includes/install.inc';
     $install_state = install_state_defaults();
@@ -45,7 +45,7 @@ function testInstallConfigureForm() {
   /**
    * Tests the user registration form.
    */
-  function testUserRegistrationForm() {
+  public function testUserRegistrationForm() {
     // Install default configuration; required for AccountFormController.
     $this->installConfig(array('user'));
 
@@ -69,7 +69,7 @@ function testUserRegistrationForm() {
   /**
    * Tests the user edit form.
    */
-  function testUserEditForm() {
+  public function testUserEditForm() {
     // Install default configuration; required for AccountFormController.
     $this->installConfig(array('user'));
 
diff --git a/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php b/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
index 3426349..2195e3c 100644
--- a/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
+++ b/core/modules/user/tests/src/Kernel/UserActionConfigSchemaTest.php
@@ -26,7 +26,7 @@ class UserActionConfigSchemaTest extends KernelTestBase {
   /**
    * Tests whether the user action config schema are valid.
    */
-  function testValidUserActionConfigSchema() {
+  public function testValidUserActionConfigSchema() {
     $rid = strtolower($this->randomMachineName(8));
     Role::create(array('id' => $rid))->save();
 
diff --git a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
index 8958c54..b88d471 100644
--- a/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
+++ b/core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php
@@ -54,7 +54,7 @@ protected function setUp() {
   /**
    * Tests user selection by roles.
    */
-  function testUserSelectionByRole() {
+  public function testUserSelectionByRole() {
     $field_definition = FieldConfig::loadByName('user', 'user', 'user_reference');
     $handler_settings = $field_definition->getSetting('handler_settings');
     $handler_settings['filter']['role'] = array(
diff --git a/core/modules/user/tests/src/Kernel/UserFieldsTest.php b/core/modules/user/tests/src/Kernel/UserFieldsTest.php
index f0fb532..e02e619 100644
--- a/core/modules/user/tests/src/Kernel/UserFieldsTest.php
+++ b/core/modules/user/tests/src/Kernel/UserFieldsTest.php
@@ -36,7 +36,7 @@ protected function setUp() {
   /**
    * Tests account's available fields.
    */
-  function testUserFields() {
+  public function testUserFields() {
     // Create the user to test the user fields.
     $user = User::create([
       'name' => 'foobar',
diff --git a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
index 00a29fc..8aa6573 100644
--- a/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
+++ b/core/modules/user/tests/src/Kernel/UserSaveStatusTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Test SAVED_NEW and SAVED_UPDATED statuses for user entity type.
    */
-  function testUserSaveStatus() {
+  public function testUserSaveStatus() {
     // Create a new user.
     $values = array(
       'uid' => 1,
diff --git a/core/modules/user/tests/src/Kernel/UserValidationTest.php b/core/modules/user/tests/src/Kernel/UserValidationTest.php
index b27b00f..140736b 100644
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php
+++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php
@@ -39,7 +39,7 @@ protected function setUp() {
   /**
    * Tests user name validation.
    */
-  function testUsernames() {
+  public function testUsernames() {
     $test_cases = array( // '<username>' => array('<description>', 'assert<testName>'),
       'foo'                    => array('Valid username', 'assertNull'),
       'FOO'                    => array('Valid username', 'assertNull'),
@@ -69,7 +69,7 @@ function testUsernames() {
   /**
    * Runs entity validation checks.
    */
-  function testValidation() {
+  public function testValidation() {
     $user = User::create(array(
       'name' => 'test',
       'mail' => 'test@example.com',
diff --git a/core/modules/views/src/Analyzer.php b/core/modules/views/src/Analyzer.php
index 2a33342..752f8fc 100644
--- a/core/modules/views/src/Analyzer.php
+++ b/core/modules/views/src/Analyzer.php
@@ -115,7 +115,7 @@ public function formatMessages(array $messages) {
    * @return array
    *   A single formatted message, consisting of a key message and a key type.
    */
-  static function formatMessage($message, $type = 'error') {
+  public static function formatMessage($message, $type = 'error') {
     return array('message' => $message, 'type' => $type);
   }
 
diff --git a/core/modules/views/src/EntityViewsData.php b/core/modules/views/src/EntityViewsData.php
index 61def5a..fda4d90 100644
--- a/core/modules/views/src/EntityViewsData.php
+++ b/core/modules/views/src/EntityViewsData.php
@@ -78,7 +78,7 @@ class EntityViewsData implements EntityHandlerInterface, EntityViewsDataInterfac
    * @param \Drupal\Core\StringTranslation\TranslationInterface $translation_manager
    *   The translation manager.
    */
-  function __construct(EntityTypeInterface $entity_type, SqlEntityStorageInterface $storage_controller, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, TranslationInterface $translation_manager) {
+  public function __construct(EntityTypeInterface $entity_type, SqlEntityStorageInterface $storage_controller, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, TranslationInterface $translation_manager) {
     $this->entityType = $entity_type;
     $this->entityManager = $entity_manager;
     $this->storage = $storage_controller;
diff --git a/core/modules/views/src/ManyToOneHelper.php b/core/modules/views/src/ManyToOneHelper.php
index a3c4834..3efa9e4 100644
--- a/core/modules/views/src/ManyToOneHelper.php
+++ b/core/modules/views/src/ManyToOneHelper.php
@@ -20,7 +20,7 @@
  */
 class ManyToOneHelper {
 
-  function __construct($handler) {
+  public function __construct($handler) {
     $this->handler = $handler;
   }
 
diff --git a/core/modules/views/src/Plugin/views/area/HTTPStatusCode.php b/core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
index 4f6667a..329325d 100644
--- a/core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
+++ b/core/modules/views/src/Plugin/views/area/HTTPStatusCode.php
@@ -57,7 +57,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
   /**
    * {@inheritdoc}
    */
-  function render($empty = FALSE) {
+  public function render($empty = FALSE) {
     if (!$empty || !empty($this->options['empty'])) {
       $build['#attached']['http_header'][] = ['Status', $this->options['status_code']];
       return $build;
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index 7abd1df..2fcebbf 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -775,7 +775,7 @@ protected function defaultDefault() {
   /**
    * Determine if the argument is set to provide a default argument.
    */
-  function hasDefaultArgument() {
+  public function hasDefaultArgument() {
     $info = $this->defaultActions($this->options['default_action']);
     return !empty($info['has default argument']);
   }
@@ -960,7 +960,7 @@ public function query($group_by = FALSE) {
    *
    * This usually needs to be overridden to provide a proper title.
    */
-  function title() {
+  public function title() {
     return $this->argument;
   }
 
diff --git a/core/modules/views/src/Plugin/views/argument/DayDate.php b/core/modules/views/src/Plugin/views/argument/DayDate.php
index 187be04..42bd817 100644
--- a/core/modules/views/src/Plugin/views/argument/DayDate.php
+++ b/core/modules/views/src/Plugin/views/argument/DayDate.php
@@ -31,7 +31,7 @@ public function summaryName($data) {
   /**
    * Provide a link to the next level of the view
    */
-  function title() {
+  public function title() {
     $day = str_pad($this->argument, 2, '0', STR_PAD_LEFT);
     return format_date(strtotime("2005" . "05" . $day . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
   }
diff --git a/core/modules/views/src/Plugin/views/argument/FullDate.php b/core/modules/views/src/Plugin/views/argument/FullDate.php
index 84bcd8c..ca4ca9f 100644
--- a/core/modules/views/src/Plugin/views/argument/FullDate.php
+++ b/core/modules/views/src/Plugin/views/argument/FullDate.php
@@ -30,7 +30,7 @@ public function summaryName($data) {
   /**
    * Provide a link to the next level of the view
    */
-  function title() {
+  public function title() {
     return format_date(strtotime($this->argument . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
   }
 
diff --git a/core/modules/views/src/Plugin/views/argument/LanguageArgument.php b/core/modules/views/src/Plugin/views/argument/LanguageArgument.php
index ef9e152..2eb1870 100644
--- a/core/modules/views/src/Plugin/views/argument/LanguageArgument.php
+++ b/core/modules/views/src/Plugin/views/argument/LanguageArgument.php
@@ -26,7 +26,7 @@ public function summaryName($data) {
    * Gets the user friendly version of the language name for display as a
    * title placeholder.
    */
-  function title() {
+  public function title() {
     return $this->language($this->argument);
   }
 
@@ -40,7 +40,7 @@ function title() {
    *   The translated name for the language, or "Unknown language" if the
    *   language was not found.
    */
-  function language($langcode) {
+  public function language($langcode) {
     $languages = $this->listLanguages();
     return isset($languages[$langcode]) ? $languages[$langcode] : $this->t('Unknown language');
   }
diff --git a/core/modules/views/src/Plugin/views/argument/ManyToOne.php b/core/modules/views/src/Plugin/views/argument/ManyToOne.php
index 48385d5..8c1dcf5 100644
--- a/core/modules/views/src/Plugin/views/argument/ManyToOne.php
+++ b/core/modules/views/src/Plugin/views/argument/ManyToOne.php
@@ -126,7 +126,7 @@ public function query($group_by = FALSE) {
     $this->helper->addFilter();
   }
 
-  function title() {
+  public function title() {
     if (!$this->argument) {
       return !empty($this->definition['empty field name']) ? $this->definition['empty field name'] : $this->t('Uncategorized');
     }
diff --git a/core/modules/views/src/Plugin/views/argument/MonthDate.php b/core/modules/views/src/Plugin/views/argument/MonthDate.php
index c1b493b..17ce1b9 100644
--- a/core/modules/views/src/Plugin/views/argument/MonthDate.php
+++ b/core/modules/views/src/Plugin/views/argument/MonthDate.php
@@ -30,7 +30,7 @@ public function summaryName($data) {
   /**
    * Provide a link to the next level of the view
    */
-  function title() {
+  public function title() {
     $month = str_pad($this->argument, 2, '0', STR_PAD_LEFT);
     return format_date(strtotime("2005" . $month . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
   }
diff --git a/core/modules/views/src/Plugin/views/argument/NumericArgument.php b/core/modules/views/src/Plugin/views/argument/NumericArgument.php
index b314836..c5bb4cf 100644
--- a/core/modules/views/src/Plugin/views/argument/NumericArgument.php
+++ b/core/modules/views/src/Plugin/views/argument/NumericArgument.php
@@ -56,7 +56,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
     );
   }
 
-  function title() {
+  public function title() {
     if (!$this->argument) {
       return !empty($this->definition['empty field name']) ? $this->definition['empty field name'] : $this->t('Uncategorized');
     }
diff --git a/core/modules/views/src/Plugin/views/argument/StringArgument.php b/core/modules/views/src/Plugin/views/argument/StringArgument.php
index 085589a..c304ebb 100644
--- a/core/modules/views/src/Plugin/views/argument/StringArgument.php
+++ b/core/modules/views/src/Plugin/views/argument/StringArgument.php
@@ -277,7 +277,7 @@ public function getSortName() {
     return $this->t('Alphabetical', array(), array('context' => 'Sort order'));
   }
 
-  function title() {
+  public function title() {
     // Support case-insensitive title comparisons for PostgreSQL by converting
     // the title to lowercase.
     if ($this->options['case'] != 'none' && Database::getConnection()->databaseType() == 'pgsql') {
diff --git a/core/modules/views/src/Plugin/views/argument/YearMonthDate.php b/core/modules/views/src/Plugin/views/argument/YearMonthDate.php
index 8185513..1e1effe 100644
--- a/core/modules/views/src/Plugin/views/argument/YearMonthDate.php
+++ b/core/modules/views/src/Plugin/views/argument/YearMonthDate.php
@@ -30,7 +30,7 @@ public function summaryName($data) {
   /**
    * Provide a link to the next level of the view
    */
-  function title() {
+  public function title() {
     return format_date(strtotime($this->argument . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
   }
 
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 37b6a4c..19d38cd 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -2387,7 +2387,7 @@ public static function buildBasicRenderable($view_id, $display_id, array $args =
   /**
    * {@inheritdoc}
    */
-  function preview() {
+  public function preview() {
     return $this->view->render();
   }
 
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
index d3b4c79..f8630af 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
@@ -497,7 +497,7 @@ public function buildRenderable(array $args = [], $cache = TRUE);
    *
    * Also might be used for some other AJAXy reason.
    */
-  function preview();
+  public function preview();
 
   /**
    * Returns the display type that this display requires.
diff --git a/core/modules/views/src/Plugin/views/field/Field.php b/core/modules/views/src/Plugin/views/field/Field.php
index c4003b4..e67d72e 100644
--- a/core/modules/views/src/Plugin/views/field/Field.php
+++ b/core/modules/views/src/Plugin/views/field/Field.php
@@ -265,7 +265,7 @@ public function query($use_groupby = FALSE) {
   /**
    * Determine if the field table should be added to the query.
    */
-  function add_field_table($use_groupby) {
+  public function add_field_table($use_groupby) {
     // Grouping is enabled.
     if ($use_groupby) {
       return TRUE;
@@ -499,7 +499,7 @@ public function submitFormCalculateOptions(array $options, array $form_state_opt
   /**
    * Provide options for multiple value fields.
    */
-  function multiple_options_form(&$form, FormStateInterface $form_state) {
+  public function multiple_options_form(&$form, FormStateInterface $form_state) {
     $field = $this->getFieldDefinition();
 
     $form['multiple_field_settings'] = array(
@@ -901,7 +901,7 @@ protected function createEntityForGroupBy(EntityInterface $entity, ResultRow $ro
     return $processed_entity;
   }
 
-  function render_item($count, $item) {
+  public function render_item($count, $item) {
     return render($item['rendered']);
   }
 
diff --git a/core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php b/core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php
index d7389c9..2562b95 100644
--- a/core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php
+++ b/core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php
@@ -265,6 +265,6 @@ public function getRenderTokens($item);
    *   is safe it will be wrapped in an object that implements
    *   MarkupInterface. If it is empty or unsafe it will be a string.
    */
-  function theme(ResultRow $values);
+  public function theme(ResultRow $values);
 
 }
diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
index 5c9fc66..aa8853c 100644
--- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
+++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php
@@ -1705,7 +1705,7 @@ protected function documentSelfTokens(&$tokens) { }
   /**
    * {@inheritdoc}
    */
-  function theme(ResultRow $values) {
+  public function theme(ResultRow $values) {
     $renderer = $this->getRenderer();
     $build = array(
       '#theme' => $this->themeFunctions(),
diff --git a/core/modules/views/src/Plugin/views/filter/InOperator.php b/core/modules/views/src/Plugin/views/filter/InOperator.php
index aa3e21f..239609e 100644
--- a/core/modules/views/src/Plugin/views/filter/InOperator.php
+++ b/core/modules/views/src/Plugin/views/filter/InOperator.php
@@ -107,7 +107,7 @@ protected function defineOptions() {
    * to add or remove functionality by overriding this function and
    * adding/removing items from this array.
    */
-  function operators() {
+  public function operators() {
     $operators = array(
       'in' => array(
         'title' => $this->t('Is one of'),
diff --git a/core/modules/views/src/Plugin/views/filter/ManyToOne.php b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
index 7fa1fbc..f6b4311 100644
--- a/core/modules/views/src/Plugin/views/filter/ManyToOne.php
+++ b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
@@ -54,7 +54,7 @@ protected function defineOptions() {
     return $options;
   }
 
-  function operators() {
+  public function operators() {
     $operators = array(
       'or' => array(
         'title' => $this->t('Is one of'),
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index e7720df..7cb2942 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -29,7 +29,7 @@ protected function defineOptions() {
     return $options;
   }
 
-  function operators() {
+  public function operators() {
     $operators = array(
       '<' => array(
         'title' => $this->t('Is less than'),
diff --git a/core/modules/views/src/Plugin/views/filter/StringFilter.php b/core/modules/views/src/Plugin/views/filter/StringFilter.php
index 618b584..0286b3f 100644
--- a/core/modules/views/src/Plugin/views/filter/StringFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/StringFilter.php
@@ -35,7 +35,7 @@ protected function defineOptions() {
    * to add or remove functionality by overriding this function and
    * adding/removing items from this array.
    */
-  function operators() {
+  public function operators() {
     $operators = array(
       '=' => array(
         'title' => $this->t('Is equal to'),
@@ -235,7 +235,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) {
     }
   }
 
-  function operator() {
+  public function operator() {
     return $this->operator == '=' ? 'LIKE' : 'NOT LIKE';
   }
 
diff --git a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
index d4e1b23..ea06e5c 100644
--- a/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
+++ b/core/modules/views/src/Plugin/views/query/QueryPluginBase.php
@@ -199,7 +199,7 @@ public function setGroupOperator($type = 'AND') {
    *
    * Query plugins that don't support entities can leave the method empty.
    */
-  function loadEntities(&$results) {}
+  public function loadEntities(&$results) {}
 
   /**
    * Returns a Unix timestamp to database native timestamp expression.
diff --git a/core/modules/views/src/Plugin/views/row/RowPluginBase.php b/core/modules/views/src/Plugin/views/row/RowPluginBase.php
index d1e090e..c7aca87 100644
--- a/core/modules/views/src/Plugin/views/row/RowPluginBase.php
+++ b/core/modules/views/src/Plugin/views/row/RowPluginBase.php
@@ -54,7 +54,7 @@
    *
    * @return bool
    */
-  function usesFields() {
+  public function usesFields() {
     return $this->usesFields;
   }
 
diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
index a7b1917..bfdcdc1 100644
--- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php
+++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php
@@ -144,7 +144,7 @@ public function destroy() {
    *
    * @return bool
    */
-  function usesRowPlugin() {
+  public function usesRowPlugin() {
     return $this->usesRowPlugin;
 
   }
@@ -154,7 +154,7 @@ function usesRowPlugin() {
    *
    * @return bool
    */
-  function usesRowClass() {
+  public function usesRowClass() {
     return $this->usesRowClass;
   }
 
@@ -163,7 +163,7 @@ function usesRowClass() {
    *
    * @return bool
    */
-  function usesGrouping() {
+  public function usesGrouping() {
     return $this->usesGrouping;
   }
 
@@ -172,7 +172,7 @@ function usesGrouping() {
    *
    * @return bool
    */
-  function usesFields() {
+  public function usesFields() {
     // If we use a row plugin, ask the row plugin. Chances are, we don't
     // care, it does.
     $row_uses_fields = FALSE;
diff --git a/core/modules/views/src/Tests/DefaultViewsTest.php b/core/modules/views/src/Tests/DefaultViewsTest.php
index 5c1f601..d1f64ba 100644
--- a/core/modules/views/src/Tests/DefaultViewsTest.php
+++ b/core/modules/views/src/Tests/DefaultViewsTest.php
@@ -143,7 +143,7 @@ public function testDefaultViews() {
   /**
    * Returns a new term with random properties in vocabulary $vid.
    */
-  function createTerm($vocabulary) {
+  public function createTerm($vocabulary) {
     $filter_formats = filter_formats();
     $format = array_pop($filter_formats);
     $term = Term::create([
diff --git a/core/modules/views/src/Tests/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index 3fd8a03..5968a1c 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
    *
    * We check data structure for both node and node revision tables.
    */
-  function testViewsData() {
+  public function testViewsData() {
     $table_mapping = \Drupal::entityManager()->getStorage('node')->getTableMapping();
     $field_storage = $this->fieldStorages[0];
     $current_table = $table_mapping->getDedicatedDataTableName($field_storage);
diff --git a/core/modules/views/src/Tests/Handler/ArgumentStringTest.php b/core/modules/views/src/Tests/Handler/ArgumentStringTest.php
index e47b1a3..798c794 100644
--- a/core/modules/views/src/Tests/Handler/ArgumentStringTest.php
+++ b/core/modules/views/src/Tests/Handler/ArgumentStringTest.php
@@ -28,7 +28,7 @@ class ArgumentStringTest extends HandlerTestBase {
   /**
    * Tests the glossary feature.
    */
-  function testGlossary() {
+  public function testGlossary() {
     // Setup some nodes, one with a, two with b and three with c.
     $counter = 1;
     foreach (array('a', 'b', 'c') as $char) {
diff --git a/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php b/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
index d5adcb4..e6a178c 100644
--- a/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
+++ b/core/modules/views/src/Tests/Handler/FieldEntityOperationsTest.php
@@ -27,7 +27,7 @@ class FieldEntityOperationsTest extends HandlerTestBase {
    */
   public static $modules = array('node', 'language');
 
-  function setUp() {
+  protected function setUp() {
     parent::setUp();
 
     // Create Article content type.
diff --git a/core/modules/views/src/Tests/Plugin/AccessTest.php b/core/modules/views/src/Tests/Plugin/AccessTest.php
index 1bcf300..41b5f71 100644
--- a/core/modules/views/src/Tests/Plugin/AccessTest.php
+++ b/core/modules/views/src/Tests/Plugin/AccessTest.php
@@ -61,7 +61,7 @@ protected function setUp() {
   /**
    * Tests none access plugin.
    */
-  function testAccessNone() {
+  public function testAccessNone() {
     $view = Views::getView('test_access_none');
     $view->setDisplay();
 
@@ -78,7 +78,7 @@ function testAccessNone() {
    *
    * @see \Drupal\views_test\Plugin\views\access\StaticTest
    */
-  function testStaticAccessPlugin() {
+  public function testStaticAccessPlugin() {
     $view = Views::getView('test_access_static');
     $view->setDisplay();
 
diff --git a/core/modules/views/src/Tests/Plugin/NumericFormatPluralTest.php b/core/modules/views/src/Tests/Plugin/NumericFormatPluralTest.php
index bb06328..70f9745 100644
--- a/core/modules/views/src/Tests/Plugin/NumericFormatPluralTest.php
+++ b/core/modules/views/src/Tests/Plugin/NumericFormatPluralTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Test plural formatting setting on a numeric views handler.
    */
-  function testNumericFormatPlural() {
+  public function testNumericFormatPlural() {
     // Create a file.
     $file = $this->createFile();
 
diff --git a/core/modules/views/src/Tests/Plugin/PagerTest.php b/core/modules/views/src/Tests/Plugin/PagerTest.php
index f922748..4aab501 100644
--- a/core/modules/views/src/Tests/Plugin/PagerTest.php
+++ b/core/modules/views/src/Tests/Plugin/PagerTest.php
@@ -285,7 +285,7 @@ public function testRenderNullPager() {
   /**
    * Test the api functions on the view object.
    */
-  function testPagerApi() {
+  public function testPagerApi() {
     $view = Views::getView('test_pager_full');
     $view->setDisplay();
     // On the first round don't initialize the pager.
diff --git a/core/modules/views/src/Tests/Plugin/StyleTest.php b/core/modules/views/src/Tests/Plugin/StyleTest.php
index 6773c83..4e35c37 100644
--- a/core/modules/views/src/Tests/Plugin/StyleTest.php
+++ b/core/modules/views/src/Tests/Plugin/StyleTest.php
@@ -87,7 +87,7 @@ public function testStyle() {
     $this->assertTrue(strpos($output, $random_text) !== FALSE, 'Make sure that the rendering of the style plugin appears in the output of the view.');
   }
 
-  function testGrouping() {
+  public function testGrouping() {
     $this->_testGrouping(FALSE);
     $this->_testGrouping(TRUE);
   }
@@ -95,7 +95,7 @@ function testGrouping() {
   /**
    * Tests the grouping features of styles.
    */
-  function _testGrouping($stripped = FALSE) {
+  public function _testGrouping($stripped = FALSE) {
     $view = Views::getView('test_view');
     $view->setDisplay();
     // Setup grouping by the job and the age field.
@@ -256,7 +256,7 @@ function _testGrouping($stripped = FALSE) {
   /**
    * Tests custom css classes.
    */
-  function testCustomRowClasses() {
+  public function testCustomRowClasses() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
diff --git a/core/modules/views/src/Tests/Wizard/BasicTest.php b/core/modules/views/src/Tests/Wizard/BasicTest.php
index 1e2d051..4219130 100644
--- a/core/modules/views/src/Tests/Wizard/BasicTest.php
+++ b/core/modules/views/src/Tests/Wizard/BasicTest.php
@@ -20,7 +20,7 @@ protected function setUp() {
     $this->drupalPlaceBlock('page_title_block');
   }
 
-  function testViewsWizardAndListing() {
+  public function testViewsWizardAndListing() {
     $this->drupalCreateContentType(array('type' => 'article'));
     $this->drupalCreateContentType(array('type' => 'page'));
 
diff --git a/core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php b/core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php
index 7a2f430..033632b 100644
--- a/core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php
+++ b/core/modules/views/src/Tests/Wizard/ItemsPerPageTest.php
@@ -19,7 +19,7 @@ protected function setUp() {
   /**
    * Tests the number of items per page.
    */
-  function testItemsPerPage() {
+  public function testItemsPerPage() {
     $this->drupalCreateContentType(array('type' => 'article'));
 
     // Create articles, each with a different creation time so that we can do a
diff --git a/core/modules/views/src/Tests/Wizard/MenuTest.php b/core/modules/views/src/Tests/Wizard/MenuTest.php
index 552ff50..f637dc4 100644
--- a/core/modules/views/src/Tests/Wizard/MenuTest.php
+++ b/core/modules/views/src/Tests/Wizard/MenuTest.php
@@ -15,7 +15,7 @@ class MenuTest extends WizardTestBase {
   /**
    * Tests the menu functionality.
    */
-  function testMenus() {
+  public function testMenus() {
     $this->drupalPlaceBlock('system_menu_block:main');
 
     // Create a view with a page display and a menu link in the Main Menu.
diff --git a/core/modules/views/src/Tests/Wizard/SortingTest.php b/core/modules/views/src/Tests/Wizard/SortingTest.php
index 6172930..6456b31 100644
--- a/core/modules/views/src/Tests/Wizard/SortingTest.php
+++ b/core/modules/views/src/Tests/Wizard/SortingTest.php
@@ -18,7 +18,7 @@ protected function setUp() {
   /**
    * Tests the sorting functionality.
    */
-  function testSorting() {
+  public function testSorting() {
     // Create nodes, each with a different creation time so that we can do a
     // meaningful sort.
     $this->drupalCreateContentType(array('type' => 'page'));
diff --git a/core/modules/views/src/Tests/Wizard/TaggedWithTest.php b/core/modules/views/src/Tests/Wizard/TaggedWithTest.php
index 939473f..c602bbb 100644
--- a/core/modules/views/src/Tests/Wizard/TaggedWithTest.php
+++ b/core/modules/views/src/Tests/Wizard/TaggedWithTest.php
@@ -114,7 +114,7 @@ protected function setUp() {
   /**
    * Tests the "tagged with" functionality.
    */
-  function testTaggedWith() {
+  public function testTaggedWith() {
     // In this test we will only create nodes that have an instance of the tag
     // field.
     $node_add_path = 'node/add/' . $this->nodeTypeWithTags->id();
@@ -180,7 +180,7 @@ function testTaggedWith() {
   /**
    * Tests that the "tagged with" form element only shows for node types that support it.
    */
-  function testTaggedWithByNodeType() {
+  public function testTaggedWithByNodeType() {
     // The tagging field is associated with one of our node types only. So the
     // "tagged with" form element on the view wizard should appear on the form
     // by default (when the wizard is configured to display all content) and
diff --git a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
index e90ec85..520d4a9 100644
--- a/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
@@ -19,7 +19,7 @@ class ArgumentNullTest extends ViewsKernelTestBase {
    */
   public static $testViews = array('test_view');
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['id']['argument']['id'] = 'null';
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
index 1a5551c..cb1cae1 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
@@ -19,7 +19,7 @@ class FieldBooleanTest extends ViewsKernelTestBase {
    */
   public static $testViews = array('test_view');
 
-  function dataSet() {
+  public function dataSet() {
     // Use default dataset but remove the age from john and paul
     $data = parent::dataSet();
     $data[0]['age'] = 0;
@@ -27,7 +27,7 @@ function dataSet() {
     return $data;
   }
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['age']['field']['id'] = 'boolean';
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
index 12f68ed..7ac1144 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
@@ -26,7 +26,7 @@ class FieldCounterTest extends ViewsKernelTestBase {
    */
   public static $testViews = array('test_view');
 
-  function testSimple() {
+  public function testSimple() {
     $view = Views::getView('test_view');
     $view->setDisplay();
     $view->displayHandlers->get('default')->overrideOption('fields', array(
@@ -87,7 +87,7 @@ function testSimple() {
   /**
    * @todo: Write tests for pager.
    */
-  function testPager() {
+  public function testPager() {
   }
 
 }
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
index af7bc1b..dc06ae3 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
@@ -23,7 +23,7 @@ class FieldCustomTest extends ViewsKernelTestBase {
   /**
    * {@inheritdoc}
    */
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['name']['field']['id'] = 'custom';
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
index 2f60e34..508129d 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
@@ -20,7 +20,7 @@ class FieldFileSizeTest extends ViewsKernelTestBase {
    */
   public static $testViews = array('test_view');
 
-  function dataSet() {
+  public function dataSet() {
     $data = parent::dataSet();
     $data[0]['age'] = 0;
     $data[1]['age'] = 10;
@@ -30,7 +30,7 @@ function dataSet() {
     return $data;
   }
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['age']['field']['id'] = 'file_size';
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
index a57e478..df91419 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
@@ -351,7 +351,7 @@ public function testExclude() {
   /**
    * Tests everything related to empty output of a field.
    */
-  function testEmpty() {
+  public function testEmpty() {
     $this->_testHideIfEmpty();
     $this->_testEmptyText();
   }
@@ -362,7 +362,7 @@ function testEmpty() {
    * This tests alters the result to get easier and less coupled results. It is
    * important that assertIdentical() is used in this test since in PHP 0 == ''.
    */
-  function _testHideIfEmpty() {
+  public function _testHideIfEmpty() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
 
@@ -643,7 +643,7 @@ function _testHideIfEmpty() {
   /**
    * Tests the usage of the empty text.
    */
-  function _testEmptyText() {
+  public function _testEmptyText() {
     /** @var \Drupal\Core\Render\RendererInterface $renderer */
     $renderer = \Drupal::service('renderer');
 
@@ -693,7 +693,7 @@ function _testEmptyText() {
   /**
    * Tests views_handler_field::isValueEmpty().
    */
-  function testIsValueEmpty() {
+  public function testIsValueEmpty() {
     $view = Views::getView('test_view');
     $view->initHandlers();
     $field = $view->field['name'];
diff --git a/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php b/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
index bfb764d..153e6bb 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
@@ -22,7 +22,7 @@ class FieldUrlTest extends ViewsKernelTestBase {
    */
   public static $testViews = array('test_view');
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['name']['field']['id'] = 'url';
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
index a4bd6c8..d0c3942 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
@@ -30,13 +30,13 @@ class FilterEqualityTest extends ViewsKernelTestBase {
     'views_test_data_name' => 'name',
   );
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['name']['filter']['id'] = 'equality';
     return $data;
   }
 
-  function testEqual() {
+  public function testEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -82,7 +82,7 @@ public function testEqualGroupedExposed() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testNotEqual() {
+  public function testNotEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
index 9ab08e1..8d150c9 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
@@ -31,7 +31,7 @@ class FilterInOperatorTest extends ViewsKernelTestBase {
     'views_test_data_age' => 'age',
   );
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['age']['filter']['id'] = 'in_operator';
     return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
index 5dd47ec..2464dd7 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
@@ -30,7 +30,7 @@ class FilterStringTest extends ViewsKernelTestBase {
     'views_test_data_name' => 'name',
   );
 
-  function viewsData() {
+  public function viewsData() {
     $data = parent::viewsData();
     $data['views_test_data']['name']['filter']['allow empty'] = TRUE;
     $data['views_test_data']['job']['filter']['allow empty'] = FALSE;
@@ -81,7 +81,7 @@ protected function getBasicPageView() {
     return $view;
   }
 
-  function testFilterStringEqual() {
+  public function testFilterStringEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -106,7 +106,7 @@ function testFilterStringEqual() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedEqual() {
+  public function testFilterStringGroupedExposedEqual() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -128,7 +128,7 @@ function testFilterStringGroupedExposedEqual() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringNotEqual() {
+  public function testFilterStringNotEqual() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -162,7 +162,7 @@ function testFilterStringNotEqual() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedNotEqual() {
+  public function testFilterStringGroupedExposedNotEqual() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -194,7 +194,7 @@ function testFilterStringGroupedExposedNotEqual() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringContains() {
+  public function testFilterStringContains() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -220,7 +220,7 @@ function testFilterStringContains() {
   }
 
 
-  function testFilterStringGroupedExposedContains() {
+  public function testFilterStringGroupedExposedContains() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -243,7 +243,7 @@ function testFilterStringGroupedExposedContains() {
   }
 
 
-  function testFilterStringWord() {
+  public function testFilterStringWord() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -296,7 +296,7 @@ function testFilterStringWord() {
   }
 
 
-  function testFilterStringGroupedExposedWord() {
+  public function testFilterStringGroupedExposedWord() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -338,7 +338,7 @@ function testFilterStringGroupedExposedWord() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringStarts() {
+  public function testFilterStringStarts() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -363,7 +363,7 @@ function testFilterStringStarts() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedStarts() {
+  public function testFilterStringGroupedExposedStarts() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -384,7 +384,7 @@ function testFilterStringGroupedExposedStarts() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringNotStarts() {
+  public function testFilterStringNotStarts() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -416,7 +416,7 @@ function testFilterStringNotStarts() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedNotStarts() {
+  public function testFilterStringGroupedExposedNotStarts() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -444,7 +444,7 @@ function testFilterStringGroupedExposedNotStarts() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringEnds() {
+  public function testFilterStringEnds() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -472,7 +472,7 @@ function testFilterStringEnds() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedEnds() {
+  public function testFilterStringGroupedExposedEnds() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -496,7 +496,7 @@ function testFilterStringGroupedExposedEnds() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringNotEnds() {
+  public function testFilterStringNotEnds() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -525,7 +525,7 @@ function testFilterStringNotEnds() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedNotEnds() {
+  public function testFilterStringGroupedExposedNotEnds() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -550,7 +550,7 @@ function testFilterStringGroupedExposedNotEnds() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringNot() {
+  public function testFilterStringNot() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -580,7 +580,7 @@ function testFilterStringNot() {
   }
 
 
-  function testFilterStringGroupedExposedNot() {
+  public function testFilterStringGroupedExposedNot() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -606,7 +606,7 @@ function testFilterStringGroupedExposedNot() {
 
   }
 
-  function testFilterStringShorter() {
+  public function testFilterStringShorter() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -634,7 +634,7 @@ function testFilterStringShorter() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedShorter() {
+  public function testFilterStringGroupedExposedShorter() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -657,7 +657,7 @@ function testFilterStringGroupedExposedShorter() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringLonger() {
+  public function testFilterStringLonger() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -682,7 +682,7 @@ function testFilterStringLonger() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedLonger() {
+  public function testFilterStringGroupedExposedLonger() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
@@ -703,7 +703,7 @@ function testFilterStringGroupedExposedLonger() {
   }
 
 
-  function testFilterStringEmpty() {
+  public function testFilterStringEmpty() {
     $view = Views::getView('test_view');
     $view->setDisplay();
 
@@ -727,7 +727,7 @@ function testFilterStringEmpty() {
     $this->assertIdenticalResultset($view, $resultset, $this->columnMap);
   }
 
-  function testFilterStringGroupedExposedEmpty() {
+  public function testFilterStringGroupedExposedEmpty() {
     $filters = $this->getGroupedExposedFilters();
     $view = $this->getBasicPageView();
 
diff --git a/core/modules/views/tests/src/Kernel/ModuleTest.php b/core/modules/views/tests/src/Kernel/ModuleTest.php
index 204433d..71708da 100644
--- a/core/modules/views/tests/src/Kernel/ModuleTest.php
+++ b/core/modules/views/tests/src/Kernel/ModuleTest.php
@@ -208,7 +208,7 @@ public function testLoadFunctions() {
   /**
    * Tests view enable and disable procedural wrapper functions.
    */
-  function testStatusFunctions() {
+  public function testStatusFunctions() {
     $view = Views::getView('test_view_status')->storage;
 
     $this->assertFalse($view->status(), 'The view status is disabled.');
@@ -360,7 +360,7 @@ protected function formatViewOptions(array $views = array()) {
   /**
    * Ensure that a certain handler is a instance of a certain table/field.
    */
-  function assertInstanceHandler($handler, $table, $field, $id) {
+  public function assertInstanceHandler($handler, $table, $field, $id) {
     $table_data = $this->container->get('views.views_data')->get($table);
     $field_data = $table_data[$field][$id];
 
diff --git a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
index cac7985..34d426d 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
@@ -20,7 +20,7 @@ class ArgumentValidatorTest extends ViewsKernelTestBase {
    */
   public static $testViews = ['test_view_argument_validate_numeric', 'test_view'];
 
-  function testArgumentValidateNumeric() {
+  public function testArgumentValidateNumeric() {
     $view = Views::getView('test_view_argument_validate_numeric');
     $view->initHandlers();
     $this->assertFalse($view->argument['null']->validateArgument($this->randomString()));
diff --git a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
index 31805d8..4b18c96 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
@@ -224,7 +224,7 @@ public function testTimeResultCachingWithPager() {
    *
    * @see views_plugin_cache_time
    */
-  function testNoneResultCaching() {
+  public function testNoneResultCaching() {
     // Create a basic result which just 2 results.
     $view = Views::getView('test_cache');
     $view->setDisplay();
@@ -261,7 +261,7 @@ function testNoneResultCaching() {
   /**
    * Tests css/js storage and restoring mechanism.
    */
-  function testHeaderStorage() {
+  public function testHeaderStorage() {
     // Create a view with output caching enabled.
     // Some hook_views_pre_render in views_test_data.module adds the test css/js file.
     // so they should be added to the css/js storage.
diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php
index f1f1fb1..19fc15f 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php
@@ -23,7 +23,7 @@ class StyleHtmlListTest extends ViewsKernelTestBase {
   /**
    * Make sure that the HTML list style markup is correct.
    */
-  function testDefaultRowClasses() {
+  public function testDefaultRowClasses() {
     $view = Views::getView('test_style_html_list');
     $output = $view->preview();
     $output = \Drupal::service('renderer')->renderRoot($output);
diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php b/core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
index 00dd9f9..91900ce 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
@@ -20,7 +20,7 @@
   /**
    * Stores a view output in the elements.
    */
-  function storeViewPreview($output) {
+  public function storeViewPreview($output) {
     $html5 = new HTML5();
     $htmlDom = $html5->loadHTML('<html><body>' . $output . '</body></html>');
     if ($htmlDom) {
diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php
index 14e5895..284a571 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php
@@ -21,7 +21,7 @@ class StyleUnformattedTest extends StyleTestBase {
   /**
    * Make sure that the default css classes works as expected.
    */
-  function testDefaultRowClasses() {
+  public function testDefaultRowClasses() {
     $view = Views::getView('test_view');
     $view->setDisplay();
     $output = $view->preview();
diff --git a/core/modules/views/tests/src/Kernel/TokenReplaceTest.php b/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
index 5cf40ad..562bf3a 100644
--- a/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
+++ b/core/modules/views/tests/src/Kernel/TokenReplaceTest.php
@@ -29,7 +29,7 @@ protected function setUp($import_test_views = TRUE) {
   /**
    * Tests core token replacements generated from a view.
    */
-  function testTokenReplacement() {
+  public function testTokenReplacement() {
     $token_handler = \Drupal::token();
     $view = Views::getView('test_tokens');
     $view->setDisplay('page_1');
@@ -74,7 +74,7 @@ function testTokenReplacement() {
   /**
    * Tests core token replacements generated from a view without results.
    */
-  function testTokenReplacementNoResults() {
+  public function testTokenReplacementNoResults() {
     $token_handler = \Drupal::token();
     $view = Views::getView('test_tokens');
     $view->setDisplay('page_2');
@@ -93,7 +93,7 @@ function testTokenReplacementNoResults() {
   /**
    * Tests path token replacements generated from a view without a path.
    */
-  function testTokenReplacementNoPath() {
+  public function testTokenReplacementNoPath() {
     $token_handler = \Drupal::token();
     $view = Views::getView('test_invalid_tokens');
     $view->setDisplay('block_1');
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index fa264bd..b244c9a 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -57,7 +57,7 @@ class ViewStorageTest extends ViewsKernelTestBase {
   /**
    * Tests CRUD operations.
    */
-  function testConfigurationEntityCRUD() {
+  public function testConfigurationEntityCRUD() {
     // Get the configuration entity type and controller.
     $this->entityType = \Drupal::entityManager()->getDefinition('view');
     $this->controller = $this->container->get('entity.manager')->getStorage('view');
diff --git a/core/modules/views_ui/src/Tests/AnalyzeTest.php b/core/modules/views_ui/src/Tests/AnalyzeTest.php
index 6cc9203..559c3f4 100644
--- a/core/modules/views_ui/src/Tests/AnalyzeTest.php
+++ b/core/modules/views_ui/src/Tests/AnalyzeTest.php
@@ -37,7 +37,7 @@ protected function setUp() {
   /**
    * Tests that analyze works in general.
    */
-  function testAnalyzeBasic() {
+  public function testAnalyzeBasic() {
     $this->drupalLogin($this->admin);
 
     $this->drupalGet('admin/structure/views/view/test_view/edit');
diff --git a/core/modules/views_ui/src/Tests/DefaultViewsTest.php b/core/modules/views_ui/src/Tests/DefaultViewsTest.php
index 08fcae8..4c95885 100644
--- a/core/modules/views_ui/src/Tests/DefaultViewsTest.php
+++ b/core/modules/views_ui/src/Tests/DefaultViewsTest.php
@@ -30,7 +30,7 @@ protected function setUp() {
   /**
    * Tests default views.
    */
-  function testDefaultViews() {
+  public function testDefaultViews() {
     // Make sure the view starts off as disabled (does not appear on the listing
     // page).
     $edit_href = 'admin/structure/views/view/glossary';
@@ -159,7 +159,7 @@ function testDefaultViews() {
   /**
    * Tests that enabling views moves them to the correct table.
    */
-  function testSplitListing() {
+  public function testSplitListing() {
     // Build a re-usable xpath query.
     $xpath = '//div[@id="views-entity-list"]/div[@class = :status]/table//td/text()[contains(., :title)]';
 
@@ -227,7 +227,7 @@ public function testPathDestination() {
    *   The page content that results from clicking on the link, or FALSE on
    *   failure. Failure also results in a failed assertion.
    */
-  function clickViewsOperationLink($label, $unique_href_part) {
+  public function clickViewsOperationLink($label, $unique_href_part) {
     $links = $this->xpath('//a[normalize-space(text())=:label]', array(':label' => $label));
     foreach ($links as $link_index => $link) {
       $position = strpos($link['href'], $unique_href_part);
diff --git a/core/modules/views_ui/src/Tests/ExposedFormUITest.php b/core/modules/views_ui/src/Tests/ExposedFormUITest.php
index 66280b1..e5e34ce 100644
--- a/core/modules/views_ui/src/Tests/ExposedFormUITest.php
+++ b/core/modules/views_ui/src/Tests/ExposedFormUITest.php
@@ -52,7 +52,7 @@ protected function setUp() {
   /**
    * Tests the admin interface of exposed filter and sort items.
    */
-  function testExposedAdminUi() {
+  public function testExposedAdminUi() {
     $edit = array();
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
@@ -134,7 +134,7 @@ function testExposedAdminUi() {
   /**
    * Tests the admin interface of exposed grouped filters.
    */
-  function testGroupedFilterAdminUi() {
+  public function testGroupedFilterAdminUi() {
     $edit = array();
 
     $this->drupalGet('admin/structure/views/nojs/handler/test_exposed_admin_ui/default/filter/type');
diff --git a/core/modules/views_ui/src/Tests/GroupByTest.php b/core/modules/views_ui/src/Tests/GroupByTest.php
index 8d0ae3a..6667315 100644
--- a/core/modules/views_ui/src/Tests/GroupByTest.php
+++ b/core/modules/views_ui/src/Tests/GroupByTest.php
@@ -21,7 +21,7 @@ class GroupByTest extends UITestBase {
    *
    * @todo This should check the change of the settings as well.
    */
-  function testGroupBySave() {
+  public function testGroupBySave() {
     $this->drupalGet('admin/structure/views/view/test_views_groupby_save/edit');
 
     $edit_groupby_url = 'admin/structure/views/nojs/handler-group/test_views_groupby_save/default/field/id';
diff --git a/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php b/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php
index 98576ad..7ba6ed5 100644
--- a/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php
+++ b/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php
@@ -18,7 +18,7 @@ protected function setUp() {
   /**
    * Tests that displays can be overridden via the UI.
    */
-  function testOverrideDisplays() {
+  public function testOverrideDisplays() {
     // Create a basic view that shows all content, with a page and a block
     // display.
     $view['label'] = $this->randomMachineName(16);
@@ -77,7 +77,7 @@ function testOverrideDisplays() {
   /**
    * Tests that the wizard correctly sets up default and overridden displays.
    */
-  function testWizardMixedDefaultOverriddenDisplays() {
+  public function testWizardMixedDefaultOverriddenDisplays() {
     // Create a basic view with a page, block, and feed. Give the page and feed
     // identical titles, but give the block a different one, so we expect the
     // page and feed to inherit their titles from the default display, but the
@@ -172,7 +172,7 @@ function testWizardMixedDefaultOverriddenDisplays() {
   /**
    * Tests that the revert to all displays select-option works as expected.
    */
-  function testRevertAllDisplays() {
+  public function testRevertAllDisplays() {
     // Create a basic view with a page, block.
     // Because there is both a title on page and block we expect the title on
     // the block be overridden.
diff --git a/core/modules/views_ui/src/Tests/PreviewTest.php b/core/modules/views_ui/src/Tests/PreviewTest.php
index d2dcd12..865ae2b 100644
--- a/core/modules/views_ui/src/Tests/PreviewTest.php
+++ b/core/modules/views_ui/src/Tests/PreviewTest.php
@@ -45,7 +45,7 @@ public function testPreviewContextual() {
   /**
    * Tests arguments in the preview form.
    */
-  function testPreviewUI() {
+  public function testPreviewUI() {
     $this->drupalGet('admin/structure/views/view/test_preview/edit');
     $this->assertResponse(200);
 
diff --git a/core/modules/views_ui/src/Tests/SettingsTest.php b/core/modules/views_ui/src/Tests/SettingsTest.php
index 30397f4..8583102 100644
--- a/core/modules/views_ui/src/Tests/SettingsTest.php
+++ b/core/modules/views_ui/src/Tests/SettingsTest.php
@@ -27,7 +27,7 @@ protected function setUp() {
   /**
    * Tests the settings for the edit ui.
    */
-  function testEditUI() {
+  public function testEditUI() {
     $this->drupalLogin($this->adminUser);
 
     // Test the settings tab exists.
