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

test: simplify how tests are named #3394

Merged
merged 5 commits into from Dec 31, 2019
Merged

test: simplify how tests are named #3394

merged 5 commits into from Dec 31, 2019

Conversation

djaiss
Copy link
Member

@djaiss djaiss commented Dec 29, 2019

This PR changes two things in how we write tests:

  • instead of writing test_ as the name of the functions, we can use the /** @test */ above each method. This will make test names much more readable.
  • I've deleted a few tests that were written a long time ago and that didn't bring any value.

Also, as a side note, I've deleted the getLastCalled() method in the Contact model to replace it with the $contact->last_talked_to which is exactly the same and doesn't use a method for nothing.

@djaiss djaiss changed the title tests: simplify how tests are named test: simplify how tests are named Dec 29, 2019
@djaiss djaiss requested a review from asbiin December 30, 2019 01:23
Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for me!

@djaiss djaiss merged commit 3e27975 into master Dec 31, 2019
@djaiss djaiss deleted the 2019-12-29-tests branch December 31, 2019 16:58
@github-actions
Copy link

github-actions bot commented Jan 8, 2021

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants