/** * 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)); }
/** * setUp * * @since 2.4.0 */ public function setUp() { Db::clearCache(); }
/** * setUp * * @since 2.4.0 */ public function setUp() { $this->_config = Config::getInstance(); $this->_config->set('dbPrefix', 'installer_'); Db::clearCache(); }