* Rewrite page save page.

This commit is contained in:
wangyidong
2023-11-23 08:47:34 +08:00
parent 46e2515d11
commit d6443a8d98
4 changed files with 68 additions and 14 deletions
+14
View File
@@ -371,6 +371,20 @@ class editorTest
return $result;
}
/**
* Test for save method.
*
* @param string $filePath
* @access public
* @return string|bool
*/
public function saveTest(string $filePath): string|bool
{
$_POST['fileContent'] = "<?php\n";
return $this->objectModel->save($filePath);
}
/**
* Test for get class name by path.
*