Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / tests / src / Kernel / FilterAPITest.php
index f74edbbcac8607da389772ef52f6cd39e935d7fb..a26005db192b26ce23028b8dee6147f582da102f 100644 (file)
@@ -48,7 +48,7 @@ class FilterAPITest extends EntityKernelTestBase {
             'allowed_html' => '<p>',
           ],
         ],
-      ]
+      ],
     ]);
     $crazy_format->save();
 
@@ -183,10 +183,10 @@ class FilterAPITest extends EntityKernelTestBase {
                 'a' => ['href' => TRUE],
                 'em' => TRUE,
               ],
-            ]
+            ],
           ],
         ],
-      ]
+      ],
     ]);
     $very_restricted_html_format->save();
     $this->assertIdentical(
@@ -220,7 +220,7 @@ class FilterAPITest extends EntityKernelTestBase {
             'allowed_html' => '<a> <b class> <c class="*"> <d class="foo bar-* *">',
           ],
         ],
-      ]
+      ],
     ]);
     $nonsensical_restricted_html->save();
     $this->assertIdentical(
@@ -246,9 +246,9 @@ class FilterAPITest extends EntityKernelTestBase {
   /**
    * Tests the 'processed_text' element.
    *
-   * check_markup() is a wrapper for the 'processed_text' element, for use in
-   * simple scenarios; the 'processed_text' element has more advanced features:
-   * it lets filters attach assets, associate cache tags and define
+   * Function check_markup() is a wrapper for the 'processed_text' element, for
+   * use in simple scenarios; the 'processed_text' element has more advanced
+   * features: it lets filters attach assets, associate cache tags and define
    * #lazy_builder callbacks.
    * This test focuses solely on those advanced features.
    */
@@ -416,7 +416,7 @@ class FilterAPITest extends EntityKernelTestBase {
             'allowed_html' => '<p>',
           ],
         ],
-      ]
+      ],
     ]);
     $crazy_format->save();
     // Use config to directly load the configuration and check that only enabled
@@ -488,7 +488,7 @@ class FilterAPITest extends EntityKernelTestBase {
 
     drupal_static_reset('filter_formats');
     \Drupal::entityManager()->getStorage('filter_format')->resetCache();
-    $module_data = _system_rebuild_module_data();
+    $module_data = \Drupal::service('extension.list.module')->reset()->getList();
     $this->assertFalse(isset($module_data['filter_test']->info['required']), 'The filter_test module is required.');
 
     // Verify that a dependency exists on the module that provides the filter