From 575c8ef130cb23dd1a5f77461643acf67b059223 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 30 Aug 2020 20:13:10 +0200 Subject: [PATCH] autofixes --- Models/EditorDoc.php | 2 +- Theme/Backend/editor-create.tpl.php | 2 +- Theme/Backend/editor-list.tpl.php | 14 +++++++------- tests/Admin/AdminTest.php | 1 + tests/ControllerTest.php | 1 + 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index 7a1fade..7a2977c 100755 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -27,7 +27,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -class EditorDoc implements ArrayableInterface, \JsonSerializable +class EditorDoc implements \JsonSerializable, ArrayableInterface { /** * Article ID. diff --git a/Theme/Backend/editor-create.tpl.php b/Theme/Backend/editor-create.tpl.php index 5816647..cd766ae 100755 --- a/Theme/Backend/editor-create.tpl.php +++ b/Theme/Backend/editor-create.tpl.php @@ -29,7 +29,7 @@ echo $this->getData('nav')->render(); ?>
-
+
diff --git a/Theme/Backend/editor-list.tpl.php b/Theme/Backend/editor-list.tpl.php index 6f6a36e..33bacd6 100755 --- a/Theme/Backend/editor-list.tpl.php +++ b/Theme/Backend/editor-list.tpl.php @@ -29,20 +29,20 @@ echo $this->getData('nav')->render(); ?>
-
getHtml('Documents') ?>
+
getHtml('Documents'); ?>
- $value) : ++$count; $url = UriFactory::build('{/prefix}editor/single?{?}&id=' . $value->getId()); ?> -
getHtml('Title') ?> - getHtml('Creator') ?> - getHtml('Created') ?> + getHtml('Title'); ?> + getHtml('Creator'); ?> + getHtml('Created'); ?>
printHtml($value->getTitle()); ?> - printHtml($value->getCreatedBy()->getName1()); ?> - printHtml($value->getCreatedAt()->format('Y-m-d H:i:s')); ?> + printHtml($value->getTitle()); ?> + printHtml($value->getCreatedBy()->getName1()); ?> + printHtml($value->getCreatedAt()->format('Y-m-d H:i:s')); ?>
getHtml('Empty', '0', '0'); ?> diff --git a/tests/Admin/AdminTest.php b/tests/Admin/AdminTest.php index 2cac4b4..73675c9 100755 --- a/tests/Admin/AdminTest.php +++ b/tests/Admin/AdminTest.php @@ -20,6 +20,7 @@ namespace Modules\Editor\tests\Admin; class AdminTest extends \PHPUnit\Framework\TestCase { protected const MODULE_NAME = 'Editor'; + protected const URI_LOAD = 'http://127.0.0.1/en/backend/editor'; use \Modules\tests\ModuleTestTrait; diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php index 9f2527c..a35439d 100755 --- a/tests/ControllerTest.php +++ b/tests/ControllerTest.php @@ -36,6 +36,7 @@ use phpOMS\Utils\TestUtils; class ControllerTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; + protected ApiController $module; protected function setUp() : void