Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Render / RendererBubblingTest.php
index f55e34832e088ec1e922b3f2289ae7843404b6cc..202c9efa71609847ea63ef3fbe8668231901fd86 100644 (file)
@@ -9,7 +9,6 @@ namespace Drupal\Tests\Core\Render;
 
 use Drupal\Core\Cache\MemoryBackend;
 use Drupal\Core\KeyValueStore\KeyValueMemoryFactory;
-use Drupal\Core\Lock\NullLockBackend;
 use Drupal\Core\State\State;
 use Drupal\Core\Cache\Cache;
 
@@ -297,7 +296,7 @@ class RendererBubblingTest extends RendererTestBase {
     $test_element = [
       '#cache' => [
         'keys' => ['parent'],
-        'tags' => ['yar', 'har']
+        'tags' => ['yar', 'har'],
       ],
       '#markup' => 'parent',
       'child' => [
@@ -308,10 +307,10 @@ class RendererBubblingTest extends RendererTestBase {
             'tags' => ['fiddle', 'dee'],
           ],
           '#attached' => [
-            'library' => ['foo/bar']
+            'library' => ['foo/bar'],
           ],
           '#markup' => '',
-        ]
+        ],
       ],
     ];
     $expected_cache_items = [
@@ -539,7 +538,7 @@ class RendererBubblingTest extends RendererTestBase {
     $this->setupMemoryCache();
 
     // Mock the State service.
-    $memory_state = new State(new KeyValueMemoryFactory(), new MemoryBackend('test'), new NullLockBackend());
+    $memory_state = new State(new KeyValueMemoryFactory());
     \Drupal::getContainer()->set('state', $memory_state);
     $this->controllerResolver->expects($this->any())
       ->method('getControllerFromDefinition')