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

Adding a few unit-tests, replacing assertEquals() with assertSame() #167

Merged
merged 25 commits into from
May 7, 2021

Conversation

gudmdharalds
Copy link
Contributor

@gudmdharalds gudmdharalds commented May 5, 2021

Add a few unit-tests, as per #164.

TODO:

  • Add unit-test for vipgoci_cached_indication_str()
  • Add unit-test for vipgoci_github_rate_limit_usage()
  • Add unit-test for vipgoci_github_authenticated_user_get()
  • Add unit-test for vipgoci_option_skip_folder_handle()
  • Add unit-test for vipgoci_results_filter_comments_to_max()
  • Improved unit-test for vipgoci_github_pr_reviews_comments_get_by_pr()
  • Changelog entry

Also replaces all instances of assertEquals() with assertSame() in tests, except those that get replaced in #166. Fixes #156.

Copy link
Collaborator

@wpcomvip-vipgoci-bot wpcomvip-vipgoci-bot left a comment

Choose a reason for hiding this comment

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

phpcs scanning turned up:

⚠️ 1 warning


This bot provides automated PHP Linting and PHPCS scanning, read more here.

tests/MiscCachedIndicationStrTest.php Show resolved Hide resolved
@gudmdharalds gudmdharalds mentioned this pull request May 7, 2021
@gudmdharalds gudmdharalds changed the title Adding a few unit-tests Adding a few unit-tests, replacing assertEquals() with assertSame() May 7, 2021
gudmdharalds added a commit that referenced this pull request May 7, 2021
@gudmdharalds gudmdharalds merged commit ff4e906 into master May 7, 2021
gudmdharalds added a commit that referenced this pull request May 10, 2021
@gudmdharalds gudmdharalds added this to the 1.0.4 milestone May 11, 2021
@gudmdharalds gudmdharalds deleted the add-unit-tests-1 branch May 24, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update unit-tests
2 participants