-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Detect duplicate table records within
importCSVDataSet()
The testing-frameworks provides the ability to read csv fixture files to import database datasets. The internal `DataSet::import()` implementation is provided by `FunctionalTestCase->importCSVDataSet()`. Sometimes duplicate rows with the same identifier (`uid` or `hash`) are included in a csv dataset file which are overriden. This change now checks during the dataseet import phase for these duplicates and throw a exception stating the table and id value to make the usage easier and helps with finding test-setup issues. Note: `assertCSVDataSet()` counter part will not check for duplicates. Resolves: #478 Releases: main, 7
- Loading branch information
Showing
1 changed file
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters