*/
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');
$this->languageManager = $this->getMock('Drupal\Core\Language\LanguageManagerInterface');
+ $this->eventDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
+
$this->configEntityMapper = new ConfigEntityMapper(
'configurable_language',
$definition,
$this->routeProvider,
$this->getStringTranslationStub(),
$this->entityManager,
- $this->languageManager
+ $this->languageManager,
+ $this->eventDispatcher
);
}