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.

Command icon 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

astonvictor created an issue. See original summary.

astonvictor’s picture

Issue summary: View changes
konot’s picture

Assigned: Unassigned » konot

konot’s picture

Assigned: konot » Unassigned
Status: Active » Needs review

I 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!

astonvictor’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • astonvictor committed 0b51cc48 on 8.x-2.x authored by konot
    Issue #3570248: add tests for taxonomy terms validation with and without...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.