function it_doesnt_allow_overriding_frontend_type()
 {
     $params = ['route' => 'foo', 'frontend_type' => 'bar'];
     $options = ActionConfiguration::createNamed('edit', $params);
     $this->setOptions($options)->shouldNotThrow(Argument::any());
     $this->getOptions()->offsetGet('frontend_type')->shouldReturn('redirect');
 }
 function it_doesnt_allow_overriding_frontend_type()
 {
     $routeParams = array('_format' => 'foo', '_contentType' => 'bar');
     $params = array('route_parameters' => $routeParams, 'frontend_type' => 'bar');
     $options = ActionConfiguration::createNamed('edit', $params);
     $this->setOptions($options)->shouldNotThrow(Argument::any());
     $this->getOptions()->offsetGet('frontend_type')->shouldReturn('export');
 }
Esempio n. 3
0
 protected function setUp()
 {
     $this->configuration = ActionConfiguration::createNamed('test', ['entity_name' => 'test', 'data_identifier' => 'test']);
 }