Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / config_translation / tests / src / Unit / ConfigFieldMapperTest.php
index 8e6d0b903b6912294fa18f16239c7da81c707f3b..3d17e4641e2561c1b65ac625bdf4a25d1dbe68fa 100644 (file)
@@ -35,6 +35,13 @@ class ConfigFieldMapperTest extends UnitTestCase {
    */
   protected $entityManager;
 
+  /**
+   * The mocked event dispatcher.
+   *
+   * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject
+   */
+  protected $eventDispatcher;
+
   /**
    * {@inheritdoc}
    */
@@ -54,6 +61,8 @@ class ConfigFieldMapperTest extends UnitTestCase {
       ->disableOriginalConstructor()
       ->getMock();
 
+    $this->eventDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
+
     $this->configFieldMapper = new ConfigFieldMapper(
       'node_fields',
       $definition,
@@ -64,7 +73,8 @@ class ConfigFieldMapperTest extends UnitTestCase {
       $this->getMock('Drupal\Core\Routing\RouteProviderInterface'),
       $this->getStringTranslationStub(),
       $this->entityManager,
-      $this->getMock('Drupal\Core\Language\LanguageManagerInterface')
+      $this->getMock('Drupal\Core\Language\LanguageManagerInterface'),
+      $this->eventDispatcher
     );
   }