silverstripe-framework/tests/php/ORM
Simon Gow 22b514c421 #9114 - DBText::ContextSummary() cuts line breaks
ContextSummary() was cutting the HTML which was added by nl2br because
it expected plain text elements as it's stripping and replacing text.
Instead this fix changes the behaviour to apply the nl2br after the text
changes have been made. That way we can't cut anything in the middle of
a HTML tag, but new lines, or paragraphs are replaced by BRs after,
should they exist.

- Added tests to ensure text is not cut in the middle of a sentence.
- Added test to ensure that <br>'s are added in the correct place should
the summary span between new lines.
2019-07-19 12:43:20 +12:00
..
ArrayListTest
CascadeDeleteTest API Implement cascade_deletes 2017-08-09 15:14:00 +12:00
ComponentSetTest
DatabaseTest MINOR: Add a test that 0 is falser on int, decimal, currency 2019-04-05 15:11:21 +13:00
DataExtensionTest BUG Implement or exclude all pending upgrader deltas 2017-07-03 12:21:47 +12:00
DataObjectDuplicationTest Merge branch '4.0' into 4.1 2018-06-08 23:05:24 +01:00
DataObjectSchemaGenerationTest FIX: Make test work with utf8mb4 2018-11-10 12:10:25 +13:00
DataObjectSchemaTest BUG Fix writeBaseRecord with unique indexes 2019-02-27 16:40:12 +13:00
DataObjectTest API Remove DataObjectSchema::getFieldMap() (#8960) 2019-05-06 12:33:23 +12:00
DataQueryTest
DBClassNameTest API Split out SilverStripe\ORM\Versioned into new module 2017-03-27 11:03:39 +13:00
DBCompositeTest
DBHTMLTextTest
DBMoneyTest
DBStringTest
DBVarcharTest ENHANCEMENT Ensure DBVarchar scaffolds text field with TextField with appropriate max length 2017-10-26 16:21:51 +13:00
DecimalTest
FieldType FIX: Make all enums non-destructive, not just ClassName 2018-11-10 12:10:25 +13:00
Filters NEW Move index generation to DataObjectSchema and solidify index spec 2017-05-25 23:29:12 +01:00
HasManyListTest Add tests for sorting HasManyList 2018-09-27 17:09:24 +02:00
HierarchyTest API Major refactor of Hierarchy into MarkedSet 2017-04-13 16:27:13 +12:00
ManyManyListTest Merge branch '3' 2017-06-28 18:59:08 +01:00
ManyManyThroughListTest BUGFIX many many through not sorting by join table (#8534) 2018-11-01 14:17:15 +13:00
MySQLDatabaseTest
Search ENHANCEMENT Ensure DBVarchar scaffolds text field with TextField with appropriate max length 2017-10-26 16:21:51 +13:00
SQLInsertTest
SQLSelectTest
SQLUpdateTest
TransactionTest
UnsavedRelationListTest
ArrayLibTest.php BUG Remove usage of deprecated each() and use a helper method instead 2017-11-01 16:04:35 +13:00
ArrayListTest.php NEW Adding a shuffle method to ArrayList (#8984) 2019-05-16 09:26:11 +12:00
CascadeDeleteTest.php API Rename assert dos to assert list 2017-10-09 11:53:11 +13:00
CascadeDeleteTest.yml API Implement cascade_deletes 2017-08-09 15:14:00 +12:00
ComponentSetTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
ComponentSetTest.yml
DatabaseTest.php FIX: Fix MySQLQuery::seek() and Query::rewind() to fix repeated iteration 2019-07-03 09:20:05 +12:00
DataExtensionTest.php API Rename assert dos to assert list 2017-10-09 11:53:11 +13:00
DataExtensionTest.yml
DataListTest.php NEW Adding a shuffle method to ArrayList (#8984) 2019-05-16 09:26:11 +12:00
DataObjectDuplicationTest.php Merge branch '3.6' into 4.0 2018-06-08 14:41:04 +01:00
DataObjectDuplicationTest.yml API Implement cascade_duplications 2018-02-05 12:04:57 +13:00
DataObjectLazyLoadingTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
DataObjectSchemaGenerationTest.php FIX: Make all enums non-destructive, not just ClassName 2018-11-10 12:10:25 +13:00
DataObjectSchemaTest.php BUG Fix writeBaseRecord with unique indexes 2019-02-27 16:40:12 +13:00
DataObjectTest.php API Remove DataObjectSchema::getFieldMap() (#8960) 2019-05-06 12:33:23 +12:00
DataObjectTest.yml API Ensure that all DataQuery joins are aliased based on relationship name 2017-05-26 13:38:58 +12:00
DataQueryTest.php Merge branch '4.2' into 4.3 2019-05-30 09:35:17 +12:00
DataQueryTest.yml
DBClassNameTest.php API Add getShortName to DBClassName 2017-11-15 11:27:58 +13:00
DBCompositeTest.php BUG Implement or exclude all pending upgrader deltas 2017-07-03 12:21:47 +12:00
DBCurrencyTest.php Change DBCurrency scaffolded form field to CurrencyField (fixes #8246) 2018-07-09 10:57:01 +12:00
DBDateTest.php NEW DBDate and DBDatetime now support modify() with a strtotime() style adjustment string (#9105) 2019-07-05 15:57:23 +12:00
DBDatetimeTest.php NEW DBDate and DBDatetime now support modify() with a strtotime() style adjustment string (#9105) 2019-07-05 15:57:23 +12:00
DBEnumTest.php FIX: Make all enums non-destructive, not just ClassName 2018-11-10 12:10:25 +13:00
DBFieldTest.php [SS-2018-021] Fix potential SQL vulnerability in non-scalar value hyrdation 2019-02-19 12:20:24 +13:00
DBHTMLTextTest.php #9114 - DBText::ContextSummary() cuts line breaks 2019-07-19 12:43:20 +12:00
DBLocaleTest.php
DBMoneyTest.php Remove flakey swedish intl test 2017-05-08 21:31:14 +12:00
DBMoneyTest.yml
DBPercentageTest.php
DBStringTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
DBTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
DBTextTest.php Fix "mb_stripos(): Empty delimiter" warning when no search-keywords are given for DBText::ContextSummary. 2018-03-01 11:39:30 +01:00
DBTimeTest.php Cleanup SapphireTest and time related tests (#6898) 2017-05-18 22:01:55 +12:00
DBVarcharTest.php ENHANCEMENT Ensure DBVarchar scaffolds text field with TextField with appropriate max length 2017-10-26 16:21:51 +13:00
DBYearTest.php
DecimalTest.php BUG Fix decimal scaffolding 2017-10-10 10:13:26 +13:00
DecimalTest.yml
GroupedListTest.php
HasManyListTest.php Add tests for sorting HasManyList 2018-09-27 17:09:24 +02:00
HasManyListTest.yml Add tests for sorting HasManyList 2018-09-27 17:09:24 +02:00
HierarchyCachingTest.php NEW: Add Hierarchy::prepopulate_numchildren_cache() (#8380) 2018-09-25 12:25:23 +12:00
HierarchyTest.php API Refactor bootstrap, request handling 2017-06-22 22:50:45 +12:00
HierarchyTest.yml
LabelFieldTest.php
ListDecoratorTest.php NEW Change to variadic calls in ListDecorator and add unit tests 2018-11-09 13:59:14 +02:00
ManyManyListExtensionTest.php API Remove Object class 2017-05-23 13:50:35 +12:00
ManyManyListExtensionTest.yml
ManyManyListTest.php Merge branch '4.2' into 4.3 2019-02-27 12:13:24 +13:00
ManyManyThroughListTest.php BUGFIX many many through not sorting by join table (#8534) 2018-11-01 14:17:15 +13:00
ManyManyThroughListTest.yml BUGFIX many many through not sorting by join table (#8534) 2018-11-01 14:17:15 +13:00
MapTest.php API Refactor bootstrap, request handling 2017-06-22 22:50:45 +12:00
MarkedSetTest.php API Refactor bootstrap, request handling 2017-06-22 22:50:45 +12:00
MySQLDatabaseTest.php BUG Implement or exclude all pending upgrader deltas 2017-07-03 12:21:47 +12:00
MySQLDatabaseTest.yml
PaginatedListTest.php API Rename assert dos to assert list 2017-10-09 11:53:11 +13:00
PDODatabaseTest.php BUG Fix postgres / PDO support 2017-11-17 12:35:55 +13:00
PolymorphicHasManyListTest.php API Refactor bootstrap, request handling 2017-06-22 22:50:45 +12:00
SQLInsertTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
SQLSelectTest.php Automated phpcbf linting 2019-05-30 09:34:34 +12:00
SQLSelectTest.yml
SQLUpdateTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
SQLUpdateTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
TransactionTest.php FIX: Introduce readonly transaction test to all database. 2018-11-09 10:57:26 +13:00
UnsavedRelationListTest.php API Rename assert dos to assert list 2017-10-09 11:53:11 +13:00
UnsavedRelationListTest.yml
URLSegmentFilterTest.php URLSegmentFilter: Remove : characters from url segments when multibyte characters are allowed. 2019-06-02 11:43:51 +03:00
ValidationExceptionTest.php
ValidationResultTest.php