Inheritance: extends phpbb_database_test_case
Beispiel #1
0
 public function tearDown()
 {
     parent::tearDown();
     // Set cache back to what it was before the test changed it
     global $cache;
     $cache = $this->backup_cache;
 }
 public function setUp()
 {
     parent::setUp();
     $this->session = $this->session_factory->get_session($this->db);
     global $phpbb_container;
     $plugins = new \phpbb\di\service_collection($phpbb_container);
     $plugins->add('core.captcha.plugins.nogd');
     $phpbb_container->set('captcha.factory', new \phpbb\captcha\factory($phpbb_container, $plugins));
     $phpbb_container->set('core.captcha.plugins.nogd', new \phpbb\captcha\plugins\nogd());
 }