Problem/Motivation
The CRM app lacks basic CRUD unit tests. Since I'm new to Drupal I'm going to keep the scope of this ticket small and only add a test for the happy path creation of a Person CRM Contact. I'm basing this on what's tested in item 4 in the list defined in this PR: https://git.drupalcode.org/project/crm/-/merge_requests/97/diffs
Remaining tasks
1) Identify the process I'm creating the test for and describe it in this ticket. This would normally be overkill, but since I'm new it's nice to set milestones, and seeing that I understand what I'm testing might make things easier for the reviewer.
2) Identify Drupal unit test best practices, add links to this ticket. Again, normally overkill but milestones are nice.
3) Code the unit test, verify locally, submit a PR for review.
Issue fork crm-3544964
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
speckles commentedOkay, the most basic unit test to verify Person CRM contacts can be added already exists -> https://git.drupalcode.org/project/crm/-/blob/1.0.x/tests/src/Functional...
So I'm going to change this ticket to 'Can be added using their last name'
Comment #3
speckles commentedNevermind, that just validates that an organization can be created. Either way, that's clearly an example of what I need to do, but with the person form instead of the organization form
Comment #4
speckles commentedOkay, I've been stuck on this long enough, ended up leaning way too hard on AI to get it done, but I've got code ready for review.
Comment #7
bluegeek9 commentedComment #8
bluegeek9 commentedComment #11
bluegeek9 commented