public function setUp() { parent::setUp(); $this->User = ClassRegistry::init('CommonTestStateableUser'); $this->Invoice = ClassRegistry::init('CommonTestStateableInvoice'); $this->Invalid = ClassRegistry::init('CommonTestStateableInvalid'); }
public function setUp() { parent::setUp(); $this->User = ClassRegistry::init('CommonTestComputableUser'); $this->Invoice = ClassRegistry::init('CommonTestComputableInvoice'); $this->Computable = $this->Invoice->Behaviors->Computable; }
public function setUp() { parent::setUp(); $this->Company = ClassRegistry::init('CommonTestAuthorizableCompany'); $this->Department = ClassRegistry::init('CommonTestAuthorizableDepartment'); $this->Doc = ClassRegistry::init('CommonTestAuthorizableDoc'); $this->Record = ClassRegistry::init('CommonTestAuthorizableRecord'); $this->User = ClassRegistry::init('CommonTestAuthorizableUser'); }
public function setUp() { parent::setUp(); if (!CakePlugin::loaded('Common')) { CakePlugin::load('Common'); } $this->CakeRequest = $this->getMock('CakeRequest', array('is')); $this->Controller = $this->getMock('TestCommonController', array('redirect', 'referer', 'set'), array($this->CakeRequest, new CakeResponse())); $this->Controller->Components = $this->getMock('ComponentCollection', array('init')); $this->Controller->eventManager = $this->getMock('CommonEventManager', array('listPlugins')); $this->Controller->eventManager->expects($this->any())->method('listPlugins')->will($this->returnValue(array())); $this->Controller->Session = $this->getMock('SessionComponent', array('setFlash'), array($this->Controller->Components)); $this->Controller->constructClasses(); $this->flashMessage = String::insert($this->Controller->alertMessages['delete.success']['message'], array('modelName' => 'Test'), array('clean' => true)); }
public function setUp() { parent::setUp(); if (empty($_GET['bootstrap'])) { $this->__resetPlugins = array(); foreach (array('TwitterBootstrap', 'BoostCake') as $plugin) { if (CakePlugin::loaded($plugin)) { $resetPlugins[] = $plugin; CakePlugin::unload($plugin); } } } $this->View = $this->getMock('View', array('append'), array(new TableHelperTestController())); $this->Table = new TestTableHelper($this->View); $this->Table->Paginator = new PaginatorHelper($this->View); if (CakePlugin::loaded('TwitterBootstrap')) { App::uses('BootstrapPaginatorHelper', 'TwitterBootstrap.View/Helper'); $this->Table->Paginator = new BootstrapPaginatorHelper($this->View); } $this->Table->Paginator->request = new CakeRequest(null, false); $this->Table->Paginator->request->addParams(array('paging' => array('Article' => array('page' => 1, 'current' => 2, 'count' => 8, 'prevPage' => false, 'nextPage' => true, 'pageCount' => 3, 'order' => null, 'limit' => 3, 'options' => array('page' => 1, 'conditions' => array()), 'paramType' => 'named')))); }
public function setUp() { parent::setUp(); $this->Model = ClassRegistry::init('TestCommonAppModel'); }
public function setUp() { parent::setUp(); $this->User = ClassRegistry::init('CommonTestConfirmableUser'); }
public function setUp() { $this->helper = $this->getMockForAbstractClass('Zend\\Form\\View\\Helper\\AbstractHelper'); parent::setUp(); }
public function setUp() { parent::setUp(); $this->User = ClassRegistry::init('SecurityTestTokenizableUser'); }
public function setUp() { parent::setUp(); $this->Helper = new TestCommonAppHelper(new View()); Router::reload(); }
public function setUp() { parent::setUp(); $this->Post = ClassRegistry::init('CommonTestCommentablePost'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->Model = ClassRegistry::init('TestModel'); $this->User = ClassRegistry::init('TestUser'); }
public function setUp() { parent::setUp(); $this->Original = ClassRegistry::init('CommonTestOriginal'); $this->Duplicate = ClassRegistry::init('CommonTestDuplicate'); }
public function setUp() { parent::setUp(); self::$_menus = Navigation::items(); }
public function setUp() { parent::setUp(); $this->AccessLimit = ClassRegistry::init('Security.AccessLimit'); }
public function setUp() { parent::setUp(); $this->Token = ClassRegistry::init('Security.SecurityToken'); }
public function setUp() { parent::setUp(); }