Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Detect duplicate table records within importCSVDataSet() #481

Merged
merged 1 commit into from
Jul 28, 2023

Commits on Jul 28, 2023

  1. [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
    sbuerk committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    a5a60c6 View commit details
    Browse the repository at this point in the history