getMappers(); $mapper = $mappers['system.site_information_settings']; // Test that it doesn't contain a config name from config_translation_test. $config_names = $mapper->getConfigNames(); $this->assertNotContains('config_translation_test.content', $config_names); // Call populateFromRouteMatch() to dispatch the "config mapper populate" // event. $mapper->populateFromRouteMatch(new RouteMatch('test', new Route('/'))); // Test that it contains the new config name from config_translation_test. $config_names = $mapper->getConfigNames(); $this->assertContains('config_translation_test.content', $config_names); } }