Author: Andrzej Swedrzynski (andrzej.swedrzynski@openx.org)
Inheritance: extends UnitTestCase
Exemplo n.º 1
0
 protected function setUp()
 {
     // Expected session_regenerate_id() error
     $session = $this->getMock('CHttpSession', array('regenerateID'));
     $this->mockApplication(array('components' => array('session' => $session)), 'CWebApplication');
     parent::setUp();
 }
Exemplo n.º 2
0
 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';
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     ConfigLoader::load($this->configuration, ConfigLoader::MYSQL);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->loadFixture('contao3.sql');
 }