silverstripe-framework/tests/model
Will Rossiter 7993875f16 FIX: Sorting a DataQuery over a relation.
When sorting a DataQuery over a relation, the SQLQuery automatically included the sort column. The issue with the implement is that potentially the joined record has a field with the same name as the source record causing it to be overridden.

In the attached test case, without the patch the title will be set to 'Bar' rather than 'Foo'.

This patch aliases the sort column. Alternativally a patch would be to
2014-08-26 17:41:38 +12:00
..
testimages ENHANCEMENT: use image file name (without file path and extension) for alt attribute when title is not provided 2009-05-24 12:16:17 +00:00
AggregateTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
AggregateTest.yml FEATURE: Add aggregate calculation to DataObject, allowing (cached) calculation of Max, Min, Count, Avg, etc (from r97390) 2010-04-12 05:04:34 +00:00
ArrayListTest.php BUG ArrayList failing to respect the SS_Sortable interface 2014-05-15 14:25:23 +12:00
ComponentSetTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
ComponentSetTest.yml MINOR Added ComponentSetTest 2010-02-22 04:37:32 +00:00
CompositeDBFieldTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
CurrencyTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DatabaseTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DataDifferencerTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DataDifferencerTest.yml API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:50:19 +12:00
DataExtensionTest.php NEW Added beforeExtending, afterExtending, and beforeUpdateCMSFields to allow user code better control over interaction with extending methods 2013-05-16 10:34:45 +12:00
DataExtensionTest.yml API CHANGE: Renamed DataObjectDecorator to DataExtension. 2011-04-26 11:01:38 +10:00
DataListTest.php NEW: Created LessThanOrEqualFilter and GreaterThanEqualFilter 2013-11-25 03:59:51 +00:00
DataObjectDuplicationTest.php BUG Correct relation saving in DataObject->duplicateRelations() 2013-06-03 15:57:20 +02:00
DataObjectLazyLoadingTest.php BUG Fix data query not always joining necessary tables 2014-05-06 12:22:46 +12:00
DataObjectSchemaGenerationTest.php BUG Prevent unnecessary reconstruction of ClassName field after default records are generated 2014-03-04 12:03:45 +13:00
DataObjectTest_Namespaced.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DataObjectTest.php BUG Custom label set in summary_fields config gets overridden 2014-08-14 14:19:41 +12:00
DataObjectTest.yml API Allow $summary_fields to support methods on DBFields 2013-06-13 09:41:24 +12:00
DataQueryTest.php FIX: Sorting a DataQuery over a relation. 2014-08-26 17:41:38 +12:00
DataQueryTest.yml BUG Fix data query not always joining necessary tables 2014-05-06 12:22:46 +12:00
DateTest.php BUG Fix Date and SS_DateTime::FormatFromSettings 2014-04-02 15:38:35 +13:00
DatetimeTest.php BUG Fix Date and SS_DateTime::FormatFromSettings 2014-04-02 15:38:35 +13:00
DbDatetimeTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DbDatetimeTest.yml MINOR Removed dependency on SiteTree in various unit tests 2011-03-29 18:07:58 +13:00
DBFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DBLocaleTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DBTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DecimalTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DecimalTest.yml API CHANGE Rearranged files in sapphire to reflect core dependencies more accurately, and have the tests/ folder mirror its folder structure 2011-03-31 09:56:21 +13:00
GDImageTest.php NEW: Enable multiple image manipulation back-ends on the Image class 2012-11-03 19:38:09 -07:00
GroupedListTest.php ENHANCEMENT: Allow nested grouping of GroupedList 2014-03-15 19:20:28 +13:00
HasManyListTest.php BUG Fixes issue where items could be deleted from a has_many relation by an entirely unrelated HasManyList calling delete on that item. 2013-11-01 11:39:13 +13:00
HierarchyTest.php BUG: CMS tree filters doesn't count the correct number of children for deleted pages 2014-07-25 16:19:30 +12:00
HierarchyTest.yml NEW Enforce max node counts to avoid excessive resource usage 2013-04-09 10:24:18 +12:00
HTMLTextTest.php BUG HTMLText whitelist considers text nodes 2014-04-29 11:52:16 +12:00
ImageTest.php test all generate methods and formatted image deletetions 2014-08-19 10:12:47 +02:00
ImageTest.yml MINOR Fixing broken test on Windows 2012-05-04 22:48:47 +12:00
ImagickImageTest.php NEW: Enable multiple image manipulation back-ends on the Image class 2012-11-03 19:38:09 -07:00
LabelFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
ManyManyListTest.php FIX Add support for compositedbfield within many_many_extraFields 2014-06-28 10:54:48 +12:00
MapTest.php API: Implement SS_Map::push() to append values. 2013-11-18 20:38:57 +13:00
MoneyTest.php MINOR: Corrected tests to use assertFalse|True() 2013-09-13 12:27:37 +12:00
MoneyTest.yml Added test for lazy-loading edge-case in Money field. 2013-04-22 11:50:57 +12:00
MySQLDatabaseTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PaginatedListTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
PercentageTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
SQLQueryTest.php BUG #3282: Added ability to subselect with in left or inner join 2014-07-17 13:27:28 +12:00
SQLQueryTest.yml BUG SQLQuery::aggregate() with limit, groupBy and orderBy (fixes #8148) 2012-12-21 15:20:59 +01:00
StringFieldTest.php FIX: Convert newlines to <br /> tags in string fields (fixes #1942) 2013-05-30 09:26:58 +01:00
TextTest.php adding exclamation mark and question mark to delimiters, made text work the same as HTML Text 2014-08-07 21:01:23 +10:00
TransactionTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
UnsavedRelationListTest.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
UnsavedRelationListTest.yml NEW: Allows setting of has_many and many_many relations before writing 2012-11-28 09:37:08 +13:00
URLSegmentFilterTest.php Remove trailing dashes from URLSegment 2014-03-03 22:22:03 +00:00
ValidationExceptionTest.php NEW: Made ValidationResult functions chain-able. 2014-01-09 16:32:27 +13:00
VersionedTest.php Better support for overloading start and destroy methods in Session 2014-06-20 10:35:53 +12:00
VersionedTest.yml MINOR Removed dependency on SiteTree in various unit tests 2011-03-29 18:07:58 +13:00
YearTest.php FIX: Year.php getDefaultOptions now fixed, sets key as year. Also added YearTest unit test. 2013-12-16 03:29:29 +00:00