* Rewrite page save page.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user