mediawiki-extensions-Cite/tests/phpunit
Thiemo Kreuz ea6cea93ed Move bad dir="…" error reporting down to the renderer
… and make the error message for bad dir="…" shorter and more to the
point.

Now I understand why the error reporting was not done when $text was
empty: the error was actually appended to $text, which messes with
everything else that also works with the $text variable! This even
includes the API. This error message was exposed via the API. That was
certainly a bug.

With this patch, all error checking for the dir="…" attribute is now
done way down, when rendering the <references> section.

Note this also fixes a bug where the dir="…" was *not* rendered when
previewing a section.

Change-Id: I4ab0cb510973ed879c606bfaa394aacc91129854
2019-11-22 10:07:28 +01:00
..
unit Move bad dir="…" error reporting down to the renderer 2019-11-22 10:07:28 +01:00
CiteCSSFileModuleTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteErrorReporterTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteHooksTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00
CiteTest.php Move all code to PSR-4 compatible namespaces 2019-11-20 17:00:13 +01:00