Author: Andrzej Swedrzynski (andrzej.swedrzynski@openx.org)
Inheritance: extends UnitTestCase
コード例 #1
0
ファイル: LoginFormTest.php プロジェクト: Saltly/SourceBans
 protected function setUp()
 {
     // Expected session_regenerate_id() error
     $session = $this->getMock('CHttpSession', array('regenerateID'));
     $this->mockApplication(array('components' => array('session' => $session)), 'CWebApplication');
     parent::setUp();
 }
コード例 #2
0
ファイル: DbFunctionTest.php プロジェクト: glpi-project/glpi
 protected function setUp()
 {
     global $CFG_GLPI;
     parent::setUp();
     // Clean the cache
     unset($CFG_GLPI['glpiitemtypetables']);
     unset($CFG_GLPI['glpitablesitemtype']);
     // Pseudo plugin class for test
     include_once 'fixtures/pluginfoobar.php';
 }
コード例 #3
0
 public function setUp()
 {
     parent::setUp();
     ConfigLoader::load($this->configuration, ConfigLoader::MYSQL);
 }
コード例 #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->loadFixture('contao3.sql');
 }