aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test
Commit message (Collapse)AuthorAge
* fix ApiCall testAndreas Gohr2023-12-01
|
* fix type parsing for more complex typesAndreas Gohr2023-12-01
|
* fix ApiCall test on PHP7.4Andreas Gohr2023-12-01
| | | | | | Since PHP7.4 has no primitive type hints and PHP native methods have no accessible docblocks, we can not use a native function for testing (types always come back as string).
* final set of API tests refactoredAndreas Gohr2023-12-01
|
* More adjusted API testsAndreas Gohr2023-12-01
|
* another set of api testsAndreas Gohr2023-12-01
|
* Fix first set of API testsAndreas Gohr2023-12-01
|
* First go at refactoring the API mechanismsAndreas Gohr2023-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces an ApiCall class that wraps around the actual method that produces the result. This replaces various loose array structures that provided the meta information before. The ApiCall streamlines the aggregation of meta information between core and plugin methods. Now all data is produced by Reflection based introspection. Certain aspects can be overridden if needed. See ApiCore::getRemoteInfo() for examples This change removes the _getMethods() method from remote plugins and introduces a getMethods() method. The two are NOT compatible as the latter now returns a list of ApiCalls. However when looking at the existing plugins, it seems that _getMethods() was nearly 100% obsolete with the Reflection based default implementation. So most plugins will not be affected at all. Some might now export one or two more methods than before because of poor visibility settings (eg. not declaring private/protected methods as such). This change removes the RPC_CALL_ADD hook. Only a single plugin ever implemented it. I'm not sure what this hook was supposed to do anyway. Being able to declare arbitrarily named API endpoints seems wrong to me anyway. The new ApiCall now also supports passing named instead of positional parameters. This will open up a new opportunity to get a proper openapi spec running. Next step is fixing the tests.
* Merge pull request #2432 from dokuwiki/tokenauthAndreas Gohr2023-11-28
|\ | | | | Implement Token Authentication
| * added tests for auth token handlingAndreas Gohr2023-10-12
| |
* | updated devel dependenciesAndreas Gohr2023-11-13
| |
* | Merge pull request #4065 from dokuwiki/composerdevAndreas Gohr2023-11-13
|\ \ | | | | | | implement composer dev dependencies as suggested in #4058
| * | updated the _test/READMEAndreas Gohr2023-09-18
| | |
| * | remove obsolete fetchphpunit scriptAndreas Gohr2023-09-18
| | | | | | | | | | | | It's now installed via composer
| * | add devel tools as composer scriptsAndreas Gohr2023-09-18
| | |
| * | add development tools to _test/composer.jsonAndreas Gohr2023-09-18
| | |
| * | remove checked-in _test/vendor folderAndreas Gohr2023-09-18
| | |
* | | skip CompleteMissingIfElseBracketRectorAndreas Gohr2023-11-02
| |/ |/| | | | | | | | | | | | | We like our one-line guardians. See discussion in https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1788608355 https://github.com/dokuwiki/dokuwiki/pull/4097#issuecomment-1789826392
* | Merge pull request #4074 from dokuwiki/issue4072Andreas Gohr2023-10-12
|\ \ | | | | | | strip any trailing dots when resolving IDs
| * | removed obsolete testsAndreas Gohr2023-09-30
| | | | | | | | | | | | These tests have been moved to the File namespace.
| * | strip any trailing dots when resolving IDsAndreas Gohr2023-09-30
| |/ | | | | | | fixes #4072
* | Fix unit test, little refactorGerrit Uitslag2023-09-25
| |
* | deprecate parseChangelogLine()Gerrit Uitslag2023-09-25
|/ | | | It was already replace in code, replaced in unit test as well.
* do not run phpcs and phpcbf on any vendor dirsAndreas Gohr2023-09-13
| | | | This is mostly relevant to plugin workflows.
* rector env var might be empty -> ignoreAndreas Gohr2023-09-04
|
* allow overriding the minimum PHP release for rectorAndreas Gohr2023-09-03
| | | | | | By setting the environment variable RECTOR_MIN_PHP the supported minimum PHP release can be set. This is needed to make plugin changes compatible with DokuWiki stable.
* apply code sniffer rules to inc/parser as wellAndreas Gohr2023-09-02
|
* code style: multi statementsAndreas Gohr2023-08-31
|
* code style: line breaksAndreas Gohr2023-08-31
|
* code style: static visibilityAndreas Gohr2023-08-31
|
* code style: operator spacingAndreas Gohr2023-08-31
|
* code style: inc/dec spacingAndreas Gohr2023-08-31
|
* code style: control structure fixesAndreas Gohr2023-08-31
|
* added rectors for new polyfillsAndreas Gohr2023-08-31
| | | | | We can use the PHP8 rector classes for the polyfills introduced in a4c648fffdf5bc5db83c9aa9c6c4bf5fb5edc85f
* code style: indent fixesAndreas Gohr2023-08-31
|
* Rector to rename print to echo callsAndreas Gohr2023-08-31
|
* deprecate ptln()Andreas Gohr2023-08-31
| | | | | | | | | | This method was used to ensure some basic readability in the created HTML sources long before Firebug and later the builtin inspector tools in browsers pretty printed the HTML for you. Today, this is no longer needed. This adds a custom rector rule to automatically change all occurances to echo statements.
* coding style: control flow line breaksAndreas Gohr2023-08-31
|
* coding style: control flow whitespacesAndreas Gohr2023-08-31
|
* coding style: function call spacingAndreas Gohr2023-08-30
|
* coding style: loop declaration spacingAndreas Gohr2023-08-30
|
* coding style: PSR12.Classes.ClassInstantiation.MissingParenthesesAndreas Gohr2023-08-30
|
* codestyle adjustments: PHP constant casingAndreas Gohr2023-08-30
|
* codestyle adjustments: EOF new linesAndreas Gohr2023-08-30
|
* codestyle adjustments: function declaration braces/spacesAndreas Gohr2023-08-30
|
* codestyle adjustments: class declaration bracesAndreas Gohr2023-08-30
|
* codestyle adjustments: function argument spacingAndreas Gohr2023-08-30
|
* define custom renamesAndreas Gohr2023-08-30
| | | | | | Automatically rename occurances of deprecated functions and classes. These renames will come in even more handy when rector is applied to 3rd party plugins.
* Apply rector fixes to bin and toplevelAndreas Gohr2023-08-30
|
* apply PSR-12 constant visibility ruleAndreas Gohr2023-08-30
| | | | | PSR-12 says constants need their visibility declared from PHP 7.1 onwards