1
1
Fork 0
Commit graph

91 commits

Author SHA1 Message Date
5fbdcd4a26
Fix PHPUnit 10 deprecations 2023-07-05 23:15:23 +02:00
a198108222 Fix tests 2023-05-17 09:01:52 +00:00
aef8e90f8e Tests fixed 2023-03-22 03:49:40 +00:00
7e6ba0b4d2 Tests added 2023-03-21 04:20:03 +00:00
55912d1c75 Test added 2023-03-20 07:03:17 +00:00
3a73df7007 Fix tests 2023-03-20 04:25:05 +00:00
1ce438e964 Rework new lines around list BBCode
- Remove blanket new lines remover in HTML::toBBCode
- Add test to ensure the commutativity of the markups
2023-03-18 23:35:51 -04:00
200bdb55ba Normalize [ul] and [ol] BBCode output to <ul> and <ol> HTML tags 2023-03-18 23:35:51 -04:00
c3cecf3d28 Provide corresponding default value for $try_oembed in BBCodeTest->testConvert
- Add documentation about system.remove_multiplicated_lines expected value
2023-03-18 23:35:51 -04:00
67c0c279aa Remove extra whitespace in Content\Text\HTMLTest 2023-03-18 23:35:51 -04:00
92a04baf62 Tests should now work 2023-03-17 18:08:37 +00:00
e55f38cc98 Fix test 2023-03-17 18:01:51 +00:00
d058275723 Some tests added / ensure to have paragraphs 2023-03-17 17:40:22 +00:00
84ec9b0814 Restore tests 2023-03-17 12:43:23 +00:00
d4aec5cbd3 Revert tests 2023-03-17 12:41:26 +00:00
1a15951cae Tests 2023-03-17 07:04:53 +00:00
eee65b31fd Fix tests 2023-03-17 06:55:38 +00:00
9e6d95284b
Adapt tests to use new BaseURL UriInterface 2023-02-18 21:12:21 +01:00
e1813e3d73
Restructure tests
- Avoid database leftovers
2023-02-13 20:52:24 +01:00
5e2b655b43 Add implementation of HTTP Media Type
- Add charset extraction from DOMDocument
- TESTS!
2023-01-10 10:36:58 -05:00
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
91c4ab2359 Add new xpathQuote and checkRelMeLink methods to Content\Text\HTML class
- Add tests for both methods
2022-12-23 02:41:22 -05:00
ee03e4de08 Fix test 2022-10-07 08:13:26 +00:00
a07fd7d7c2 Spaces to tabs 2022-10-07 08:07:12 +00:00
8e9acfe210 Fix tests? 2022-10-07 05:22:10 +00:00
3e1b6890b7 Fix removing falsy text nodes in HTML::tagToBBCodeSub
- This wrongly removed text nodes containing just '0'
2022-09-24 22:03:49 -04:00
7c1ae71527 Add tests for BBCode::fetchShareAttributes 2022-06-25 11:46:53 -04:00
25876099ce Add tests for BBCode::getAbstract and BBCode::stripAbstract methods 2022-05-07 22:19:50 -04:00
c3be053742
Add license header to various tests 2022-01-07 00:35:28 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
4cc36c9b2c
Fix BBCode::expandTags() & Remove AppMockTrait 2021-11-28 13:07:38 +01:00
fe5d1444a5 Add test for new BBCode tag 2021-10-18 02:45:47 -04:00
5feb80397f Added test for code blocks containing HTML entities in HTMLTest::toBBCode 2021-10-15 11:37:21 -04:00
0b333ef6bc Fixed test error 2021-09-28 04:27:24 +00:00
dd6e321c97 Added test 2021-09-28 03:36:48 +00:00
8e99b7f775 Refine BBCode::expandTags regular expression
- Now requires the tag to be preceded by either a non-word character or a start of a line
- Added corresponding tests
2021-09-12 00:06:14 -04:00
2b41b322bc Tests 2021-07-25 20:45:09 +00:00
5a87ccf026 Getter/Setter for theme info 2021-07-25 19:39:10 +00:00
c52b8595e8 theme infos are now bundled in a single array 2021-07-25 19:07:03 +00:00
a06d699480 Item cache related functionality removed 2021-07-05 04:57:50 +00:00
93c8fdcbd4
Make tests PHPUnit 6.0 compatible 2021-05-16 23:39:03 +02:00
02e6dff6a0
Fix tests
- Fix InstallerTest case
- Fix native function mocking
- Add returntype for Unit-Tests
- Fixing ExtendedPDO test troubles
- Fix wrong class inheritance path for DatabaseTestTrait.php
- Fix SyslogLogger Server Exception for PHP8
- Add user/contact to database.fixture.php
- Avoid invalid rollbacks for test setup in PHP8
2021-04-04 20:11:57 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
dc98c4dee5 Add expected mocked calls to BBCodeTest 2021-03-14 14:34:52 -04:00
28d850b95d Add BBCode test for issue #9639 2020-12-18 11:11:48 -05:00
a0f6d678c4 Add HTML Purify to BBCode::convert
- Replace previous HTML cleanup using DOMDocument
- Remove obsolete HTML::sanitizeCSS method
- Use Strings::autoLinkRegEx for PageInfo::getRelevantUrlFromBody
- Update previous tests expectations
- Add new specific XSS tests
2020-12-04 07:29:48 -05:00
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory 2020-10-18 20:52:27 +02:00
efaec26b1d
Fix wrong $this->assert...() with `self::assert...() 2020-10-18 20:52:27 +02:00
e4263f6fe5
Fix PSR-0 for test classes 2020-09-11 19:38:41 +02:00
8de66c0274 Add shortened URL link label stripping to PageInfo::stripTrailingUrlFromBody
- Add test cases for shortened URL link labels
2020-07-17 17:16:22 -04:00