Skip to content
Permalink
Browse files

Develop (#598)

* Use move.css over internal animate.css

* Tiny code cleanup

* Remove floats and clearfix helper

* Acceptance test for content / layout

* Acceptance test for error and split to unit-provider and acceptance-provider

* Fix invalid lastId and therefore routing

* Fix invalid lastId and therefore routing part2

* Fix invalid lastId and therefore routing part3

* Fix invalid lastId and therefore routing part4

* Temporary mark tests as skipped

* Fix unit and acceptance testing

* Add php-zip to fix 7.4snapshot

* Add php-zip to fix 7.4snapshot part2

* Add php-zip to fix 7.4snapshot part3

* Acceptance testing for console

* Acceptance testing for console part2

* Remove use for same namespace issue

* Use latest coding style and simplify returns of Server classes

* Experimental admin processing (#596)

* Reset toggleable fields while selecting sqlite installation

* Fix divider value on installation

* Update dependencies and bump version

* Fix acceptance testing

* Fix acceptance testing part2

* Fix acceptance testing part3

* Fix acceptance testing part4

* Update .eslintrc

* Update dependencies and fix linter issues

* Set quite low page cache lifetime

* Use 5 minutes for page cache

* Improve table sorter by preventing unwanted touch via CSS

* Revert "Improve table sorter by preventing unwanted touch via CSS" because of lacking Safari Support

* Revert "Improve table sorter by preventing unwanted touch via CSS" because of lacking Safari Support

* Adjust visibility

* Fix parse errors on missing install/uninstall of modules

* Line through corrupted modules for the moment

* Fix PHP linter

* Reduce query to settings table

* Prevent queries to database for empty alias and id

* Fix typo in comment model

* Choice readability over micro optimisation / performance

* Reduce queries by using equal limit in header and sidebar

* Fix PHPCS

* Reduce database queries in bootstrap

* Update node dependencies

* Cosmetics

* Phpunit8 update and void types (#593)

* Update to PHPUnit8 and void return types

* Update to PHPUnit8 and void return types part2

* Switch to latest coding standard

* Found the issue that broke everything

* Allow failure on mutation-score

* Downgrade infection for the moment

* Add missing span to navigation classes

* Add brotli compression

* Fix unit testing

* Minor fix

* Update .travis.yml

* Switch to @mdi/svg

* Fix Navigation/Category

* Fix unit testing for Navigation/Category

* Improve content validator and template partials

* Update dependencies and fix CSS naming

* Improve alias validator for router

* Handle all kind of deletions and status changes for parents, siblings and childrens

* Fix wording

* Remove sibling process as this is way to complicated

* Fix homepage being showed everywhere

* Restore sibling handling

* Refactor the queries using whereAnyIs()

* Update dependencies

* E2E testing for search

* Fix coding style in testing suite

* Add support for siblings for all kind of contents

* Add support for siblings for all kind of contents part2

* Add support for siblings

* Fix category/invalid combination via bootstrap

* Fix the invalid or non existing lastTable
  • Loading branch information...
redaxmedia committed May 29, 2019
1 parent 0ea2434 commit da58d4509c229f37180441e63000a493efd381e3
Showing with 1,127 additions and 578 deletions.
  1. +3 −0 .travis.yml
  2. +0 −176 assets/styles/_animate.css
  3. +0 −20 assets/styles/_clearfix.css
  4. +2 −2 composer.json
  5. +15 −6 includes/Admin/Controller/Common.php
  6. +1 −1 includes/Admin/Messenger.php
  7. +93 −8 includes/Admin/Model/Article.php
  8. +44 −8 includes/Admin/Model/Category.php
  9. +125 −1 includes/Admin/Model/Comment.php
  10. +34 −7 includes/Admin/Model/Extra.php
  11. +4 −1 includes/Admin/Model/Group.php
  12. +4 −1 includes/Admin/Model/User.php
  13. +0 −1 includes/Admin/View/Helper/Option.php
  14. +109 −30 includes/Bootstrap/Content.php
  15. +0 −1 includes/Dater.php
  16. +16 −0 includes/Db.php
  17. +0 −22 includes/Head/Title.php
  18. +2 −2 includes/Messenger.php
  19. +6 −10 includes/Model/Article.php
  20. +28 −3 includes/Model/ContentAbstract.php
  21. +6 −6 includes/Request.php
  22. +1 −1 includes/Router/Resolver.php
  23. +1 −5 includes/Router/Router.php
  24. +1 −2 includes/Server/Directory.php
  25. +1 −2 includes/Server/File.php
  26. +1 −2 includes/Server/Host.php
  27. +1 −2 includes/Server/Protocol.php
  28. +1 −2 includes/Server/Token.php
  29. +1 −1 includes/Template/Tag.php
  30. +36 −25 includes/View/Article.php
  31. +31 −22 includes/View/Comment.php
  32. +25 −13 includes/View/Extra.php
  33. +1 −0 languages/ar.json
  34. +1 −0 languages/bg.json
  35. +1 −0 languages/bs.json
  36. +1 −0 languages/ca.json
  37. +1 −0 languages/cs.json
  38. +1 −0 languages/de.json
  39. +1 −0 languages/el.json
  40. +2 −1 languages/en.json
  41. +1 −0 languages/es.json
  42. +1 −0 languages/et.json
  43. +1 −0 languages/fa.json
  44. +1 −0 languages/fr.json
  45. +1 −0 languages/ge.json
  46. +1 −0 languages/he.json
  47. +1 −0 languages/hu.json
  48. +1 −0 languages/id.json
  49. +1 −0 languages/it.json
  50. +1 −0 languages/ja.json
  51. +1 −0 languages/lv.json
  52. +1 −0 languages/ms.json
  53. +1 −0 languages/nl.json
  54. +1 −0 languages/no.json
  55. +1 −0 languages/pl.json
  56. +1 −0 languages/pt.json
  57. +1 −0 languages/ro.json
  58. +1 −0 languages/ru.json
  59. +1 −0 languages/sk.json
  60. +1 −0 languages/sr.json
  61. +1 −0 languages/sv.json
  62. +1 −0 languages/tr.json
  63. +1 −0 languages/vi.json
  64. +1 −0 languages/zh.json
  65. +12 −13 modules/Gallery/Gallery.php
  66. +8 −7 package.json
  67. +24 −0 phpunit.acceptance.xml
  68. +1 −1 tasks/shell.js
  69. +1 −2 templates/admin/assets/styles/_admin.css
  70. +10 −18 templates/admin/assets/styles/helper.css
  71. +4 −4 templates/admin/assets/styles/note.css
  72. +1 −1 templates/console/content.phtml
  73. +1 −1 templates/console/head.phtml
  74. +1 −2 templates/default/assets/styles/_default.css
  75. +10 −18 templates/default/assets/styles/helper.css
  76. +4 −4 templates/default/assets/styles/note.css
  77. +0 −1 templates/install/assets/styles/_install.css
  78. +2 −10 templates/install/assets/styles/helper.css
  79. +0 −1 templates/skeleton/assets/styles/_skeleton.css
  80. +2 −10 templates/skeleton/assets/styles/helper.css
  81. +34 −0 tests/acceptance-provider/ErrorTest_testError.json
  82. +16 −0 tests/acceptance-provider/SearchTest_testSearch.json
  83. +75 −0 tests/acceptance/ConsoleTest.php
  84. +60 −0 tests/acceptance/ContentTest.php
  85. +44 −0 tests/acceptance/ErrorTest.php
  86. +8 −13 tests/acceptance/InstallationTest.php
  87. +2 −2 tests/acceptance/LoginTest.php
  88. +79 −0 tests/acceptance/SearchTest.php
  89. +8 −0 tests/acceptance/TestCaseAbstract.php
  90. +0 −16 tests/provider/Controller/LogoutTest_testProcess.json
  91. 0 tests/{provider → unit-provider}/Admin/Html/FormTest_testCreate.json
  92. 0 tests/{provider → unit-provider}/Admin/Router/RouterTest_testContent.json
  93. 0 tests/{provider → unit-provider}/Admin/Router/RouterTest_testHeader.json
  94. 0 tests/{provider → unit-provider}/Admin/View/ArticleFormTest_testRender.json
  95. 0 tests/{provider → unit-provider}/Admin/View/ArticleTableTest_testRender.json
  96. 0 tests/{provider → unit-provider}/Admin/View/CategoryFormTest_testRender.json
  97. 0 tests/{provider → unit-provider}/Admin/View/CategoryTableTest_testRender.json
  98. 0 tests/{provider → unit-provider}/Admin/View/CommentFormTest_testRender.json
  99. 0 tests/{provider → unit-provider}/Admin/View/CommentTableTest_testRender.json
  100. 0 tests/{provider → unit-provider}/Admin/View/ExtraFormTest_testRender.json
  101. 0 tests/{provider → unit-provider}/Admin/View/ExtraTableTest_testRender.json
  102. 0 tests/{provider → unit-provider}/Admin/View/GroupFormTest_testRender.json
  103. 0 tests/{provider → unit-provider}/Admin/View/GroupTableTest_testRender.json
  104. 0 tests/{provider → unit-provider}/Admin/View/Helper/ControlTest_testRender.json
  105. 0 tests/{provider → unit-provider}/Admin/View/Helper/DockTest_testRender.json
  106. 0 tests/{provider → unit-provider}/Admin/View/Helper/NotificationTest_testRender.json
  107. 0 tests/{provider → unit-provider}/Admin/View/Helper/OptionTest.json
  108. 0 tests/{provider → unit-provider}/Admin/View/Helper/PanelTest_testRender.json
  109. 0 tests/{provider → unit-provider}/Admin/View/ModuleFormTest_testRender.json
  110. 0 tests/{provider → unit-provider}/Admin/View/ModuleTableTest_testRender.json
  111. 0 tests/{provider → unit-provider}/Admin/View/SettingFormTest_testRender.json
  112. 0 tests/{provider → unit-provider}/Admin/View/UserFormTest_testRender.json
  113. 0 tests/{provider → unit-provider}/Admin/View/UserTableTest_testRender.json
  114. 0 tests/{provider → unit-provider}/Asset/LoaderTest_setUp.json
  115. 0 tests/{provider → unit-provider}/Asset/LoaderTest_testConcat.json
  116. 0 tests/{provider → unit-provider}/Asset/LoaderTest_testRewrite.json
  117. 0 tests/{provider → unit-provider}/Asset/TransportTest_testRender.json
  118. 0 tests/{provider → unit-provider}/AuthTest_testGetFilter.json
  119. 0 tests/{provider → unit-provider}/AuthTest_testGetPermission.json
  120. 0 tests/{provider → unit-provider}/AutoloaderTest_testFilePath.json
  121. 0 tests/{provider → unit-provider}/Bootstrap/AuthTest_testAuth.json
  122. 0 tests/{provider → unit-provider}/Bootstrap/CacheTest_testCache.json
  123. 0 tests/{provider → unit-provider}/Bootstrap/CommonTest_testClient.json
  124. 0 tests/{provider → unit-provider}/Bootstrap/CommonTest_testServer.json
  125. 0 tests/{provider → unit-provider}/Bootstrap/ContentTest_testContent.json
  126. 0 tests/{provider → unit-provider}/Bootstrap/CronjobTest_testCronjob.json
  127. 0 tests/{provider → unit-provider}/Bootstrap/DetectorTest_testDetector.json
  128. 0 tests/{provider → unit-provider}/Bootstrap/RouterTest_testRouter.json
  129. 0 tests/{provider → unit-provider}/Bootstrap/SessionTest_testSession.json
  130. 0 tests/{provider → unit-provider}/Bootstrap/StatusTest_testStatus.json
  131. 0 tests/{provider → unit-provider}/Client/ClientTest.json
  132. 0 tests/{provider → unit-provider}/ConfigTest_testParse.json
  133. 0 tests/{provider → unit-provider}/Console/ConsoleTest_setUp.json
  134. 0 tests/{provider → unit-provider}/Console/ParserTest_testGetArgument.json
  135. 0 tests/{provider → unit-provider}/Console/ParserTest_testGetOption.json
  136. 0 tests/{provider → unit-provider}/Content/ParserTest_testCode.json
  137. 0 tests/{provider → unit-provider}/Content/ParserTest_testLanguage.json
  138. 0 tests/{provider → unit-provider}/Content/ParserTest_testModule.json
  139. 0 tests/{provider → unit-provider}/Content/ParserTest_testMore.json
  140. 0 tests/{provider → unit-provider}/Content/ParserTest_testRegistry.json
  141. 0 tests/{provider → unit-provider}/Content/ParserTest_testTemplate.json
  142. +7 −7 tests/{provider → unit-provider}/Controller/CommentTest_testProcess.json
  143. 0 tests/{provider → unit-provider}/Controller/InstallTest_testInstall.json
  144. +8 −8 tests/{provider → unit-provider}/Controller/InstallTest_testProcess.json
  145. 0 tests/{provider → unit-provider}/Controller/InstallTest_testValidateAccount.json
  146. 0 tests/{provider → unit-provider}/Controller/InstallTest_testValidateDatabase.json
  147. +7 −7 tests/{provider → unit-provider}/Controller/LoginTest_testProcess.json
  148. +16 −0 tests/unit-provider/Controller/LogoutTest_testProcess.json
  149. +5 −5 tests/{provider → unit-provider}/Controller/RecoverTest_testProcess.json
  150. +5 −5 tests/{provider → unit-provider}/Controller/RegisterTest_testProcess.json
  151. +4 −4 tests/{provider → unit-provider}/Controller/ResetTest_testProcess.json
  152. +4 −4 tests/{provider → unit-provider}/Controller/SearchTest_testProcess.json
  153. 0 tests/{provider → unit-provider}/DbTest_testInit.json
  154. 0 tests/{provider → unit-provider}/DbTest_testWhereLanguageIs.json
  155. 0 tests/{provider → unit-provider}/Detector/DetectorTest_testLanguage.json
  156. 0 tests/{provider → unit-provider}/Detector/DetectorTest_testTemplate.json
  157. 0 tests/{provider → unit-provider}/Filesystem/CacheTest_testStore.json
  158. 0 tests/{provider → unit-provider}/Filesystem/DirectoryTest_testClear.json
  159. 0 tests/{provider → unit-provider}/Filesystem/DirectoryTest_testCreate.json
  160. 0 tests/{provider → unit-provider}/Filesystem/DirectoryTest_testRemove.json
  161. 0 tests/{provider → unit-provider}/Filesystem/FileTest_testCreate.json
  162. 0 tests/{provider → unit-provider}/Filesystem/FileTest_testReadAndWrite.json
  163. 0 tests/{provider → unit-provider}/Filesystem/FileTest_testRemove.json
  164. 0 tests/{provider → unit-provider}/Filesystem/FilesystemTest_setUp.json
  165. 0 tests/{provider → unit-provider}/Filesystem/FilesystemTest_testGetArray.json
  166. 0 tests/{provider → unit-provider}/Filesystem/FilesystemTest_testGetIterator.json
  167. 0 tests/{provider → unit-provider}/Filesystem/FilesystemTest_testGetSortArray.json
  168. 0 tests/{provider → unit-provider}/Filter/AliasTest_testAlias.json
  169. 0 tests/{provider → unit-provider}/Filter/BooleanTest_testBoolean.json
  170. 0 tests/{provider → unit-provider}/Filter/EmailTest_testEmail.json
  171. 0 tests/{provider → unit-provider}/Filter/HtmlTest_testHtml.json
  172. 0 tests/{provider → unit-provider}/Filter/PathTest_testPath.json
  173. 0 tests/{provider → unit-provider}/Filter/SearchTest_testSearch.json
  174. 0 tests/{provider → unit-provider}/Filter/SpecialTest_testSpecial.json
  175. 0 tests/{provider → unit-provider}/Filter/UrlTest_testUrl.json
  176. 0 tests/{provider → unit-provider}/HashTest.json
  177. 0 tests/{provider → unit-provider}/Head/BaseTest_testRender.json
  178. 0 tests/{provider → unit-provider}/Head/LinkTest_setUp.json
  179. 0 tests/{provider → unit-provider}/Head/LinkTest_testAppend.json
  180. 0 tests/{provider → unit-provider}/Head/LinkTest_testConcat.json
  181. 0 tests/{provider → unit-provider}/Head/LinkTest_testPrepend.json
  182. 0 tests/{provider → unit-provider}/Head/LinkTest_testRemove.json
  183. 0 tests/{provider → unit-provider}/Head/MetaTest_testAppend.json
  184. 0 tests/{provider → unit-provider}/Head/MetaTest_testPrepend.json
  185. 0 tests/{provider → unit-provider}/Head/ScriptTest_setUp.json
  186. 0 tests/{provider → unit-provider}/Head/ScriptTest_testAppend.json
  187. 0 tests/{provider → unit-provider}/Head/ScriptTest_testConcat.json
  188. 0 tests/{provider → unit-provider}/Head/ScriptTest_testInline.json
  189. 0 tests/{provider → unit-provider}/Head/ScriptTest_testPrepend.json
  190. 0 tests/{provider → unit-provider}/Head/ScriptTest_testRemove.json
  191. 0 tests/{provider → unit-provider}/Head/ScriptTest_testTransportVar.json
  192. 0 tests/{provider → unit-provider}/Head/StyleTest_testInline.json
  193. 0 tests/{provider → unit-provider}/Head/TitleTest_testRender.json
  194. 0 tests/{provider → unit-provider}/Html/ElementTest_testAttr.json
  195. 0 tests/{provider → unit-provider}/Html/ElementTest_testClass.json
  196. 0 tests/{provider → unit-provider}/Html/ElementTest_testCreate.json
  197. 0 tests/{provider → unit-provider}/Html/ElementTest_testText.json
  198. 0 tests/{provider → unit-provider}/Html/ElementTest_testVal.json
  199. 0 tests/{provider → unit-provider}/Html/FormTest_testButton.json
  200. 0 tests/{provider → unit-provider}/Html/FormTest_testCaptcha.json
  201. 0 tests/{provider → unit-provider}/Html/FormTest_testCreate.json
  202. 0 tests/{provider → unit-provider}/Html/FormTest_testInput.json
  203. 0 tests/{provider → unit-provider}/Html/FormTest_testLabel.json
  204. 0 tests/{provider → unit-provider}/Html/FormTest_testLegend.json
  205. 0 tests/{provider → unit-provider}/Html/FormTest_testLink.json
  206. 0 tests/{provider → unit-provider}/Html/FormTest_testSelect.json
  207. 0 tests/{provider → unit-provider}/Html/FormTest_testSelectRange.json
  208. 0 tests/{provider → unit-provider}/Html/FormTest_testTextarea.json
  209. 0 tests/{provider → unit-provider}/Html/FormTest_testToken.json
  210. 0 tests/{provider → unit-provider}/Html/HtmlTest_testAppend.json
  211. 0 tests/{provider → unit-provider}/Html/HtmlTest_testHtml.json
  212. 0 tests/{provider → unit-provider}/Html/HtmlTest_testPrepend.json
  213. 0 tests/{provider → unit-provider}/Html/PurifierTest_testPurify.json
  214. 0 tests/{provider → unit-provider}/MailerTest.json
  215. +3 −3 tests/{provider → unit-provider}/MessengerTest_testError.json
  216. +3 −3 tests/{provider → unit-provider}/MessengerTest_testInfo.json
  217. +4 −4 tests/{provider → unit-provider}/MessengerTest_testRender.json
  218. +3 −3 tests/{provider → unit-provider}/MessengerTest_testSuccess.json
  219. +3 −3 tests/{provider → unit-provider}/MessengerTest_testWarning.json
  220. 0 tests/{provider → unit-provider}/Model/ArticleTest_testGetByAlias.json
  221. 0 tests/{provider → unit-provider}/Model/ArticleTest_testGetRouteById.json
  222. 0 tests/{provider → unit-provider}/Model/CategoryTest_testGetByAlias.json
  223. 0 tests/{provider → unit-provider}/Model/CategoryTest_testGetRouteById.json
  224. 0 tests/{provider → unit-provider}/Model/CommentTest_testGetRouteById.json
  225. 0 tests/{provider → unit-provider}/Model/ExtraTest_testGetByAlias.json
  226. 0 tests/{provider → unit-provider}/Model/GroupTest_testGetByAlias.json
  227. 0 tests/{provider → unit-provider}/Module/HookTest_testCollect.json
  228. 0 tests/{provider → unit-provider}/Navigation/ArticleTest_testRender.json
  229. 0 tests/{provider → unit-provider}/Navigation/CategoryTest_testRender.json
  230. 0 tests/{provider → unit-provider}/Navigation/CommentTest_testRender.json
  231. 0 tests/{provider → unit-provider}/Navigation/LanguageTest_testRender.json
  232. 0 tests/{provider → unit-provider}/Navigation/TemplateTest_testRender.json
  233. 0 tests/{provider → unit-provider}/ReaderTest.json
  234. 0 tests/{provider → unit-provider}/ReaderTest.xml
  235. 0 tests/{provider → unit-provider}/Router/ParameterTest.json
  236. 0 tests/{provider → unit-provider}/Router/ResolverTest.json
  237. 0 tests/{provider → unit-provider}/Router/RouterTest_testContent.json
  238. 0 tests/{provider → unit-provider}/Router/RouterTest_testHeader.json
  239. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetCanonical.json
  240. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetClass.json
  241. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetDescription.json
  242. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetDirection.json
  243. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetKeywords.json
  244. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetRobots.json
  245. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetSubset.json
  246. 0 tests/{provider → unit-provider}/Template/HelperTest_testGetTitle.json
  247. 0 tests/{provider → unit-provider}/Validator/AccessTest_testAccess.json
  248. 0 tests/{provider → unit-provider}/Validator/AliasTest_testAlias.json
  249. 0 tests/{provider → unit-provider}/Validator/CaptchaTest_testCaptcha.json
  250. 0 tests/{provider → unit-provider}/Validator/DnsTest_testDns.json
  251. 0 tests/{provider → unit-provider}/Validator/EmailTest_testEmail.json
  252. 0 tests/{provider → unit-provider}/Validator/LoginTest_testLogin.json
  253. 0 tests/{provider → unit-provider}/Validator/PasswordTest_testPassword.json
  254. 0 tests/{provider → unit-provider}/Validator/UrlTest_testUrl.json
  255. 0 tests/{provider → unit-provider}/View/CommentFormTest_testRender.json
  256. 0 tests/{provider → unit-provider}/View/ConsoleFormTest_testRender.json
  257. 0 tests/{provider → unit-provider}/View/Helper/BreadcrumbTest_testGetArray.json
  258. 0 tests/{provider → unit-provider}/View/Helper/BreadcrumbTest_testRender.json
  259. 0 tests/{provider → unit-provider}/View/Helper/BylineTest_testRender.json
  260. 0 tests/{provider → unit-provider}/View/Helper/PaginationTest_testRender.json
  261. 0 tests/{provider → unit-provider}/View/InstallFormTest_testRender.json
  262. 0 tests/{provider → unit-provider}/View/LoginFormTest_testRender.json
  263. 0 tests/{provider → unit-provider}/View/RecoverFormTest_testRender.json
  264. 0 tests/{provider → unit-provider}/View/RegisterFormTest_testRender.json
  265. 0 tests/{provider → unit-provider}/View/ResetFormTest_testRender.json
  266. 0 tests/{provider → unit-provider}/View/ResultListTest_testRender.json
  267. 0 tests/{provider → unit-provider}/View/SearchFormTest_testRender.json
  268. +2 −2 tests/{provider → unit-provider}/View/SystemStatusTest_testRender.json
  269. 0 tests/{provider → unit-provider}/View/SystemStatusTest_testValidateError.json
  270. 0 tests/{provider → unit-provider}/View/SystemStatusTest_testValidateWarning.json
  271. +2 −2 tests/unit/Admin/View/Helper/OptionTest.php
  272. +1 −1 tests/unit/Asset/LoaderTest.php
  273. +1 −0 tests/unit/Bootstrap/ContentTest.php
  274. +1 −1 tests/unit/Console/Command/BackupTest.php
  275. +1 −1 tests/unit/Console/Command/RestoreTest.php
  276. +1 −1 tests/unit/Filesystem/DirectoryTest.php
  277. +1 −1 tests/unit/Filesystem/FileTest.php
  278. +1 −1 tests/unit/Filesystem/FilesystemTest.php
  279. +1 −1 tests/unit/Head/LinkTest.php
  280. +1 −1 tests/unit/Head/ScriptTest.php
  281. +2 −2 tests/unit/ReaderTest.php
  282. +8 −0 tests/unit/TestCaseAbstract.php
@@ -71,6 +71,9 @@ jobs:
apt:
packages:
- libonig-dev
install:
- composer install --ignore-platform-reqs
- gem install mailcatcher

- &test-acceptance
addons:

This file was deleted.

This file was deleted.

@@ -1,7 +1,7 @@
{
"name": "redaxscript/redaxscript",
"description": "A modern, ultra lightweight and rocket fast Content Management System",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"homepage": "https://redaxscript.com",
"license": "MIT",
"require":
@@ -20,7 +20,7 @@
"phpmd/phpmd": "2.6.0",
"phpstan/phpstan": "0.11.5",
"phpunit/phpunit": "8.1.3",
"redaxmedia/php-coding-standard": "1.3.0",
"redaxmedia/php-coding-standard": "1.4.0",
"redaxmedia/phpunit-provider-autoloader": "3.0.1",
"sebastian/phpcpd": "4.1.0",
"slowprog/composer-copy-file": "0.3.1",
@@ -154,12 +154,15 @@ protected function _publish(string $table = null, int $id = null) : bool
if ($table === 'categories')
{
$categoryModel = new Admin\Model\Category();
return $categoryModel->publishById($id);
$articleModel = new Admin\Model\Article();
$commentModel = new Admin\Model\Comment();
return $categoryModel->publishById($id) && $articleModel->publishByCategory($id) && $commentModel->publishByCategory($id);
}
if ($table === 'articles')
{
$articleModel = new Admin\Model\Article();
return $articleModel->publishById($id);
$commentModel = new Admin\Model\Comment();
return $articleModel->publishById($id) && $commentModel->publishByArticle($id);
}
if ($table === 'extras')
{
@@ -190,12 +193,15 @@ protected function _unpublish(string $table = null, int $id = null) : bool
if ($table === 'categories')
{
$categoryModel = new Admin\Model\Category();
return $categoryModel->unpublishById($id);
$articleModel = new Admin\Model\Article();
$commentModel = new Admin\Model\Comment();
return $categoryModel->unpublishById($id) && $articleModel->unpublishByCategory($id) && $commentModel->unpublishByCategory($id);
}
if ($table === 'articles')
{
$articleModel = new Admin\Model\Article();
return $articleModel->unpublishById($id);
$commentModel = new Admin\Model\Comment();
return $articleModel->unpublishById($id) && $commentModel->unpublishByArticle($id);
}
if ($table === 'extras')
{
@@ -338,12 +344,15 @@ protected function _delete(string $table = null, int $id = null) : bool
if ($table === 'categories')
{
$categoryModel = new Admin\Model\Category();
return $categoryModel->deleteById($id);
$articleModel = new Admin\Model\Article();
$commentModel = new Admin\Model\Comment();
return $commentModel->deleteByCategory($id) && $articleModel->deleteByCategory($id) && $categoryModel->deleteById($id);
}
if ($table === 'articles')
{
$articleModel = new Admin\Model\Article();
return $articleModel->deleteById($id);
$commentModel = new Admin\Model\Comment();
return $commentModel->deleteByArticle($id) && $articleModel->deleteById($id);
}
if ($table === 'extras')
{
@@ -26,7 +26,7 @@ class Messenger extends BaseMessenger
[
'className' =>
[
'box' => 'rs-admin-box-note rs-admin-fn-clearfix',
'box' => 'rs-admin-box-note',
'title' => 'rs-admin-title-note',
'list' => 'rs-admin-list-note',
'link' => 'rs-admin-button-note',

0 comments on commit da58d45

Please sign in to comment.
You can’t perform that action at this time.