作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new UsersFormController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->apiSetup = new ApiSetup();
$this->validInputSample = array('key' => 'myApiKey', 'username' => 'myUsername', 'password' => 'myPassword');
$this->resouceClassMapSample = array('contents' => 'ApiWebService\\Model\\Resources\\PostsApiResource', 'blogs' => 'ClassDoesntExist');
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContrattiPubbliciSceltaContraenteSummaryController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new AttachmentsSummaryController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new AlboPretorioRelataPdfController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContenutiOperationsController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContrattiPubbliciOperatoriFormController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new HomePageBlocksPositionsController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContenutiTabellaUpdateController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
$this->formDataSample = array('id' => 1, 'titolo' => 'My Hidden article title', 'tabella' => 'My large content table!');
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new BlogsFormController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
$this->controller->layout()->setVariable('configurations', array('media_dir' => 'public\\frontend\\media', 'media_project' => 'public\\frontend\\media\\demo'));
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContrattiPubbliciSummaryController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
$this->setupUserSession($this->recoverUserDetails());
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new ContenutiUpdateController();
$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, 'id' => 1);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->controller = new AttachmentsOperationsController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->getServiceManager());
$this->request->setMethod(Request::METHOD_POST)->getPost()->fromArray(array('id' => 1, 'attiConcessioneColonna' => 2));
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
ServiceLocatorFactory::setInstance($this->getServiceManager());
$this->controller = new UsersRecoverPasswordController();
$this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->serviceManager);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
ServiceLocatorFactory::setInstance($this->getServiceManager());
$this->controller = new AlboPretorioSearchController();
$this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->serviceManager);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
ServiceLocatorFactory::setInstance($this->getServiceManager());
$this->controller = $this->getMockForAbstractClass('\\Application\\Controller\\SetupAbstractController');
$this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->serviceManager);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
ServiceLocatorFactory::setInstance($this->getServiceManager());
$this->controller = new CookieWarningController();
$this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->serviceManager);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
ServiceLocatorFactory::setInstance($this->getServiceManager());
$this->controller = new StatoCivileExportController();
$this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($this->serviceManager);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$sm = $this->getServiceManager();
$this->request = new Request();
$sm->setService('request', $this->request);
$this->controller = new AlboPretorioOperationsController();
$this->controller->setEvent($this->event);
$this->controller->setServiceLocator($sm);
}
作者:usba
项目:entilocal
protected function setUp()
{
parent::setUp();
$this->helper = new HomePageHelper();
$this->homePageRecordsSample = array('albo-pretorio' => array(array('id' => 1, 'referenceId' => 2, 'position' => 2), array('id' => 2, 'referenceId' => 3, 'position' => 3), array('id' => 3, 'referenceId' => 4, 'position' => 1)), 'freeText' => array(array('id' => 4, 'referenceId' => 5, 'freeText' => 'This is my free text', 'position' => 1)));
}