silverstripe-framework/tests
Sean Harvey 26d70d6fca BUG HtmlEditorField doesn't save HTML fragments in HTMLValue correctly
The issue was raised in #7628, where an anchor tag was being changed from
<a name="anchor"></a> to <a name="anchor"/> by SS_HTMLValue, when
HtmlEditorField::saveInto() parses the HTML fragments.

This is because SS_HTMLValue uses DOMDocument::saveXML(), which is fine
for saving an XML document, but not suitable for HTML. This fix changes
that to use DOMDocument::saveHTML() instead.
Note that we can't use the parameter to saveHTML() for selecting a single
node only, as that's only supported in PHP 5.3.6+, SilverStripe 3.0 supports
PHP 5.3.2 as a minimum. The workaround for this shortcoming is to replace
unncessary output by DOMDocument with a regular expression.
2012-09-19 11:39:01 +12:00
..
api FIX: use standard template rendering process for RSS feeds 2012-07-31 20:38:41 +12:00
cache NEW Allow setting default cache lifetime, and test that it's being used correctly on new caches 2012-09-03 12:55:19 +12:00
control FIXED: Error in test case deprecation 2012-08-27 11:04:16 +12:00
core Add some basic tests for ConfigManifest#relativeOrder 2012-08-27 16:42:25 +12:00
dev Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
filesystem ENHANCEMENT: remove dependencies between framework tests and cms module. 2012-06-20 16:28:06 +02:00
forms BUG HtmlEditorField doesn't save HTML fragments in HTMLValue correctly 2012-09-19 11:39:01 +12:00
i18n MINOR Fixed phpdocs 2012-06-20 23:59:16 +02:00
injector BUGFIX Moved initialisation of injector to the start of Core.php to make sure that it is initialised correctly before additional code blocks reference it (in particular some of the code introduced by Sam that is triggered during add_extension). 2012-06-14 20:28:20 +10:00
integration BUG HtmlEditorField doesn't save HTML fragments in HTMLValue correctly 2012-09-19 11:39:01 +12:00
javascript MINOR Cleaning up code of Datagrid with related classes with more tests 2011-09-29 12:16:15 +13:00
model Don't rely on hardcoded IDs in DataListTest (breaks postgres) 2012-09-12 10:51:40 +02:00
oembed ENHANCEMENT: add test to Oembed 2012-05-24 17:00:22 +12:00
parsers BUGFIX: Handle consecutive shortcodes. 2012-05-23 18:18:06 +12:00
search BUGFIX Case insensitive search filters for PostgreSQL (fixes #6548) 2012-09-02 23:02:20 +02:00
security API: add SecurityToken::reset() as a shortcut for regenerating a secure token. 2012-07-01 20:53:58 +12:00
tasks ENHANCEMENT: Implement blowfish encryption and use it by default. (#7111) 2012-05-02 13:51:29 +12:00
templates API: add api for setting a custom template on a RSS feed. 2012-07-01 21:27:50 +12:00
testing ENHANCEMENT Add YamlFixture String argument support 2012-06-29 00:33:00 +02:00
travis Removed pre-emptive dev/build from travis test run, to make it faster. 2012-08-29 12:10:58 +12:00
view BUG Fixed SSViewerTest execution in non-dev environments 2012-09-12 09:50:10 +02:00
Bare.yml MINOR: Added small fixture YML that just lets you log in, for bootstrapping browser automation tests. 2011-02-02 14:17:57 +13:00
bootstrap.php Revert "Make PHPUnit bootstrap add flush=1" 2012-08-14 19:00:57 +12:00
FakeController.php MINOR Moving FakeController class (required for bootstrap.php) into its own file, so that autoloading doesn't execute bootstrap (which is the case when invoking TestRunner->module()) 2012-04-30 15:04:59 +02:00
MemoryLimitTest.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
PhpSyntaxTest.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00