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 nodes
- create a new content type with a text field
- add configs - the text field should be unique
- submit the node form with the text field = test
- the node should be created without any errors
- submit the node 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 node form with the text field = test
- the node 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

miroslavstankov made their first commit to this issue’s fork.

miroslavstankov’s picture

Assigned: Unassigned » miroslavstankov

I would like to work on this

astonvictor’s picture

Title: Cover the module with tests » Cover the module with node tests
astonvictor’s picture

Issue summary: View changes
astonvictor’s picture

Assigned: miroslavstankov » Unassigned
astonvictor’s picture

Assigned: Unassigned » astonvictor

astonvictor’s picture

Assigned: astonvictor » Unassigned
Status: Active » 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.

Status: Fixed » Closed (fixed)

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