Exemplo n.º 1
0
 /**
  * testUninstall
  *
  * @since 2.2.0
  */
 public function testUninstall()
 {
     /* setup */
     $module = new Module(array('alias' => 'test'));
     $module->uninstall();
     /* result */
     Db::clearCache();
     $result = Db::forPrefixTable('modules')->where('alias', 'test')->findOne();
     /* compare */
     $this->assertFalse(is_object($result));
 }
Exemplo n.º 2
0
 /**
  * setUp
  *
  * @since 2.4.0
  */
 public function setUp()
 {
     Db::clearCache();
 }
Exemplo n.º 3
0
 /**
  * setUp
  *
  * @since 2.4.0
  */
 public function setUp()
 {
     $this->_config = Config::getInstance();
     $this->_config->set('dbPrefix', 'installer_');
     Db::clearCache();
 }