file)) { $this->customConnectors = file_get_contents($this->file); } else { mkdir_recursive('custom/modules/Connectors/metadata'); file_put_contents($this->file, 'customConnectors)) { file_put_contents($this->file, $this->customConnectors); } else if(file_exists($this->file)) { unlink($this->file); } } /** * testUpgradeConnectors * * This method calls upgrade_connectors and checks to make sure we have deleted the custom connectors.php file */ public function testUpgradeConnectors() { upgrade_connectors(); $this->assertTrue(!file_exists($this->file), 'upgrade_connectors did not remove file ' . $this->file); } }