*/
protected $entityManager;
+ /**
+ * The mocked event dispatcher.
+ *
+ * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject
+ */
+ protected $eventDispatcher;
+
/**
* {@inheritdoc}
*/
->disableOriginalConstructor()
->getMock();
+ $this->eventDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
+
$this->configFieldMapper = new ConfigFieldMapper(
'node_fields',
$definition,
$this->getMock('Drupal\Core\Routing\RouteProviderInterface'),
$this->getStringTranslationStub(),
$this->entityManager,
- $this->getMock('Drupal\Core\Language\LanguageManagerInterface')
+ $this->getMock('Drupal\Core\Language\LanguageManagerInterface'),
+ $this->eventDispatcher
);
}