/** * Inserts or updates a database entry. * * An override of the parent method to allow back compatibililty and configuration based use. * * @param string $table The table name. * @param array $data An associative array of the column names and values to insert. * * @return void */ public function javeInDatabase($table, array $data) { $this->debugSection('Configuration', sprintf('Update setting set to %s', $this->config['update'])); if (isset($this->config['update']) and $this->config['update']) { return parent::haveOrUpdateInDatabase($table, $data); } return parent::haveInDatabase($table, $data); }
public function _cleanup() { parent::_cleanup(); $this->blogId = 0; }
public function _after(TestCase $test) { parent::_after($test); if ($this->isMultisite && $this->shouldRestoreFiles) { if (empty($this->config['wpRootFolder'])) { throw new ModuleConfigException(__CLASS__, 'WordPress root folder must be set to have multisite files replaced'); } $path = $this->config['wpRootFolder']; $htaccessReplacer = $this->makeHtaccessReplacer($path); $wpconfigReplacer = $this->makeWpConfigReplacer($path); $htaccessReplacer->restoreOriginal(); $wpconfigReplacer->restoreOriginal(); $this->shouldRestoreFiles = false; } }