Пример #1
0
 /**
  * Start Test callback
  *
  * @param string $method
  * @return void
  * @access public
  */
 public function startTest($method)
 {
     parent::startTest($method);
     $this->Translation = AppMock::getTestModel('I18n.Translation');
     $fixture = new I18nFixture();
     $this->record = array('Translation' => $fixture->records[0]);
 }
Пример #2
0
 /**
  * Start Test callback
  *
  * @param string $method
  * @return void
  * @access public
  */
 public function startTest($method)
 {
     parent::startTest($method);
     $this->Translations = AppMock::getTestController('TranslationsController');
     $this->Translations->constructClasses();
     $this->Translations->Prg->initialize($this->Translations);
     $this->Translations->params = array('named' => array(), 'pass' => array(), 'url' => array());
     $fixture = new I18nFixture();
     $this->record = array('Translation' => $fixture->records[0]);
 }
 /**
  * Start Test callback
  *
  * @param string $method
  * @return void
  */
 public function startTest($method)
 {
     parent::startTest($method);
     $this->Categories = AppMock::getTestController('I18nCategoriesController');
     $this->Categories->constructClasses();
     $this->Categories->Auth = new CategoriesControllerTestAuthComponent();
     $this->Categories->Category = $this->Categories->I18nCategory;
     $this->Categories->params = array('named' => array(), 'pass' => array(), 'url' => array());
     $fixture = new CategoryFixture();
     $this->record = array('I18nCategory' => $fixture->records[0]);
 }