X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fconfig_translation%2Ftests%2Fsrc%2FUnit%2FConfigNamesMapperTest.php;fp=web%2Fcore%2Fmodules%2Fconfig_translation%2Ftests%2Fsrc%2FUnit%2FConfigNamesMapperTest.php;h=aeb6c4a000b1751662ef6f8243eedbc2bc5ca20c;hp=b099c7fa2138b137b373d55454cd15f5e1b55be6;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/web/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index b099c7fa2..aeb6c4a00 100644 --- a/web/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/web/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -88,6 +88,13 @@ class ConfigNamesMapperTest extends UnitTestCase { */ protected $languageManager; + /** + * The mocked event dispatcher. + * + * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|\PHPUnit_Framework_MockObject_MockObject + */ + protected $eventDispatcher; + protected function setUp() { $this->routeProvider = $this->getMock('Drupal\Core\Routing\RouteProviderInterface'); @@ -122,6 +129,8 @@ class ConfigNamesMapperTest extends UnitTestCase { $this->languageManager = $this->getMock('Drupal\Core\Language\LanguageManagerInterface'); + $this->eventDispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'); + $this->configNamesMapper = new TestConfigNamesMapper( 'system.site_information_settings', $this->pluginDefinition, @@ -131,7 +140,8 @@ class ConfigNamesMapperTest extends UnitTestCase { $this->configMapperManager, $this->routeProvider, $this->getStringTranslationStub(), - $this->languageManager + $this->languageManager, + $this->eventDispatcher ); }