protected function setUp()
 {
     parent::setUp();
     $this->controller = new UsersRolesUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => '', 'name' => 'RoleTest', 'description' => 'This is role for test', 'adminAccess' => '');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new StatoCivileUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('titolo' => 'Primo atto stato civile', 'anno' => date("Y"), 'data' => date("Y-m-d"), 'ora' => date("H:i:s"), 'attivo' => 1, 'scadenza' => date("Y-m-d H:i:s"), 'utente' => 1, 'sezione' => 1, 'home' => 0);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new AttiConcessioneUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('titolo' => 'Atto 1 test', 'beneficiario' => 'Beneficiario test', 'importo' => 1230, 'modAssegnazione' => 1, 'dataInserimento' => '2015-01-01 01:01:00', 'anno' => 2015, 'settore' => 1, 'respProc' => 1, 'ufficioResponsabile' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new StatoCivileSezioniInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => '', 'nome' => 'Nuova sezione', 'attivo' => '1');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new ContrattiPubbliciSceltaContraenteUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => '', 'nomeScelta' => 'Voce scelta contraente', 'attivo' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new ModalitaAssegnazioneUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('nome' => 'Mod. Assegnazione 1 test');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new ContrattiPubbliciInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => '', 'cig' => 'Z102358012', 'titolo' => 'Bando test', 'beneficiario' => 'Azienda test', 'numeroDetermina' => 1, 'dataDetermina' => '2015-01-02', 'importoAggiudicazione' => 1230, 'importoLiquidato' => 1210, 'settoreId' => 1, 'respProcId' => 1, 'numeroOfferte' => 2, 'dataInizioLavori' => '2015-01-08 01:02:10', 'dataFineLavori' => '2015-01-08 01:02:10', 'sceltaContraenteId' => 1, 'dataInserimento' => '2014-01-08 01:02:10', 'utenteId' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new ContrattiPubbliciOperatoriUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => '', 'nome' => 'Azienda test', 'cf' => 'FCZ104AM120M', 'ragioneSociale' => 'S.p.a.');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new EntiTerziUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('nome' => 'Ente terzo test', 'email' => '*****@*****.**');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new SettoriInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('nome' => 'Settore test', 'responsabileUserId' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new SezioniUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('nome' => 'Sezione test', 'lingua' => 'it', 'colonna' => 'sx', 'attivo' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new TicketsInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('subject' => 'My subjec test', 'message' => 'my ticket message test', 'priority' => 'alta');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new AlboPretorioInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('id' => 1, 'titolo' => 'Albo pretorio test 1', 'numeroAtto' => 'Albo pretorio test 1', 'anno' => 2015, 'enteTerzo' => 'ente terzo test', 'fonteUrl' => '', 'sezione' => 1, 'numeroGiorniScadenza' => '', 'homepage' => 1, 'facebook' => '', 'note' => 'note test rettifica');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new AlboPretorioSezioniUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('nome' => 'Sezione albo test', 'attivo' => 1);
 }
Exemplo n.º 15
0
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new UsersUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('name' => 'John', 'surname' => 'Doe', 'email' => '*****@*****.**', 'username' => 'usernameTest', 'password' => 'passwordTest', 'password_verify' => 'passwordTest', 'roleId' => 1, 'settoreId' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new ContenutiInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->formDataSample = array('titolo' => 'My Content Title', 'sommario' => 'My Content SubTitle', 'testo' => 'My Large Text', 'sottosezione' => 1, 'dataInserimento' => '2015-05-28 01:01:00', 'dataScadenza' => '2015-05-28 01:01:00', 'attivo' => 1, 'home' => 1, 'rss' => 1, 'utente' => 1);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new SottoSezioniInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $this->routeMatch->setParam('modulename', 'contenuti');
     $this->formDataSample = array('idSottoSezione' => 1, 'sezione' => 1, 'nomeSottoSezione' => 1, 'attivo' => 1, 'url' => 'http://www.myurl.com');
 }
Exemplo n.º 18
0
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new BlogsUpdateController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $upload = new \Zend\Stdlib\Parameters(['image' => ['name' => 'my image', 'type' => 'img', 'tmp_name' => 'tmp/file', 'error' => 0]]);
     $this->request->setFiles($upload);
     $this->formDataSample = array(current($this->request->getFiles()->toArray()), 'title' => 'My post title', 'description' => 'My post description as a long text', 'status' => 1, 'expireDate' => '2015-01-01 01:01:00', 'categories' => array(1, 2, 3), 'moduleId' => 4);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->controller = new AttachmentsInsertController();
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->getServiceManager());
     $upload = new \Zend\Stdlib\Parameters(['attachmentFile' => ['name' => 'blah.blah', 'type' => 'blah', 'tmp_name' => 'tmp/file', 'error' => 0]]);
     $this->request->setFiles($upload);
     $this->formDataSample = array(current($this->request->getFiles()->toArray()), 'title' => 'my file title', 'description' => 'my file description', 'expireDate' => '2015-01-01 01:00:00', 's3_directory' => 'subdirectory', 'moduleId' => 2, 'attachmenOptionId' => 2, 'referenceId' => 2);
 }