{"action":"created","comment":{"url":"https://api.github.com/repos/auth0/wp-auth0/pulls/comments/204871378","pull_request_review_id":140028751,"id":204871378,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDg3MTM3OA==","diff_hunk":"@@ -58,7 +60,36 @@ git clone https://github.com/joshcanhelp/auth0-wp-test.git ./wp-content/themes/a\n \n For a more complete script, [see this Gist](https://gist.github.com/joshcanhelp/50f66002643ece68f01bf5f94e1abe56).\n \n-The main requirement for testing, though, is using the latest version of WordPress with our minimum supported PHP version. \n+The main requirement for testing, though, is using the latest version of WordPress with our minimum supported PHP version and testing both single and multi-site setups. \n+\n+### Testing\n+\n+All new features and functionality should also include unit tests coverage. The plugin currently has the WP-CLI test scaffolding, a composer script, and tests for the latest functionality. \n+\n+WordPress testing is a bit different from typical testing in PHP, mainly because of the need for a working database. To run tests locally, you'll need to install the test suite, which is [covered here](https://make.wordpress.org/cli/handbook/plugin-unit-tests/#running-tests-locally). Run this install command:\n+\n+```\n+bin/install-wp-tests.sh wordpress_test root '' localhost latest\n+```\n+\n+... changing the options for your local setup. Once that completes succesfully, you can run the Composer script:\n+\n+```\n+composer test\n+```\n+\n+... to run all tests or:\n+\n+```\n+composer test-path ./tests/testFiletoRun.php\n+```\n+\n+... to run a specific test. \n+\n+Tests are run as isolated processes and, if database functions are used, should `use` the `SetUpTestDb` trait. See an example of this in the `TestWPAuth0Options` class. ","path":"README.md","position":48,"original_position":48,"commit_id":"998af547d4ebe8f53430f78799f1e61f93849e1c","original_commit_id":"998af547d4ebe8f53430f78799f1e61f93849e1c","user":{"login":"lbalmaceda","id":3900123,"node_id":"MDQ6VXNlcjM5MDAxMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/3900123?v=4","gravatar_id":"","url":"https://api.github.com/users/lbalmaceda","html_url":"https://github.com/lbalmaceda","followers_url":"https://api.github.com/users/lbalmaceda/followers","following_url":"https://api.github.com/users/lbalmaceda/following{/other_user}","gists_url":"https://api.github.com/users/lbalmaceda/gists{/gist_id}","starred_url":"https://api.github.com/users/lbalmaceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbalmaceda/subscriptions","organizations_url":"https://api.github.com/users/lbalmaceda/orgs","repos_url":"https://api.github.com/users/lbalmaceda/repos","events_url":"https://api.github.com/users/lbalmaceda/events{/privacy}","received_events_url":"https://api.github.com/users/lbalmaceda/received_events","type":"User","site_admin":false},"body":"I don't think this part is correctly written or even wrapped in the right syntax\r\n\r\n```\r\nshould `use` the `SetUpTestDb` trait.\r\n```\r\n\r\nyour call","created_at":"2018-07-24T18:49:49Z","updated_at":"2018-07-24T18:50:18Z","html_url":"https://github.com/auth0/wp-auth0/pull/506#discussion_r204871378","pull_request_url":"https://api.github.com/repos/auth0/wp-auth0/pulls/506","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/comments/204871378"},"html":{"href":"https://github.com/auth0/wp-auth0/pull/506#discussion_r204871378"},"pull_request":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/506"}}},"pull_request":{"url":"https://api.github.com/repos/auth0/wp-auth0/pulls/506","id":203617398,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNjE3Mzk4","html_url":"https://github.com/auth0/wp-auth0/pull/506","diff_url":"https://github.com/auth0/wp-auth0/pull/506.diff","patch_url":"https://github.com/auth0/wp-auth0/pull/506.patch","issue_url":"https://api.github.com/repos/auth0/wp-auth0/issues/506","number":506,"state":"open","locked":false,"title":"Add more info to Contributing section, including tests","user":{"login":"joshcanhelp","id":855223,"node_id":"MDQ6VXNlcjg1NTIyMw==","avatar_url":"https://avatars2.githubusercontent.com/u/855223?v=4","gravatar_id":"","url":"https://api.github.com/users/joshcanhelp","html_url":"https://github.com/joshcanhelp","followers_url":"https://api.github.com/users/joshcanhelp/followers","following_url":"https://api.github.com/users/joshcanhelp/following{/other_user}","gists_url":"https://api.github.com/users/joshcanhelp/gists{/gist_id}","starred_url":"https://api.github.com/users/joshcanhelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshcanhelp/subscriptions","organizations_url":"https://api.github.com/users/joshcanhelp/orgs","repos_url":"https://api.github.com/users/joshcanhelp/repos","events_url":"https://api.github.com/users/joshcanhelp/events{/privacy}","received_events_url":"https://api.github.com/users/joshcanhelp/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-24T18:35:50Z","updated_at":"2018-07-24T18:50:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae802d79bc10e75e19b87b24f3e2ae6f59bef060","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":626438608,"node_id":"MDU6TGFiZWw2MjY0Mzg2MDg=","url":"https://api.github.com/repos/auth0/wp-auth0/labels/CH:%20Added","name":"CH: Added","color":"5319e7","default":false},{"id":889157989,"node_id":"MDU6TGFiZWw4ODkxNTc5ODk=","url":"https://api.github.com/repos/auth0/wp-auth0/labels/Ready%20for%20Review","name":"Ready for Review","color":"0e8a16","default":false}],"milestone":{"url":"https://api.github.com/repos/auth0/wp-auth0/milestones/18","html_url":"https://github.com/auth0/wp-auth0/milestone/18","labels_url":"https://api.github.com/repos/auth0/wp-auth0/milestones/18/labels","id":3468683,"node_id":"MDk6TWlsZXN0b25lMzQ2ODY4Mw==","number":18,"title":"v3-Next","description":"","creator":{"login":"joshcanhelp","id":855223,"node_id":"MDQ6VXNlcjg1NTIyMw==","avatar_url":"https://avatars2.githubusercontent.com/u/855223?v=4","gravatar_id":"","url":"https://api.github.com/users/joshcanhelp","html_url":"https://github.com/joshcanhelp","followers_url":"https://api.github.com/users/joshcanhelp/followers","following_url":"https://api.github.com/users/joshcanhelp/following{/other_user}","gists_url":"https://api.github.com/users/joshcanhelp/gists{/gist_id}","starred_url":"https://api.github.com/users/joshcanhelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshcanhelp/subscriptions","organizations_url":"https://api.github.com/users/joshcanhelp/orgs","repos_url":"https://api.github.com/users/joshcanhelp/repos","events_url":"https://api.github.com/users/joshcanhelp/events{/privacy}","received_events_url":"https://api.github.com/users/joshcanhelp/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2018-07-02T23:21:56Z","updated_at":"2018-07-24T18:35:50Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/auth0/wp-auth0/pulls/506/commits","review_comments_url":"https://api.github.com/repos/auth0/wp-auth0/pulls/506/comments","review_comment_url":"https://api.github.com/repos/auth0/wp-auth0/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auth0/wp-auth0/issues/506/comments","statuses_url":"https://api.github.com/repos/auth0/wp-auth0/statuses/998af547d4ebe8f53430f78799f1e61f93849e1c","head":{"label":"auth0:add-contrib-docs-to-readme","ref":"add-contrib-docs-to-readme","sha":"998af547d4ebe8f53430f78799f1e61f93849e1c","user":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"repo":{"id":16893279,"node_id":"MDEwOlJlcG9zaXRvcnkxNjg5MzI3OQ==","name":"wp-auth0","full_name":"auth0/wp-auth0","owner":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auth0/wp-auth0","description":"Wordpress Plugin for Auth0","fork":false,"url":"https://api.github.com/repos/auth0/wp-auth0","forks_url":"https://api.github.com/repos/auth0/wp-auth0/forks","keys_url":"https://api.github.com/repos/auth0/wp-auth0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auth0/wp-auth0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auth0/wp-auth0/teams","hooks_url":"https://api.github.com/repos/auth0/wp-auth0/hooks","issue_events_url":"https://api.github.com/repos/auth0/wp-auth0/issues/events{/number}","events_url":"https://api.github.com/repos/auth0/wp-auth0/events","assignees_url":"https://api.github.com/repos/auth0/wp-auth0/assignees{/user}","branches_url":"https://api.github.com/repos/auth0/wp-auth0/branches{/branch}","tags_url":"https://api.github.com/repos/auth0/wp-auth0/tags","blobs_url":"https://api.github.com/repos/auth0/wp-auth0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auth0/wp-auth0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auth0/wp-auth0/git/refs{/sha}","trees_url":"https://api.github.com/repos/auth0/wp-auth0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auth0/wp-auth0/statuses/{sha}","languages_url":"https://api.github.com/repos/auth0/wp-auth0/languages","stargazers_url":"https://api.github.com/repos/auth0/wp-auth0/stargazers","contributors_url":"https://api.github.com/repos/auth0/wp-auth0/contributors","subscribers_url":"https://api.github.com/repos/auth0/wp-auth0/subscribers","subscription_url":"https://api.github.com/repos/auth0/wp-auth0/subscription","commits_url":"https://api.github.com/repos/auth0/wp-auth0/commits{/sha}","git_commits_url":"https://api.github.com/repos/auth0/wp-auth0/git/commits{/sha}","comments_url":"https://api.github.com/repos/auth0/wp-auth0/comments{/number}","issue_comment_url":"https://api.github.com/repos/auth0/wp-auth0/issues/comments{/number}","contents_url":"https://api.github.com/repos/auth0/wp-auth0/contents/{+path}","compare_url":"https://api.github.com/repos/auth0/wp-auth0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auth0/wp-auth0/merges","archive_url":"https://api.github.com/repos/auth0/wp-auth0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auth0/wp-auth0/downloads","issues_url":"https://api.github.com/repos/auth0/wp-auth0/issues{/number}","pulls_url":"https://api.github.com/repos/auth0/wp-auth0/pulls{/number}","milestones_url":"https://api.github.com/repos/auth0/wp-auth0/milestones{/number}","notifications_url":"https://api.github.com/repos/auth0/wp-auth0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auth0/wp-auth0/labels{/name}","releases_url":"https://api.github.com/repos/auth0/wp-auth0/releases{/id}","deployments_url":"https://api.github.com/repos/auth0/wp-auth0/deployments","created_at":"2014-02-16T20:20:08Z","updated_at":"2018-07-20T19:58:15Z","pushed_at":"2018-07-24T18:35:51Z","git_url":"git://github.com/auth0/wp-auth0.git","ssh_url":"git@github.com:auth0/wp-auth0.git","clone_url":"https://github.com/auth0/wp-auth0.git","svn_url":"https://github.com/auth0/wp-auth0","homepage":"https://auth0.com/wordpress","size":8313,"stargazers_count":71,"watchers_count":71,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":21,"watchers":71,"default_branch":"master"}},"base":{"label":"auth0:dev","ref":"dev","sha":"e381890e1941bbe04f1b83893acf2f1b3e42bc20","user":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"repo":{"id":16893279,"node_id":"MDEwOlJlcG9zaXRvcnkxNjg5MzI3OQ==","name":"wp-auth0","full_name":"auth0/wp-auth0","owner":{"login":"auth0","id":2824157,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MjQxNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2824157?v=4","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auth0/wp-auth0","description":"Wordpress Plugin for Auth0","fork":false,"url":"https://api.github.com/repos/auth0/wp-auth0","forks_url":"https://api.github.com/repos/auth0/wp-auth0/forks","keys_url":"https://api.github.com/repos/auth0/wp-auth0/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auth0/wp-auth0/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auth0/wp-auth0/teams","hooks_url":"https://api.github.com/repos/auth0/wp-auth0/hooks","issue_events_url":"https://api.github.com/repos/auth0/wp-auth0/issues/events{/number}","events_url":"https://api.github.com/repos/auth0/wp-auth0/events","assignees_url":"https://api.github.com/repos/auth0/wp-auth0/assignees{/user}","branches_url":"https://api.github.com/repos/auth0/wp-auth0/branches{/branch}","tags_url":"https://api.github.com/repos/auth0/wp-auth0/tags","blobs_url":"https://api.github.com/repos/auth0/wp-auth0/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auth0/wp-auth0/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auth0/wp-auth0/git/refs{/sha}","trees_url":"https://api.github.com/repos/auth0/wp-auth0/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auth0/wp-auth0/statuses/{sha}","languages_url":"https://api.github.com/repos/auth0/wp-auth0/languages","stargazers_url":"https://api.github.com/repos/auth0/wp-auth0/stargazers","contributors_url":"https://api.github.com/repos/auth0/wp-auth0/contributors","subscribers_url":"https://api.github.com/repos/auth0/wp-auth0/subscribers","subscription_url":"https://api.github.com/repos/auth0/wp-auth0/subscription","commits_url":"https://api.github.com/repos/auth0/wp-auth0/commits{/sha}","git_commits_url":"https://api.github.com/repos/auth0/wp-auth0/git/commits{/sha}","comments_url":"https://api.github.com/repos/auth0/wp-auth0/comments{/number}","issue_comment_url":"https://api.github.com/repos/auth0/wp-auth0/issues/comments{/number}","contents_url":"https://api.github.com/repos/auth0/wp-auth0/contents/{+path}","compare_url":"https://api.github.com/repos/auth0/wp-auth0/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auth0/wp-auth0/merges","archive_url":"https://api.github.com/repos/auth0/wp-auth0/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auth0/wp-auth0/downloads","issues_url":"https://api.github.com/repos/auth0/wp-auth0/issues{/number}","pulls_url":"https://api.github.com/repos/auth0/wp-auth0/pulls{/number}","milestones_url":"https://api.github.com/repos/auth0/wp-auth0/milestones{/number}","notifications_url":"https://api.github.com/repos/auth0/wp-auth0/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auth0/wp-auth0/labels{/name}","releases_url":"https://api.github.com/repos/auth0/wp-auth0/releases{/id}","deployments_url":"https://api.github.com/repos/auth0/wp-auth0/deployments","created_at":"2014-02-16T20:20:08Z","updated_at":"2018-07-20T19:58:15Z","pushed_at":"2018-07-24T18:35:51Z","git_url":"git://github.com/auth0/wp-auth0.git","ssh_url":"git@github.com:auth0/wp-auth0.git","clone_url":"https://github.com/auth0/wp-auth0.git","svn_url":"https://github.com/auth0/wp-auth0","homepage":"https://auth0.com/wordpress","size":8313,"stargazers_count":71,"watchers_count":71,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":21,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/506"},"html":{"href":"https://github.com/auth0/wp-auth0/pull/506"},"issue":{"href":"https://api.github.com/repos/auth0/wp-auth0/issues/506"},"comments":{"href":"https://api.github.com/repos/auth0/wp-auth0/issues/506/comments"},"review_comments":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/506/comments"},"review_comment":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auth0/wp-auth0/pulls/506/commits"},"statuses":{"href":"https://api.github.com/repos/auth0/wp-auth0/statuses/998af547d4ebe8f53430f78799f1e61f93849e1c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"lbalmaceda"}}