/**
  * Getters of toolbar complete config
  *
  * @return JsonResponse
  */
 public function getAction()
 {
     $settings = $this->config->getSettingsConfig();
     $corePlugins = $this->pluginManager->getPluginConfiguration();
     $config = array_merge($settings ?: [], $corePlugins);
     return new JsonResponse($this->resolveResourceBaseUrl($config));
 }
 public function testGetPluginConfiguration()
 {
     $definition = new Definition(__NAMESPACE__ . '\\TestPlugin');
     $definition->addTag(PluginManager::PLUGIN_SERVICE_TAG);
     $this->container->setDefinition('test_plugin', $definition->setArguments(['test_plugin']));
     $definition = new Definition(__NAMESPACE__ . '\\TestPlugin');
     $definition->addTag(PluginManager::PLUGIN_SERVICE_TAG);
     $this->container->setDefinition('another_test_plugin', $definition->setArguments(['another_test_plugin']));
     $this->assertEquals(['plugin' => ['namespace' => ['test_plugin' => TestPlugin::TEST_NAMESPACE, 'another_test_plugin' => TestPlugin::TEST_NAMESPACE], 'config' => ['test_plugin' => TestPlugin::$test_configuration, 'another_test_plugin' => TestPlugin::$test_configuration]]], $this->plugin_manager->getPluginConfiguration());
 }
 public function testGetAction()
 {
     $response = $this->controller->getAction();
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse', $response);
     $this->assertEquals(json_encode($this->plugin_manager->getPluginConfiguration()), $response->getContent());
 }