test fixes and changes for release

This commit is contained in:
Dennis Eichhorn 2022-12-25 00:06:17 +01:00
parent 2bd6708ec0
commit 7a91d0b537
4 changed files with 46 additions and 3 deletions

View File

@ -8,7 +8,7 @@
"uri": "{/lang}/{/app}/editor/list", "uri": "{/lang}/{/app}/editor/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 75, "order": 20,
"from": "Editor", "from": "Editor",
"permission": { "permission": 2, "category": null, "element": null }, "permission": { "permission": 2, "category": null, "element": null },
"parent": 1003301001, "parent": 1003301001,

View File

@ -50,7 +50,7 @@ class EditorDocType implements \JsonSerializable
* @var string|EditorDocTypeL11n * @var string|EditorDocTypeL11n
* @since 1.0.0 * @since 1.0.0
*/ */
protected $title; protected $title = '';
/** /**
* Constructor. * Constructor.
@ -100,7 +100,7 @@ class EditorDocType implements \JsonSerializable
{ {
if ($title instanceof EditorDocTypeL11n) { if ($title instanceof EditorDocTypeL11n) {
$this->title = $title; $this->title = $title;
} elseif (isset($this->title) && $this->title instanceof EditorDocTypeL11n) { } elseif ($this->title instanceof EditorDocTypeL11n) {
$this->title->title = $title; $this->title->title = $title;
} else { } else {
$this->title = new EditorDocTypeL11n(); $this->title = new EditorDocTypeL11n();

View File

@ -197,6 +197,30 @@ class TextView extends View
return $this->printHtml($this->tplValue); return $this->printHtml($this->tplValue);
} }
/**
* Render template value path
*
* @return string
*
* @since 1.0.0
*/
public function renderTplValuePath() : string
{
return $this->printHtml($this->tplValuePath);
}
/**
* Render text value path
*
* @return string
*
* @since 1.0.0
*/
public function renderTextValuePath() : string
{
return $this->printHtml($this->textValuePath);
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */

View File

@ -257,6 +257,25 @@ $CONFIG = [
'root' => '/', 'root' => '/',
'https' => false, 'https' => false,
], ],
'app' => [
'path' => __DIR__,
'default' => [
'app' => 'Backend',
'id' => 'backend',
'lang' => 'en',
'theme' => 'Backend',
'org' => 1,
],
'domains' => [
'127.0.0.1' => [
'app' => 'Backend',
'id' => 'backend',
'lang' => 'en',
'theme' => 'Backend',
'org' => 1,
],
],
],
'socket' => [ 'socket' => [
'master' => [ 'master' => [
'host' => '127.0.0.1', 'host' => '127.0.0.1',