| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| |
| |
| | |
Begin refactoring Module\Item
See merge request hubzilla/core!2166
|
| |
| |
| |
| |
| | |
These seem to be entirely independent, so moving the body of the if
statements to separate functions should be fine.
|
|/
|
|
|
| |
This one snuck in by mistake. No harm done, as the actual class was
never referenced, but it should still not be there.
|
|\
| |
| |
| |
| | |
Clean up deps and upgrade EpubMeta
See merge request hubzilla/core!2162
|
| |
| |
| |
| | |
Also fixes a few issues and refactor the code a bit.
|
|/ |
|
|\
| |
| |
| |
| | |
tests: Update test db setup script for mariadb
See merge request hubzilla/core!2160
|
| |
| |
| |
| |
| |
| | |
Mariadb now issues warnings when using the deprecated `mysql` binary. So
we make sure to use the proper name for the binary depending on the
actual DB engine installed.
|
|\ \
| | |
| | |
| | |
| | | |
Fix deprecations uncovered by running tests on PHP 8.2
See merge request hubzilla/core!2156
|
| | |
| | |
| | |
| | | |
Uncovered by PHP 8.2 because dynamic properties are deprecated.
|
| | |
| | |
| | |
| | | |
Uncovered by PHP 8.2 because dynamic properties are deprecated.
|
|/ / |
|
|/
|
|
| |
Somehow I forgot to include this in the patch that fixed the issue.
|
|\
| |
| |
| |
| | |
Fix naked URLs immediately followed by a newline
See merge request hubzilla/core!2150
|
| |
| |
| |
| |
| |
| |
| | |
This makes the configuration used align better with how it is being used
in the mdpost addon. This also reveals some issues that are less than
ideal for Markdown posts. The relevant test cases have been adjusted to
pass with the new config, but have been commented.
|
|/
|
|
|
|
|
| |
Only tests the delegate functionality at the moment.
This patch also includes some minor fixes to the Magic module, triggered
by the tests with empty destination URL's.
|
|\
| |
| |
| |
| | |
tests: Add a basic test for ActivityStreams
See merge request hubzilla/core!2146
|
| |
| |
| |
| |
| | |
This is just a basic test that parses a specific object, and tests that
all the referenced objects are fetched from the originating servers.
|
|\ \
| |/
|/|
| |
| | |
markdown: Don't link URLs in code blocks.
See merge request hubzilla/core!2145
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When passing a content throught the `markdown_to_bb` function
to convert any markdown in the content, any recognized URLs in the
content would be converted to BBCode links as a post processing step
after the main conversion.
After commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f this did no longer
consider content within code blocks, and would thus convert them as
to BBCode links.
Example: The following content
[code]
example url: https://example.com
[/code]
Would be converted to
[code]
example url: [url=https://example.com]https://example.com[/url]
[/code]
Prior to commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f, code blocks
would be protected, so this would not happen.
This patch removes the post processing step for converting plain URLs to
links completely from this routine. This functionality is in any case
covered in the actual BBCode parser where it belongs.
This will have some other side effects as well, such as images and links
created using Markdown, will not be converted to [zmg] or [zrl] tags
where that would be done automatically before. If you intend to use a
[zrl] or [zmg] tag, you now need to do so explicitly.
|
|/ |
|
|
|
|
|
|
|
| |
Introduces a bootstrap file that ensures that the base test case classes
are loaded and available instead.
This reduces the number of warnings when running composer install.
|
| |
|
|
|
|
|
| |
Display the target language instead of "your preferred language". Makes
it a bit more explicit.
|
| |
|
| |
|
|
|
|
| |
Move default stubs to a function to make them reusable.
|
| |
|
|\
| |
| |
| |
| | |
Add module test helper expectRedirectTo + api docs
See merge request hubzilla/core!2138
|
| | |
|
| |
| |
| |
| |
| | |
Just a shorthand for manually stubbing `goaway` and setting the
expectations on the test case.
|
| |
| |
| |
| |
| | |
Not an exhaustive test for now, but does at least excercise some of the
code.
|
| | |
|
|/
|
|
| |
These stubs are no longer needed, as the tests have a db now.
|
|
|
|
| |
Mainly missing variables for templates, and channel entries.
|
|
|
|
| |
Also refactor the tests a bit to avoid duplicatng code.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just a basic test to ensure that the module `get()` method behaves
somewhat reasonable when no query params are given.
Had to make a small change to the Rpost module itself. Since the
`$_SESSION` superglobal may not always be set (and is not in the test),
use `isset` instead of `array_key_exists` to check if we have saved
query params in the session.
In general, isset is safer than array_key_exists if there's a chance
that the array itself may not exist.
|
| |
|
| |
|
| |
|
|
|
|
| |
add test.
|
| |
|
| |
|
|
|
|
| |
for li without closing tag
|