silverstripe-framework/tests/dev
Antony Thorpe 39d1ef7a4b Bugfix: BulkLoader_Result class - Deleted Items (#5598)
* Bugfix: BulkLoader_Result class - Deleted Items

The Deleted function, within BulkLoader_Result class, calls mapToArrayList, which tries to find the recently deleted dataobjects.
To correct:
- when calling addDeleted, store a map of each dataobject within the $this->deleted array; and,
- have the Deleted function return an ArrayList based upon the $this->deleted array.

* Added tests

- created a new test file for the BulkLoader_Result class
- included tests for other methods of this class
- slightly altered the addDeleted function to be consistent other methods of this class
2016-06-01 09:55:06 +12:00
..
BacktraceTest.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
BulkLoaderResultTest.php Bugfix: BulkLoader_Result class - Deleted Items (#5598) 2016-06-01 09:55:06 +12:00
CsvBulkLoaderTest_LargeListOfPlayers.csv Splitting BulkLoader imports to reduce memory consumption 2015-09-15 10:06:06 +12:00
CsvBulkLoaderTest_Players.csv Merged from branches/2.3 2009-02-03 04:00:02 +00:00
CsvBulkLoaderTest_PlayersWithCustomHeaderAndRelation.csv API CHANGE: Created CSVParser class and updated CSVBulkLoader to use it 2008-10-03 00:27:58 +00:00
CsvBulkLoaderTest_PlayersWithHeader.csv Merged from branches/2.3 2009-02-03 04:00:02 +00:00
CsvBulkLoaderTest_PlayersWithId.csv FIX: Instead of CsvBulkLoader->findExistingRecord out right failing (i.e. no duplicate found) when the duplicate check field is empty, it will now continue on to check other duplicateCheck fields. 2013-04-19 16:52:39 +12:00
CsvBulkLoaderTest_PlayersWithIdUpdated.csv API CHANGE: Created CSVParser class and updated CSVBulkLoader to use it 2008-10-03 00:27:58 +00:00
CsvBulkLoaderTest.php Splitting BulkLoader imports to reduce memory consumption 2015-09-15 10:06:06 +12:00
CsvBulkLoaderTest.yml API CHANGE: Created CSVParser class and updated CSVBulkLoader to use it 2008-10-03 00:27:58 +00:00
CSVParserTest.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
DeprecationTest.php API Disable deprecation notices by default 2015-07-16 09:56:47 +12:00
DevAdminControllerTest.php Nest and unnest Config and Controller for each test and test suite 2015-06-11 16:37:25 +01:00
FixtureBlueprintTest.php Merge remote-tracking branch 'origin/3.1' into 3 2015-06-02 19:13:38 +12:00
FixtureFactoryTest.php Refactor DataObject has_one/has_many/many_many methods 2015-03-13 15:15:23 +00:00
LogTest.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
MySQLDatabaseConfigurationHelperTest.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
TaskRunnerTest.php Allow abstract BuildTask subclasses (closes #4538) 2015-08-25 10:14:15 +01:00