aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test/tests
Commit message (Collapse)AuthorAge
* Merge pull request #4423 from dokuwiki/treebuilderAndreas Gohr2025-04-10
|\ | | | | Add experimental tree builder classes
| * Add experimental tree builder classesAndreas Gohr2025-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These classes provide mechanisms to build a traversable tree of pages and links. Either from the existing namespace structure, or from a control page containing (possibly a nested) set of links. The nodes returned by the tree are deliberately sparse. No ACL checking is taking place. Developers can enrich (or omit) nodes and influence recursion decisions via callbacks. The tree can optionally be sorted by comparators provided in the TreeSort class or a custom callback. The API provided by these classes is not considered stable yet and may change over time. Plugin authors are encouraged to use them and provide feedback.
* | Added API endpoint core.getMediaHistory #4147kuangfio2025-03-15
|/ | | | squashed commits of #4369
* Merge pull request #4389 from dokuwiki/buildqueryAndreas Gohr2025-01-13
|\ | | | | use http_build_query() in buildURLparams()
| * adjusted tests for new buildURLparams()Andreas Gohr2025-01-09
| | | | | | | | null values are no longer added as empty parameters.
* | Fix Ip testsAndreas Gohr2025-01-09
| | | | | | | | We no longer use the old regexp based config, so the tests failed.
* | use renamed trustedproxies setting in testsAndreas Gohr2025-01-09
| |
* | Merge branch 'pr/3815' into clientIPAndreas Gohr2025-01-09
|\ \ | | | | | | | | | | | | | | | | | | * pr/3815: Move IP functions into a class Factor out IP address functions; all proxies must be trusted Fix clientIP() returning the wrong address
| * | Move IP functions into a classZebra North2022-10-26
| | |
| * | Merge branch 'master' into fix-clientipZebra North2022-10-22
| |\ \
| * | | Factor out IP address functions; all proxies must be trustedZebra North2022-10-22
| | | |
| * | | Fix clientIP() returning the wrong addressZebra North2022-09-01
| | | |
* | | | allow to set unusable passwordTobias Bengfort2025-01-07
| |_|/ |/| | | | | | | | | | | This could be used by plugins such as dokuwiki-plugin-oauth to create accounts that can only by accessed via SSO.
* | | use new expectLogMessage to check condition tested in test_savesequence4()Andreas Gohr2024-11-27
| | |
* | | io_replaceInFile: replace warning with logging callAndreas Gohr2024-11-25
| | |
* | | replace deprecated phpunit assertionsAndreas Gohr2024-11-25
| | |
* | | Fix MD5 hash calculation testsEduardo Mozart de Oliveira2024-11-12
| | |
* | | Merge pull request #4306 from dokuwiki/x-tokenAndreas Gohr2024-10-30
|\ \ \ | | | | | | | | alternative token header support
| * | | alternative token header supportAndreas Gohr2024-08-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Authorization header is not always passed on to PHP, depending on the setup (See https://stackoverflow.com/q/34472303 for examples and workarounds). This patch adds support for an alternative X-DokuWiki-Token header that can be used when using token authentication and the standard Authorization header can not be used.
* | | | Support Woltlab password hashesAndreas Gohr2024-06-25
|/ / / | | | | | | | | | | | | The Woltlab forum software uses bcrypt passwords, but prefixes them with "Bcrypt:". This adds support for this in our PassHash class.
* | | Support b and x variants for bcrypt hashesAndreas Gohr2024-03-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Prompted by https://forum.dokuwiki.org/d/22108-authpdo-with-postgres-and-lemmy/3 As stated on https://stackoverflow.com/a/36225192 > there is no difference between 2, 2a, 2x, 2y, and 2b. If you wrote your > implementation correctly, they all output the same result.
* | | Tests: The at() matcher has been deprecatedFailedCode2024-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #3811 Replaces at() with withConsecutive() in these tests: - TestOfLexer::testSinglePattern - TestOfLexer::testMultiplePattern - TestOfLexerModes::testIsolatedPattern - TestOfLexerModes::testModeChange - TestOfLexerModes::testNesting - TestOfLexerModes::testSingular - TestOfLexerModes::testUnwindTooFar - TestOfLexerHandlers::testModeMapping - TestOfLexerByteIndices::testIndex - TestOfLexerByteIndices::testIndexLookaheadEqual - TestOfLexerByteIndices::testIndexLookaheadNotEqual - TestOfLexerByteIndices::testIndexLookbehindEqual - TestOfLexerByteIndices::testIndexLookbehindNotEqual
* | | fix is_ssl() checkAndreas Gohr2024-01-26
| | | | | | | | | | | | | | | | | | | | | There was a global statement missing? This seems to have to been broken in one of the recent merges. Tests have been cleaned up but not changes in logic.
* | | Merge pull request #4156 from dokuwiki/feedrefactorAndreas Gohr2024-01-26
|\ \ \ | | | | | | | | Feed creation refactoring
| * | | fix FeedPageProcessorTest on GithubAndreas Gohr2024-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that the dataProvider generator runs before the rest of the test suite, resulting in a wrong modification timestamp being read. It's unclear why this happens on Github only.
| * | | check feed validity at w3c validatorAndreas Gohr2024-01-26
| | | |
| * | | Feed creation refactoringAndreas Gohr2024-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This breaks up the humongous functions from feed.php into multiple classes. To keep compatibility with existing Plugin events, the basic principle of how the feed is assembled has not been changed: * depending on the given mode and other options lose arrays of items are gathered * these items are then converted (again based on the various options) into proper FeedItems * the FeedItems are then added to the Feed The conversion from loosely typed item data to something more structured is now done by the FeedItemProcessor classes. Some very basic tests have been added. It does not cover erverything but covers more than before (which was nothing). Manual testing before merging this is highly recommended. I am not confident that I ported over everything correctly. No new features have been added, but especially media support could and should be improved in the future.
* | | | Merge pull request #4104 from m-martin-78/xfhsupportAndreas Gohr2024-01-26
|\ \ \ \ | |/ / / |/| | | Add support for X-Forwarded-Host proxy header
| * | | Update init_checkssl.test.phpm-martin-782023-11-30
| | | |
| * | | update tests to match new is_ssl behaviourm-martin-782023-11-28
| | | |
* | | | fall back to empty (root) dir for base dir detectionemptydirdefaultAndreas Gohr2024-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a basedir could not be detected, the default previously was '.' resulting in a valid but weird URL (http://example.com/./doku.php). We now default to an empty dir, resulting in a more sensible URL of http://example.com/doku.php This should not matter in real web server setups but will be in effect while testing.
* | | | Merge pull request #4134 from dokuwiki/betterapiAndreas Gohr2024-01-12
|\ \ \ \ | | | | | | | | | | Complete API Refactoring
| * | | | API added simple JSONRPC testsAndreas Gohr2024-01-07
| | | | |
| * | | | fix XMLRPC server testsAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We test against the MockAPICore now since the tests are meant to ensure the general functionality of accepting XML and correctly calling APICalls works, not that the API returns the right things (this is tested in the ApiCore tests). Since we no longer use dates but always integers, we no longer need to handle that.
| * | | | Fix Api TestsAndreas Gohr2024-01-07
| | | | |
| * | | | fix ApiCoreAclCheckTestAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | This is mostly syntactic fix. I did not check how sensible these tests are and did not switch from positional to named arguments
| * | | | API: move user related tests to usermanager pluginAndreas Gohr2024-01-07
| | | | |
| * | | | API: ApiCore tests fixed and extendedAndreas Gohr2024-01-07
| | | | |
| * | | | Another argument parsing fix for ApiCallAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using named parameters, you can expect to be able to leave out any optional parameter and have it take it's default, even when you specify another "later" parameter. Luckily we already know all the defaults from reflection anyway.
| * | | | Clean up APICall testsAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | No need to retest all the docblock parsing when that is tested elsewhere already.
| * | | | API: fix named parameter handling in APICallAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | We cannot set missing paramerers to null. We need to make sure they are not set at all.
| * | | | OpenAPI Generator. Better DocBlock parsing [WIP]Andreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces a new DocBlock parser to properly generate API specifications. It also introduces the concept of Response classes to better specify the response format. This is still very much in progress.
| * | | | fix ApiCall testAndreas Gohr2024-01-07
| | | | |
| * | | | fix type parsing for more complex typesAndreas Gohr2024-01-07
| | | | |
| * | | | fix ApiCall test on PHP7.4Andreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Gohr2024-01-07
| | | | |
| * | | | More adjusted API testsAndreas Gohr2024-01-07
| | | | |
| * | | | another set of api testsAndreas Gohr2024-01-07
| | | | |
| * | | | Fix first set of API testsAndreas Gohr2024-01-07
| | | | |
| * | | | First go at refactoring the API mechanismsAndreas Gohr2024-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.