/**
  * @param array $configValues
  * @param string $entityName
  * @dataProvider setParametersDataProvider
  */
 public function testProcessConfigs(array $configValues, $entityName)
 {
     $config = DatagridConfiguration::create($configValues);
     $callback = $this->getProcessConfigsCallBack();
     $this->guesser->expects($this->any())->method('getColumnOptions')->will($this->returnCallback($callback));
     $this->entityClassNameHelper->expects($this->any())->method('getUrlSafeClassName')->willReturn('Oro_Bundle_EntityBundle_Tests_Unit_Fixtures_Stub_SomeEntity');
     $this->extension->processConfigs($config);
     $expectedValues = $this->getProcessConfigsExpectedValues($entityName);
     $expectedResult = DatagridConfiguration::create($expectedValues);
     $key = Configuration::BASE_CONFIG_KEY;
     $this->assertEquals($config->offsetGet($key), $expectedResult->offsetGet($key));
     $key = FormatterConfiguration::COLUMNS_KEY;
     $this->assertEquals($config->offsetGet($key), $expectedResult->offsetGet($key));
 }
 public function testProcessConfigs()
 {
     $entityName = 'Oro\\Bundle\\EntityBundle\\Tests\\Unit\\Fixtures\\Stub\\SomeEntity';
     $configValues = [Configuration::BASE_CONFIG_KEY => ['enable' => true, 'entity_name' => $entityName], FormatterConfiguration::COLUMNS_KEY => ['testText' => ['label' => 'test_text'], 'testSelect' => ['label' => 'test_select', PropertyInterface::FRONTEND_TYPE_KEY => 'string'], 'testAnotherText' => ['label' => 'test_config_overwrite', 'inline_editing' => ['enable' => false]], 'id' => ['label' => 'test_black_list'], 'updatedAt' => ['label' => 'test_black_list'], 'createdAt' => ['label' => 'test_black_list']]];
     $config = DatagridConfiguration::create($configValues);
     $callback = $this->getProcessConfigsCallBack();
     $this->guesser->expects($this->any())->method('getColumnOptions')->will($this->returnCallback($callback));
     $this->entityClassNameHelper->expects($this->any())->method('getUrlSafeClassName')->willReturn('Oro_Bundle_EntityBundle_Tests_Unit_Fixtures_Stub_SomeEntity');
     $this->extension->processConfigs($config);
     $expectedValues = $this->getProcessConfigsExpectedValues($entityName);
     $expectedResult = DatagridConfiguration::create($expectedValues);
     $key = Configuration::BASE_CONFIG_KEY;
     $this->assertEquals($config->offsetGet($key), $expectedResult->offsetGet($key));
     $key = FormatterConfiguration::COLUMNS_KEY;
     $this->assertEquals($config->offsetGet($key), $expectedResult->offsetGet($key));
 }