public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Service\\StandardControllerService';
     parent::setUp();
     $this->svc = new StandardControllerService(\Psc\PSC::getProject());
     $this->ctrlClass = __NAMESPACE__ . '\\MyTestController';
     $this->svc->setControllerClass('test', $this->ctrlClass);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     $this->chainClass = 'Psc\\CMS\\Service\\EntityService';
     parent::setUp();
     $this->project = clone \Psc\PSC::getProject();
     $this->dc = new \Psc\Doctrine\DCPackage($this->getModule('Doctrine'));
     $this->factory = new Factory('Psc\\Test\\Controllers', $this->getContainer());
     $this->svc = new EntityService($this->dc, $this->factory, $this->project, 'entities');
 }