{"action":"created","comment":{"url":"https://api.github.com/repos/chuva-inc/captcha/pulls/comments/29229718","id":29229718,"diff_hunk":"@@ -172,14 +167,15 @@ public function testCaptchaAdminLinks() {\n     // This is actually the same as the previous setting because\n     // the captcha/Math is the default for the default challenge.\n     // TODO Make sure the edit is a real change.\n-    $this->assertText(t('CAPTCHA: challenge \"@type\" enabled', array('@type' => 'Math')),\n+    $this->assertText(t('CAPTCHA: challenge \"@type\" enabled', array('@type' => $edit['captchaType'])),\n       'Enable a challenge through the CAPTCHA admin links', 'CAPTCHA');\n     // Check if CAPTCHA was successfully edited (through API).\n     $this->assertCaptchaSetting(self::COMMENT_FORM_ID, 'default');\n \n     // Disable challenge through CAPTCHA admin links.\n+    global $base_url;","path":"src/Tests/CaptchaAdminTestCase.php","position":109,"original_position":109,"commit_id":"a8abc273ef128fd33714e2c10fefe1a60533440e","original_commit_id":"a8abc273ef128fd33714e2c10fefe1a60533440e","user":{"login":"Berdir","id":40826,"avatar_url":"https://avatars.githubusercontent.com/u/40826?v=3","gravatar_id":"","url":"https://api.github.com/users/Berdir","html_url":"https://github.com/Berdir","followers_url":"https://api.github.com/users/Berdir/followers","following_url":"https://api.github.com/users/Berdir/following{/other_user}","gists_url":"https://api.github.com/users/Berdir/gists{/gist_id}","starred_url":"https://api.github.com/users/Berdir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Berdir/subscriptions","organizations_url":"https://api.github.com/users/Berdir/orgs","repos_url":"https://api.github.com/users/Berdir/repos","events_url":"https://api.github.com/users/Berdir/events{/privacy}","received_events_url":"https://api.github.com/users/Berdir/received_events","type":"User","site_admin":false},"body":"this shouldn't be needed?","created_at":"2015-04-28T10:15:05Z","updated_at":"2015-04-28T10:15:05Z","html_url":"https://github.com/chuva-inc/captcha/pull/10#discussion_r29229718","pull_request_url":"https://api.github.com/repos/chuva-inc/captcha/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/comments/29229718"},"html":{"href":"https://github.com/chuva-inc/captcha/pull/10#discussion_r29229718"},"pull_request":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/chuva-inc/captcha/pulls/10","id":34247289,"html_url":"https://github.com/chuva-inc/captcha/pull/10","diff_url":"https://github.com/chuva-inc/captcha/pull/10.diff","patch_url":"https://github.com/chuva-inc/captcha/pull/10.patch","issue_url":"https://api.github.com/repos/chuva-inc/captcha/issues/10","number":10,"state":"open","locked":false,"title":"Fix tests","user":{"login":"LKS90","id":11182340,"avatar_url":"https://avatars.githubusercontent.com/u/11182340?v=3","gravatar_id":"","url":"https://api.github.com/users/LKS90","html_url":"https://github.com/LKS90","followers_url":"https://api.github.com/users/LKS90/followers","following_url":"https://api.github.com/users/LKS90/following{/other_user}","gists_url":"https://api.github.com/users/LKS90/gists{/gist_id}","starred_url":"https://api.github.com/users/LKS90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LKS90/subscriptions","organizations_url":"https://api.github.com/users/LKS90/orgs","repos_url":"https://api.github.com/users/LKS90/repos","events_url":"https://api.github.com/users/LKS90/events{/privacy}","received_events_url":"https://api.github.com/users/LKS90/received_events","type":"User","site_admin":false},"body":"Mostly just dirty tricks to make the tests pass. Some functionality seems to have changed and I added some fixes where necessary. I'll comment on the changes and what they do exactly.","created_at":"2015-04-28T09:16:01Z","updated_at":"2015-04-28T10:15:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4b135ef333298c4474dd165c1dcf8f0f5271dea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chuva-inc/captcha/pulls/10/commits","review_comments_url":"https://api.github.com/repos/chuva-inc/captcha/pulls/10/comments","review_comment_url":"https://api.github.com/repos/chuva-inc/captcha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chuva-inc/captcha/issues/10/comments","statuses_url":"https://api.github.com/repos/chuva-inc/captcha/statuses/a8abc273ef128fd33714e2c10fefe1a60533440e","head":{"label":"LKS90:fixTests","ref":"fixTests","sha":"a8abc273ef128fd33714e2c10fefe1a60533440e","user":{"login":"LKS90","id":11182340,"avatar_url":"https://avatars.githubusercontent.com/u/11182340?v=3","gravatar_id":"","url":"https://api.github.com/users/LKS90","html_url":"https://github.com/LKS90","followers_url":"https://api.github.com/users/LKS90/followers","following_url":"https://api.github.com/users/LKS90/following{/other_user}","gists_url":"https://api.github.com/users/LKS90/gists{/gist_id}","starred_url":"https://api.github.com/users/LKS90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LKS90/subscriptions","organizations_url":"https://api.github.com/users/LKS90/orgs","repos_url":"https://api.github.com/users/LKS90/repos","events_url":"https://api.github.com/users/LKS90/events{/privacy}","received_events_url":"https://api.github.com/users/LKS90/received_events","type":"User","site_admin":false},"repo":{"id":34439364,"name":"captcha","full_name":"LKS90/captcha","owner":{"login":"LKS90","id":11182340,"avatar_url":"https://avatars.githubusercontent.com/u/11182340?v=3","gravatar_id":"","url":"https://api.github.com/users/LKS90","html_url":"https://github.com/LKS90","followers_url":"https://api.github.com/users/LKS90/followers","following_url":"https://api.github.com/users/LKS90/following{/other_user}","gists_url":"https://api.github.com/users/LKS90/gists{/gist_id}","starred_url":"https://api.github.com/users/LKS90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LKS90/subscriptions","organizations_url":"https://api.github.com/users/LKS90/orgs","repos_url":"https://api.github.com/users/LKS90/repos","events_url":"https://api.github.com/users/LKS90/events{/privacy}","received_events_url":"https://api.github.com/users/LKS90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LKS90/captcha","description":"Mirror for Drupal's CAPTCHA modules","fork":true,"url":"https://api.github.com/repos/LKS90/captcha","forks_url":"https://api.github.com/repos/LKS90/captcha/forks","keys_url":"https://api.github.com/repos/LKS90/captcha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LKS90/captcha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LKS90/captcha/teams","hooks_url":"https://api.github.com/repos/LKS90/captcha/hooks","issue_events_url":"https://api.github.com/repos/LKS90/captcha/issues/events{/number}","events_url":"https://api.github.com/repos/LKS90/captcha/events","assignees_url":"https://api.github.com/repos/LKS90/captcha/assignees{/user}","branches_url":"https://api.github.com/repos/LKS90/captcha/branches{/branch}","tags_url":"https://api.github.com/repos/LKS90/captcha/tags","blobs_url":"https://api.github.com/repos/LKS90/captcha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LKS90/captcha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LKS90/captcha/git/refs{/sha}","trees_url":"https://api.github.com/repos/LKS90/captcha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LKS90/captcha/statuses/{sha}","languages_url":"https://api.github.com/repos/LKS90/captcha/languages","stargazers_url":"https://api.github.com/repos/LKS90/captcha/stargazers","contributors_url":"https://api.github.com/repos/LKS90/captcha/contributors","subscribers_url":"https://api.github.com/repos/LKS90/captcha/subscribers","subscription_url":"https://api.github.com/repos/LKS90/captcha/subscription","commits_url":"https://api.github.com/repos/LKS90/captcha/commits{/sha}","git_commits_url":"https://api.github.com/repos/LKS90/captcha/git/commits{/sha}","comments_url":"https://api.github.com/repos/LKS90/captcha/comments{/number}","issue_comment_url":"https://api.github.com/repos/LKS90/captcha/issues/comments{/number}","contents_url":"https://api.github.com/repos/LKS90/captcha/contents/{+path}","compare_url":"https://api.github.com/repos/LKS90/captcha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LKS90/captcha/merges","archive_url":"https://api.github.com/repos/LKS90/captcha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LKS90/captcha/downloads","issues_url":"https://api.github.com/repos/LKS90/captcha/issues{/number}","pulls_url":"https://api.github.com/repos/LKS90/captcha/pulls{/number}","milestones_url":"https://api.github.com/repos/LKS90/captcha/milestones{/number}","notifications_url":"https://api.github.com/repos/LKS90/captcha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LKS90/captcha/labels{/name}","releases_url":"https://api.github.com/repos/LKS90/captcha/releases{/id}","created_at":"2015-04-23T06:58:56Z","updated_at":"2015-04-23T06:58:56Z","pushed_at":"2015-04-28T09:01:31Z","git_url":"git://github.com/LKS90/captcha.git","ssh_url":"git@github.com:LKS90/captcha.git","clone_url":"https://github.com/LKS90/captcha.git","svn_url":"https://github.com/LKS90/captcha","homepage":"https://www.drupal.org/project/captcha","size":1015,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"8.x-1.x"}},"base":{"label":"chuva-inc:8.x-1.x","ref":"8.x-1.x","sha":"e4e1a604e06dbe97097afe6cff451a9d7351f591","user":{"login":"chuva-inc","id":116864,"avatar_url":"https://avatars.githubusercontent.com/u/116864?v=3","gravatar_id":"","url":"https://api.github.com/users/chuva-inc","html_url":"https://github.com/chuva-inc","followers_url":"https://api.github.com/users/chuva-inc/followers","following_url":"https://api.github.com/users/chuva-inc/following{/other_user}","gists_url":"https://api.github.com/users/chuva-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/chuva-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuva-inc/subscriptions","organizations_url":"https://api.github.com/users/chuva-inc/orgs","repos_url":"https://api.github.com/users/chuva-inc/repos","events_url":"https://api.github.com/users/chuva-inc/events{/privacy}","received_events_url":"https://api.github.com/users/chuva-inc/received_events","type":"Organization","site_admin":false},"repo":{"id":23548771,"name":"captcha","full_name":"chuva-inc/captcha","owner":{"login":"chuva-inc","id":116864,"avatar_url":"https://avatars.githubusercontent.com/u/116864?v=3","gravatar_id":"","url":"https://api.github.com/users/chuva-inc","html_url":"https://github.com/chuva-inc","followers_url":"https://api.github.com/users/chuva-inc/followers","following_url":"https://api.github.com/users/chuva-inc/following{/other_user}","gists_url":"https://api.github.com/users/chuva-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/chuva-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuva-inc/subscriptions","organizations_url":"https://api.github.com/users/chuva-inc/orgs","repos_url":"https://api.github.com/users/chuva-inc/repos","events_url":"https://api.github.com/users/chuva-inc/events{/privacy}","received_events_url":"https://api.github.com/users/chuva-inc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chuva-inc/captcha","description":"Mirror for Drupal's CAPTCHA modules","fork":false,"url":"https://api.github.com/repos/chuva-inc/captcha","forks_url":"https://api.github.com/repos/chuva-inc/captcha/forks","keys_url":"https://api.github.com/repos/chuva-inc/captcha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chuva-inc/captcha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chuva-inc/captcha/teams","hooks_url":"https://api.github.com/repos/chuva-inc/captcha/hooks","issue_events_url":"https://api.github.com/repos/chuva-inc/captcha/issues/events{/number}","events_url":"https://api.github.com/repos/chuva-inc/captcha/events","assignees_url":"https://api.github.com/repos/chuva-inc/captcha/assignees{/user}","branches_url":"https://api.github.com/repos/chuva-inc/captcha/branches{/branch}","tags_url":"https://api.github.com/repos/chuva-inc/captcha/tags","blobs_url":"https://api.github.com/repos/chuva-inc/captcha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chuva-inc/captcha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chuva-inc/captcha/git/refs{/sha}","trees_url":"https://api.github.com/repos/chuva-inc/captcha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chuva-inc/captcha/statuses/{sha}","languages_url":"https://api.github.com/repos/chuva-inc/captcha/languages","stargazers_url":"https://api.github.com/repos/chuva-inc/captcha/stargazers","contributors_url":"https://api.github.com/repos/chuva-inc/captcha/contributors","subscribers_url":"https://api.github.com/repos/chuva-inc/captcha/subscribers","subscription_url":"https://api.github.com/repos/chuva-inc/captcha/subscription","commits_url":"https://api.github.com/repos/chuva-inc/captcha/commits{/sha}","git_commits_url":"https://api.github.com/repos/chuva-inc/captcha/git/commits{/sha}","comments_url":"https://api.github.com/repos/chuva-inc/captcha/comments{/number}","issue_comment_url":"https://api.github.com/repos/chuva-inc/captcha/issues/comments{/number}","contents_url":"https://api.github.com/repos/chuva-inc/captcha/contents/{+path}","compare_url":"https://api.github.com/repos/chuva-inc/captcha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chuva-inc/captcha/merges","archive_url":"https://api.github.com/repos/chuva-inc/captcha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chuva-inc/captcha/downloads","issues_url":"https://api.github.com/repos/chuva-inc/captcha/issues{/number}","pulls_url":"https://api.github.com/repos/chuva-inc/captcha/pulls{/number}","milestones_url":"https://api.github.com/repos/chuva-inc/captcha/milestones{/number}","notifications_url":"https://api.github.com/repos/chuva-inc/captcha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chuva-inc/captcha/labels{/name}","releases_url":"https://api.github.com/repos/chuva-inc/captcha/releases{/id}","created_at":"2014-09-01T16:31:02Z","updated_at":"2015-04-18T16:25:15Z","pushed_at":"2015-04-28T09:16:02Z","git_url":"git://github.com/chuva-inc/captcha.git","ssh_url":"git@github.com:chuva-inc/captcha.git","clone_url":"https://github.com/chuva-inc/captcha.git","svn_url":"https://github.com/chuva-inc/captcha","homepage":"https://www.drupal.org/project/captcha","size":1242,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":2,"default_branch":"8.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/10"},"html":{"href":"https://github.com/chuva-inc/captcha/pull/10"},"issue":{"href":"https://api.github.com/repos/chuva-inc/captcha/issues/10"},"comments":{"href":"https://api.github.com/repos/chuva-inc/captcha/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chuva-inc/captcha/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/chuva-inc/captcha/statuses/a8abc273ef128fd33714e2c10fefe1a60533440e"}}}}