public function testExportGeoToFile() { $file = FileDataManager::getBackupPath('encoded_locations.tmp'); if (file_exists($file)) { unlink($file); } $this->assertFalse(file_exists($file)); $this->dao->exportGeoToFile($file); $this->assertTrue(file_exists($file)); }
public function testExportGeoToFile() { $file = THINKUP_WEBAPP_PATH . BackupDAO::CACHE_DIR . '/encoded_locations.tmp'; if (file_exists($file)) { unlink($file); } $this->assertFalse(file_exists($file)); $this->dao->exportGeoToFile($file); $this->assertTrue(file_exists($file)); }