protected function tearDown() { $this->config->deleteConfig('google/analytics/active', 'default', 0); $this->config->deleteConfig('google/analytics/type', 'default', 0); $this->config->deleteConfig('google/analytics/experiments', 'default', 0); $this->config->deleteConfig('google/analytics/account', 'default', 0); $this->resetConfig(); }
public function testSaveDeleteConfig() { $connection = $this->_model->getConnection(); $select = $connection->select()->from($this->_model->getMainTable())->where('path=?', 'test/config'); $this->_model->saveConfig('test/config', 'test', 'default', 0); $this->assertNotEmpty($connection->fetchRow($select)); $this->_model->deleteConfig('test/config', 'default', 0); $this->assertEmpty($connection->fetchRow($select)); }