function before()
 {
     $this->access = Mockster::of(AccessControl::class);
     $this->registry = new ActionRegistry();
     $this->registry->restrictAccess(Mockster::mock($this->access));
     $this->reader = Mockster::of(ParameterReader::class);
     $fields = new FieldRegistry();
     $this->executor = new Executor($this->registry, $fields, Mockster::mock(RendererRegistry::class), Mockster::mock($this->reader));
     $this->executor->restrictAccess(Mockster::mock($this->access));
     $fields->add(new StringField());
 }
示例#2
0
 public function prepare(WebRequest $request)
 {
     $this->registerRenderers($request->getContext());
     $this->registerFields();
     $this->actions->restrictAccess($this->getAccessControl($request));
 }