Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function prepareConfig(array $config, array $parentConfig = [])
 {
     $config['options'] = array_merge($default = ['trans_domain' => 'grids'], isset($parentConfig['options']) ? array_intersect_key($parentConfig['options'], $default) : [], isset($config['options']) ? $config['options'] : []);
     return parent::prepareConfig($config, $parentConfig);
 }
Example #2
0
 /**
  * @expectedException \Lug\Component\Grid\Exception\ConfigNotFoundException
  * @expectedExceptionMessage The grid config "resource" could not be found.
  */
 public function testBuildWithMissingResource()
 {
     $this->builder->build([]);
 }