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 / ConfigEntityMapperTest.php
index db316caf57f40755b3f41f9a6a95885c72eff947..5a4f9d9a42ee703bf8d8ad47fc81676444f3c83c 100644 (file)
@@ -49,6 +49,13 @@ class ConfigEntityMapperTest extends UnitTestCase {
    */
   protected $languageManager;
 
+  /**
+   * The mocked event dispatcher.
+   *
+   * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject
+   */
+  protected $eventDispatcher;
+
   protected function setUp() {
     $this->entityManager = $this->getMock('Drupal\Core\Entity\EntityManagerInterface');
 
@@ -79,6 +86,8 @@ class ConfigEntityMapperTest extends UnitTestCase {
 
     $this->languageManager = $this->getMock('Drupal\Core\Language\LanguageManagerInterface');
 
+    $this->eventDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
+
     $this->configEntityMapper = new ConfigEntityMapper(
       'configurable_language',
       $definition,
@@ -89,7 +98,8 @@ class ConfigEntityMapperTest extends UnitTestCase {
       $this->routeProvider,
       $this->getStringTranslationStub(),
       $this->entityManager,
-      $this->languageManager
+      $this->languageManager,
+      $this->eventDispatcher
     );
   }