Currently, there are no tests in the module. We should create some tests to check the base features.
I guess steps should be smth like:
- create a regular user with permission to create taxonomy terms
- create a new vocabulary type with a text field
- add configs - the text field should be unique
- submit the term form with the text field = test
- the term should be created without any errors
- submit the term form with the text field = test
- the user should have an error message
- add a 'unique_field_perm_bypass' permission to the user
- submit the term form with the text field = test
- the term should be created without any errors
p.s. .gitlab-ci.yml file should be updated to execute tests.
Issue fork unique_field-3570248
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
astonvictor commentedComment #3
konot commentedComment #5
konot commentedI have added the tests, which check if Taxonomy add and duplication is handled normally both with and without bypass permissions.
I am looking for the review. Thanks!
Comment #6
astonvictor commented