コード例 #1
0
 function before($method)
 {
     if ($this->debug) {
         pr($method);
     }
     parent::before($method);
 }
コード例 #2
0
 public function before($method)
 {
     Configure::write('Database.logSQL', 0);
     $msg = sprintf('(%s::%s)', get_class($this), $method);
     CakeLog::write(LOG_INFO, $msg);
     parent::before($method);
     Configure::write('Database.logSQL', 2);
 }
コード例 #3
0
 function before($method)
 {
     if (!in_array(strtolower($method), $this->methods)) {
         extract($this->settings);
         $this->selenium = new Testing_Selenium($browser, $url, $host, $port);
         $this->selenium->start();
         if ($this->settings['speed']) {
             $this->selenium->setSpeed($this->settings['speed']);
         }
         $this->selenium->open('/selenium/selenium/cookie/' . $this->cookie);
         $this->selenium->waitForPageToLoad();
         $this->assertTrue($this->selenium->isCookiePresent('selenium'));
         $this->assertTrue($this->selenium->isTextPresent('Cookie created'));
         $this->assertEqual($this->selenium->getCookieByName('selenium'), $this->cookie);
     }
     return parent::before($method);
 }
コード例 #4
0
ファイル: acl.test.php プロジェクト: Jaciss/wildflower
 /**
  * before method
  *
  * @param mixed $method
  * @access public
  * @return void
  */
 function before($method)
 {
     Configure::write('Acl.classname', 'DbAclTwoTest');
     Configure::write('Acl.database', 'test_suite');
     parent::before($method);
 }