{"action":"created","comment":{"url":"https://api.github.com/repos/neontribe/ARCVService/pulls/comments/224096500","pull_request_review_id":163381192,"id":224096500,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDA5NjUwMA==","diff_hunk":"@@ -239,6 +239,59 @@ public function testVoucherManageRouteGate()\n         }\n     }\n \n+    public function testVoucherManagerUpdateGate()\n+    {\n+        // Create a random registration with our centre.\n+        $registration = factory(Registration::class)->create([\n+            \"centre_id\" => $this->centre->id,\n+        ]);\n+\n+        $route = URL::route('store.registration.voucher-manager', [ 'registration' => $registration->id ]);\n+        $put_route = URL::route('store.registration.vouchers', [ 'registration' => $registration->id ]);\n+\n+        // I can call a PUT on a page as a user\n+        Auth::logout();\n+        $this->actingAs($this->centreUser, 'store')\n+            ->visit($route)\n+            ->call(\n+                'PUT',\n+                $put_route,\n+                [] // should erase the vouchers.\n+            );\n+        $this->assertResponseStatus(302);\n+\n+        // I can call put on a page as a neighbor\n+        Auth::logout();\n+        $this->actingAs($this->neighborUser, 'store')","path":"tests/Unit/Routes/StoreRoutesTest.php","position":27,"original_position":27,"commit_id":"5274735524ac213cb3439616818e775b7a80f164","original_commit_id":"5274735524ac213cb3439616818e775b7a80f164","user":{"login":"charlesstrange2","id":25037036,"node_id":"MDQ6VXNlcjI1MDM3MDM2","avatar_url":"https://avatars3.githubusercontent.com/u/25037036?v=4","gravatar_id":"","url":"https://api.github.com/users/charlesstrange2","html_url":"https://github.com/charlesstrange2","followers_url":"https://api.github.com/users/charlesstrange2/followers","following_url":"https://api.github.com/users/charlesstrange2/following{/other_user}","gists_url":"https://api.github.com/users/charlesstrange2/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesstrange2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesstrange2/subscriptions","organizations_url":"https://api.github.com/users/charlesstrange2/orgs","repos_url":"https://api.github.com/users/charlesstrange2/repos","events_url":"https://api.github.com/users/charlesstrange2/events{/privacy}","received_events_url":"https://api.github.com/users/charlesstrange2/received_events","type":"User","site_admin":false},"body":"Yep!","created_at":"2018-10-10T14:19:52Z","updated_at":"2018-10-10T14:19:53Z","html_url":"https://github.com/neontribe/ARCVService/pull/174#discussion_r224096500","pull_request_url":"https://api.github.com/repos/neontribe/ARCVService/pulls/174","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/comments/224096500"},"html":{"href":"https://github.com/neontribe/ARCVService/pull/174#discussion_r224096500"},"pull_request":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/174"}},"in_reply_to_id":224094623},"pull_request":{"url":"https://api.github.com/repos/neontribe/ARCVService/pulls/174","id":221799650,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNzk5NjUw","html_url":"https://github.com/neontribe/ARCVService/pull/174","diff_url":"https://github.com/neontribe/ARCVService/pull/174.diff","patch_url":"https://github.com/neontribe/ARCVService/pull/174.patch","issue_url":"https://api.github.com/repos/neontribe/ARCVService/issues/174","number":174,"state":"open","locked":false,"title":"1.3/1044 creaate a voucher collection page add put route","user":{"login":"charlesstrange2","id":25037036,"node_id":"MDQ6VXNlcjI1MDM3MDM2","avatar_url":"https://avatars3.githubusercontent.com/u/25037036?v=4","gravatar_id":"","url":"https://api.github.com/users/charlesstrange2","html_url":"https://github.com/charlesstrange2","followers_url":"https://api.github.com/users/charlesstrange2/followers","following_url":"https://api.github.com/users/charlesstrange2/following{/other_user}","gists_url":"https://api.github.com/users/charlesstrange2/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesstrange2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesstrange2/subscriptions","organizations_url":"https://api.github.com/users/charlesstrange2/orgs","repos_url":"https://api.github.com/users/charlesstrange2/repos","events_url":"https://api.github.com/users/charlesstrange2/events{/privacy}","received_events_url":"https://api.github.com/users/charlesstrange2/received_events","type":"User","site_admin":false},"body":"@katjam this a) fixes my (redundant) sync code and b) adds the route and a test.","created_at":"2018-10-10T13:56:19Z","updated_at":"2018-10-10T14:19:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef1b285f4c5914861e93c74c59920827af10101a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/neontribe/ARCVService/pulls/174/commits","review_comments_url":"https://api.github.com/repos/neontribe/ARCVService/pulls/174/comments","review_comment_url":"https://api.github.com/repos/neontribe/ARCVService/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neontribe/ARCVService/issues/174/comments","statuses_url":"https://api.github.com/repos/neontribe/ARCVService/statuses/5274735524ac213cb3439616818e775b7a80f164","head":{"label":"neontribe:1.3/1044-creaate-a-voucher-collection-page-add-put-route","ref":"1.3/1044-creaate-a-voucher-collection-page-add-put-route","sha":"5274735524ac213cb3439616818e775b7a80f164","user":{"login":"neontribe","id":814085,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"repo":{"id":88754893,"node_id":"MDEwOlJlcG9zaXRvcnk4ODc1NDg5Mw==","name":"ARCVService","full_name":"neontribe/ARCVService","private":false,"owner":{"login":"neontribe","id":814085,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/neontribe/ARCVService","description":"ARC Voucher Service/API","fork":false,"url":"https://api.github.com/repos/neontribe/ARCVService","forks_url":"https://api.github.com/repos/neontribe/ARCVService/forks","keys_url":"https://api.github.com/repos/neontribe/ARCVService/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neontribe/ARCVService/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neontribe/ARCVService/teams","hooks_url":"https://api.github.com/repos/neontribe/ARCVService/hooks","issue_events_url":"https://api.github.com/repos/neontribe/ARCVService/issues/events{/number}","events_url":"https://api.github.com/repos/neontribe/ARCVService/events","assignees_url":"https://api.github.com/repos/neontribe/ARCVService/assignees{/user}","branches_url":"https://api.github.com/repos/neontribe/ARCVService/branches{/branch}","tags_url":"https://api.github.com/repos/neontribe/ARCVService/tags","blobs_url":"https://api.github.com/repos/neontribe/ARCVService/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neontribe/ARCVService/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neontribe/ARCVService/git/refs{/sha}","trees_url":"https://api.github.com/repos/neontribe/ARCVService/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neontribe/ARCVService/statuses/{sha}","languages_url":"https://api.github.com/repos/neontribe/ARCVService/languages","stargazers_url":"https://api.github.com/repos/neontribe/ARCVService/stargazers","contributors_url":"https://api.github.com/repos/neontribe/ARCVService/contributors","subscribers_url":"https://api.github.com/repos/neontribe/ARCVService/subscribers","subscription_url":"https://api.github.com/repos/neontribe/ARCVService/subscription","commits_url":"https://api.github.com/repos/neontribe/ARCVService/commits{/sha}","git_commits_url":"https://api.github.com/repos/neontribe/ARCVService/git/commits{/sha}","comments_url":"https://api.github.com/repos/neontribe/ARCVService/comments{/number}","issue_comment_url":"https://api.github.com/repos/neontribe/ARCVService/issues/comments{/number}","contents_url":"https://api.github.com/repos/neontribe/ARCVService/contents/{+path}","compare_url":"https://api.github.com/repos/neontribe/ARCVService/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neontribe/ARCVService/merges","archive_url":"https://api.github.com/repos/neontribe/ARCVService/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neontribe/ARCVService/downloads","issues_url":"https://api.github.com/repos/neontribe/ARCVService/issues{/number}","pulls_url":"https://api.github.com/repos/neontribe/ARCVService/pulls{/number}","milestones_url":"https://api.github.com/repos/neontribe/ARCVService/milestones{/number}","notifications_url":"https://api.github.com/repos/neontribe/ARCVService/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neontribe/ARCVService/labels{/name}","releases_url":"https://api.github.com/repos/neontribe/ARCVService/releases{/id}","deployments_url":"https://api.github.com/repos/neontribe/ARCVService/deployments","created_at":"2017-04-19T14:31:12Z","updated_at":"2018-10-10T09:24:45Z","pushed_at":"2018-10-10T13:56:20Z","git_url":"git://github.com/neontribe/ARCVService.git","ssh_url":"git@github.com:neontribe/ARCVService.git","clone_url":"https://github.com/neontribe/ARCVService.git","svn_url":"https://github.com/neontribe/ARCVService","homepage":null,"size":3185,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"1.3/release"}},"base":{"label":"neontribe:1.3/release","ref":"1.3/release","sha":"52c260698aaaea82500e6a9b052cae4c2640c77c","user":{"login":"neontribe","id":814085,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"repo":{"id":88754893,"node_id":"MDEwOlJlcG9zaXRvcnk4ODc1NDg5Mw==","name":"ARCVService","full_name":"neontribe/ARCVService","private":false,"owner":{"login":"neontribe","id":814085,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxNDA4NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/neontribe/ARCVService","description":"ARC Voucher Service/API","fork":false,"url":"https://api.github.com/repos/neontribe/ARCVService","forks_url":"https://api.github.com/repos/neontribe/ARCVService/forks","keys_url":"https://api.github.com/repos/neontribe/ARCVService/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neontribe/ARCVService/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neontribe/ARCVService/teams","hooks_url":"https://api.github.com/repos/neontribe/ARCVService/hooks","issue_events_url":"https://api.github.com/repos/neontribe/ARCVService/issues/events{/number}","events_url":"https://api.github.com/repos/neontribe/ARCVService/events","assignees_url":"https://api.github.com/repos/neontribe/ARCVService/assignees{/user}","branches_url":"https://api.github.com/repos/neontribe/ARCVService/branches{/branch}","tags_url":"https://api.github.com/repos/neontribe/ARCVService/tags","blobs_url":"https://api.github.com/repos/neontribe/ARCVService/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neontribe/ARCVService/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neontribe/ARCVService/git/refs{/sha}","trees_url":"https://api.github.com/repos/neontribe/ARCVService/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neontribe/ARCVService/statuses/{sha}","languages_url":"https://api.github.com/repos/neontribe/ARCVService/languages","stargazers_url":"https://api.github.com/repos/neontribe/ARCVService/stargazers","contributors_url":"https://api.github.com/repos/neontribe/ARCVService/contributors","subscribers_url":"https://api.github.com/repos/neontribe/ARCVService/subscribers","subscription_url":"https://api.github.com/repos/neontribe/ARCVService/subscription","commits_url":"https://api.github.com/repos/neontribe/ARCVService/commits{/sha}","git_commits_url":"https://api.github.com/repos/neontribe/ARCVService/git/commits{/sha}","comments_url":"https://api.github.com/repos/neontribe/ARCVService/comments{/number}","issue_comment_url":"https://api.github.com/repos/neontribe/ARCVService/issues/comments{/number}","contents_url":"https://api.github.com/repos/neontribe/ARCVService/contents/{+path}","compare_url":"https://api.github.com/repos/neontribe/ARCVService/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neontribe/ARCVService/merges","archive_url":"https://api.github.com/repos/neontribe/ARCVService/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neontribe/ARCVService/downloads","issues_url":"https://api.github.com/repos/neontribe/ARCVService/issues{/number}","pulls_url":"https://api.github.com/repos/neontribe/ARCVService/pulls{/number}","milestones_url":"https://api.github.com/repos/neontribe/ARCVService/milestones{/number}","notifications_url":"https://api.github.com/repos/neontribe/ARCVService/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neontribe/ARCVService/labels{/name}","releases_url":"https://api.github.com/repos/neontribe/ARCVService/releases{/id}","deployments_url":"https://api.github.com/repos/neontribe/ARCVService/deployments","created_at":"2017-04-19T14:31:12Z","updated_at":"2018-10-10T09:24:45Z","pushed_at":"2018-10-10T13:56:20Z","git_url":"git://github.com/neontribe/ARCVService.git","ssh_url":"git@github.com:neontribe/ARCVService.git","clone_url":"https://github.com/neontribe/ARCVService.git","svn_url":"https://github.com/neontribe/ARCVService","homepage":null,"size":3185,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"1.3/release"}},"_links":{"self":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/174"},"html":{"href":"https://github.com/neontribe/ARCVService/pull/174"},"issue":{"href":"https://api.github.com/repos/neontribe/ARCVService/issues/174"},"comments":{"href":"https://api.github.com/repos/neontribe/ARCVService/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neontribe/ARCVService/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/neontribe/ARCVService/statuses/5274735524ac213cb3439616818e775b7a80f164"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"charlesstrange2"}}