Author: Andrzej Swedrzynski (andrzej.swedrzynski@openx.org)
Inheritance: extends UnitTestCase
Example #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();
 }
Example #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';
 }
 public function setUp()
 {
     parent::setUp();
     ConfigLoader::load($this->configuration, ConfigLoader::MYSQL);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->loadFixture('contao3.sql');
 }