{"action":"created","comment":{"url":"https://api.github.com/repos/rwahs/installation-profile/pulls/comments/54990955","id":54990955,"diff_hunk":"@@ -0,0 +1,40 @@\n+<?php\n+\n+abstract class AbstractProfileTest extends PHPUnit_Framework_TestCase\n+{\n+\n+    /** @var DOMDocument */\n+    protected $profile;\n+    /** @var  DOMXPath */\n+    protected $xpath;\n+\n+    public function setUp()\n+    {\n+        $basePath = dirname(dirname(__DIR__));\n+        $this->profile = new DOMDocument();\n+        $this->profile->load(\"$basePath/profile/rwahs.xml\");\n+        $this->xpath = new DOMXPath($this->profile);\n+    }\n+\n+    /**\n+     * @param $type\n+     * @param $table\n+     * @return mixed\n+     */\n+    protected function typeExistsForTable($type, $table, $context = null)","path":"tests/profile/AbstractProfileTest.php","position":24,"original_position":24,"commit_id":"503f6783522a926f4e31bdb3175382572e2caba5","original_commit_id":"503f6783522a926f4e31bdb3175382572e2caba5","user":{"login":"kehh","id":12571,"avatar_url":"https://avatars.githubusercontent.com/u/12571?v=3","gravatar_id":"","url":"https://api.github.com/users/kehh","html_url":"https://github.com/kehh","followers_url":"https://api.github.com/users/kehh/followers","following_url":"https://api.github.com/users/kehh/following{/other_user}","gists_url":"https://api.github.com/users/kehh/gists{/gist_id}","starred_url":"https://api.github.com/users/kehh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kehh/subscriptions","organizations_url":"https://api.github.com/users/kehh/orgs","repos_url":"https://api.github.com/users/kehh/repos","events_url":"https://api.github.com/users/kehh/events{/privacy}","received_events_url":"https://api.github.com/users/kehh/received_events","type":"User","site_admin":false},"body":"I needed this a few times, so I just pass the necessary context in. ","created_at":"2016-03-04T05:12:09Z","updated_at":"2016-03-04T05:12:09Z","html_url":"https://github.com/rwahs/installation-profile/pull/21#discussion_r54990955","pull_request_url":"https://api.github.com/repos/rwahs/installation-profile/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/comments/54990955"},"html":{"href":"https://github.com/rwahs/installation-profile/pull/21#discussion_r54990955"},"pull_request":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/rwahs/installation-profile/pulls/21","id":61666849,"html_url":"https://github.com/rwahs/installation-profile/pull/21","diff_url":"https://github.com/rwahs/installation-profile/pull/21.diff","patch_url":"https://github.com/rwahs/installation-profile/pull/21.patch","issue_url":"https://api.github.com/repos/rwahs/installation-profile/issues/21","number":21,"state":"open","locked":false,"title":"Rwahs 51/conservation import and profile tests","user":{"login":"kehh","id":12571,"avatar_url":"https://avatars.githubusercontent.com/u/12571?v=3","gravatar_id":"","url":"https://api.github.com/users/kehh","html_url":"https://github.com/kehh","followers_url":"https://api.github.com/users/kehh/followers","following_url":"https://api.github.com/users/kehh/following{/other_user}","gists_url":"https://api.github.com/users/kehh/gists{/gist_id}","starred_url":"https://api.github.com/users/kehh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kehh/subscriptions","organizations_url":"https://api.github.com/users/kehh/orgs","repos_url":"https://api.github.com/users/kehh/repos","events_url":"https://api.github.com/users/kehh/events{/privacy}","received_events_url":"https://api.github.com/users/kehh/received_events","type":"User","site_admin":false},"body":"* Add relationship type of `conservation` to `ca_objects_x_occurrence` and add it to the UI\r\n* Use `composer` to install requirements\r\n* Run tests using the `composer` installed requirements\r\n* A number of tests for the profile\r\n * Test that types associated with restrictions actually exist\r\n * Test that elements placed on screens actually have restrictions which allow them to be used on that screen","created_at":"2016-03-04T04:46:43Z","updated_at":"2016-03-04T05:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4514ff924c23a871aac6f612a504e1ebfecdfc05","assignee":{"login":"leftclickben","id":94266,"avatar_url":"https://avatars.githubusercontent.com/u/94266?v=3","gravatar_id":"","url":"https://api.github.com/users/leftclickben","html_url":"https://github.com/leftclickben","followers_url":"https://api.github.com/users/leftclickben/followers","following_url":"https://api.github.com/users/leftclickben/following{/other_user}","gists_url":"https://api.github.com/users/leftclickben/gists{/gist_id}","starred_url":"https://api.github.com/users/leftclickben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leftclickben/subscriptions","organizations_url":"https://api.github.com/users/leftclickben/orgs","repos_url":"https://api.github.com/users/leftclickben/repos","events_url":"https://api.github.com/users/leftclickben/events{/privacy}","received_events_url":"https://api.github.com/users/leftclickben/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rwahs/installation-profile/pulls/21/commits","review_comments_url":"https://api.github.com/repos/rwahs/installation-profile/pulls/21/comments","review_comment_url":"https://api.github.com/repos/rwahs/installation-profile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rwahs/installation-profile/issues/21/comments","statuses_url":"https://api.github.com/repos/rwahs/installation-profile/statuses/503f6783522a926f4e31bdb3175382572e2caba5","head":{"label":"kehh:RWAHS-51/conservationImport","ref":"RWAHS-51/conservationImport","sha":"503f6783522a926f4e31bdb3175382572e2caba5","user":{"login":"kehh","id":12571,"avatar_url":"https://avatars.githubusercontent.com/u/12571?v=3","gravatar_id":"","url":"https://api.github.com/users/kehh","html_url":"https://github.com/kehh","followers_url":"https://api.github.com/users/kehh/followers","following_url":"https://api.github.com/users/kehh/following{/other_user}","gists_url":"https://api.github.com/users/kehh/gists{/gist_id}","starred_url":"https://api.github.com/users/kehh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kehh/subscriptions","organizations_url":"https://api.github.com/users/kehh/orgs","repos_url":"https://api.github.com/users/kehh/repos","events_url":"https://api.github.com/users/kehh/events{/privacy}","received_events_url":"https://api.github.com/users/kehh/received_events","type":"User","site_admin":false},"repo":{"id":51062115,"name":"installation-profile","full_name":"kehh/installation-profile","owner":{"login":"kehh","id":12571,"avatar_url":"https://avatars.githubusercontent.com/u/12571?v=3","gravatar_id":"","url":"https://api.github.com/users/kehh","html_url":"https://github.com/kehh","followers_url":"https://api.github.com/users/kehh/followers","following_url":"https://api.github.com/users/kehh/following{/other_user}","gists_url":"https://api.github.com/users/kehh/gists{/gist_id}","starred_url":"https://api.github.com/users/kehh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kehh/subscriptions","organizations_url":"https://api.github.com/users/kehh/orgs","repos_url":"https://api.github.com/users/kehh/repos","events_url":"https://api.github.com/users/kehh/events{/privacy}","received_events_url":"https://api.github.com/users/kehh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kehh/installation-profile","description":"CollectiveAccess Installation Profile for RWAHS","fork":true,"url":"https://api.github.com/repos/kehh/installation-profile","forks_url":"https://api.github.com/repos/kehh/installation-profile/forks","keys_url":"https://api.github.com/repos/kehh/installation-profile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kehh/installation-profile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kehh/installation-profile/teams","hooks_url":"https://api.github.com/repos/kehh/installation-profile/hooks","issue_events_url":"https://api.github.com/repos/kehh/installation-profile/issues/events{/number}","events_url":"https://api.github.com/repos/kehh/installation-profile/events","assignees_url":"https://api.github.com/repos/kehh/installation-profile/assignees{/user}","branches_url":"https://api.github.com/repos/kehh/installation-profile/branches{/branch}","tags_url":"https://api.github.com/repos/kehh/installation-profile/tags","blobs_url":"https://api.github.com/repos/kehh/installation-profile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kehh/installation-profile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kehh/installation-profile/git/refs{/sha}","trees_url":"https://api.github.com/repos/kehh/installation-profile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kehh/installation-profile/statuses/{sha}","languages_url":"https://api.github.com/repos/kehh/installation-profile/languages","stargazers_url":"https://api.github.com/repos/kehh/installation-profile/stargazers","contributors_url":"https://api.github.com/repos/kehh/installation-profile/contributors","subscribers_url":"https://api.github.com/repos/kehh/installation-profile/subscribers","subscription_url":"https://api.github.com/repos/kehh/installation-profile/subscription","commits_url":"https://api.github.com/repos/kehh/installation-profile/commits{/sha}","git_commits_url":"https://api.github.com/repos/kehh/installation-profile/git/commits{/sha}","comments_url":"https://api.github.com/repos/kehh/installation-profile/comments{/number}","issue_comment_url":"https://api.github.com/repos/kehh/installation-profile/issues/comments{/number}","contents_url":"https://api.github.com/repos/kehh/installation-profile/contents/{+path}","compare_url":"https://api.github.com/repos/kehh/installation-profile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kehh/installation-profile/merges","archive_url":"https://api.github.com/repos/kehh/installation-profile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kehh/installation-profile/downloads","issues_url":"https://api.github.com/repos/kehh/installation-profile/issues{/number}","pulls_url":"https://api.github.com/repos/kehh/installation-profile/pulls{/number}","milestones_url":"https://api.github.com/repos/kehh/installation-profile/milestones{/number}","notifications_url":"https://api.github.com/repos/kehh/installation-profile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kehh/installation-profile/labels{/name}","releases_url":"https://api.github.com/repos/kehh/installation-profile/releases{/id}","deployments_url":"https://api.github.com/repos/kehh/installation-profile/deployments","created_at":"2016-02-04T08:23:31Z","updated_at":"2016-02-15T07:05:41Z","pushed_at":"2016-03-04T04:46:18Z","git_url":"git://github.com/kehh/installation-profile.git","ssh_url":"git@github.com:kehh/installation-profile.git","clone_url":"https://github.com/kehh/installation-profile.git","svn_url":"https://github.com/kehh/installation-profile","homepage":null,"size":339,"stargazers_count":0,"watchers_count":0,"language":"XSLT","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":"master"}},"base":{"label":"rwahs:master","ref":"master","sha":"1237bd9e468c28a482220875b7c6bf411c282f6f","user":{"login":"rwahs","id":16794641,"avatar_url":"https://avatars.githubusercontent.com/u/16794641?v=3","gravatar_id":"","url":"https://api.github.com/users/rwahs","html_url":"https://github.com/rwahs","followers_url":"https://api.github.com/users/rwahs/followers","following_url":"https://api.github.com/users/rwahs/following{/other_user}","gists_url":"https://api.github.com/users/rwahs/gists{/gist_id}","starred_url":"https://api.github.com/users/rwahs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwahs/subscriptions","organizations_url":"https://api.github.com/users/rwahs/orgs","repos_url":"https://api.github.com/users/rwahs/repos","events_url":"https://api.github.com/users/rwahs/events{/privacy}","received_events_url":"https://api.github.com/users/rwahs/received_events","type":"Organization","site_admin":false},"repo":{"id":51062016,"name":"installation-profile","full_name":"rwahs/installation-profile","owner":{"login":"rwahs","id":16794641,"avatar_url":"https://avatars.githubusercontent.com/u/16794641?v=3","gravatar_id":"","url":"https://api.github.com/users/rwahs","html_url":"https://github.com/rwahs","followers_url":"https://api.github.com/users/rwahs/followers","following_url":"https://api.github.com/users/rwahs/following{/other_user}","gists_url":"https://api.github.com/users/rwahs/gists{/gist_id}","starred_url":"https://api.github.com/users/rwahs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwahs/subscriptions","organizations_url":"https://api.github.com/users/rwahs/orgs","repos_url":"https://api.github.com/users/rwahs/repos","events_url":"https://api.github.com/users/rwahs/events{/privacy}","received_events_url":"https://api.github.com/users/rwahs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rwahs/installation-profile","description":"CollectiveAccess Installation Profile for RWAHS","fork":false,"url":"https://api.github.com/repos/rwahs/installation-profile","forks_url":"https://api.github.com/repos/rwahs/installation-profile/forks","keys_url":"https://api.github.com/repos/rwahs/installation-profile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwahs/installation-profile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwahs/installation-profile/teams","hooks_url":"https://api.github.com/repos/rwahs/installation-profile/hooks","issue_events_url":"https://api.github.com/repos/rwahs/installation-profile/issues/events{/number}","events_url":"https://api.github.com/repos/rwahs/installation-profile/events","assignees_url":"https://api.github.com/repos/rwahs/installation-profile/assignees{/user}","branches_url":"https://api.github.com/repos/rwahs/installation-profile/branches{/branch}","tags_url":"https://api.github.com/repos/rwahs/installation-profile/tags","blobs_url":"https://api.github.com/repos/rwahs/installation-profile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwahs/installation-profile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwahs/installation-profile/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwahs/installation-profile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwahs/installation-profile/statuses/{sha}","languages_url":"https://api.github.com/repos/rwahs/installation-profile/languages","stargazers_url":"https://api.github.com/repos/rwahs/installation-profile/stargazers","contributors_url":"https://api.github.com/repos/rwahs/installation-profile/contributors","subscribers_url":"https://api.github.com/repos/rwahs/installation-profile/subscribers","subscription_url":"https://api.github.com/repos/rwahs/installation-profile/subscription","commits_url":"https://api.github.com/repos/rwahs/installation-profile/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwahs/installation-profile/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwahs/installation-profile/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwahs/installation-profile/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwahs/installation-profile/contents/{+path}","compare_url":"https://api.github.com/repos/rwahs/installation-profile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwahs/installation-profile/merges","archive_url":"https://api.github.com/repos/rwahs/installation-profile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwahs/installation-profile/downloads","issues_url":"https://api.github.com/repos/rwahs/installation-profile/issues{/number}","pulls_url":"https://api.github.com/repos/rwahs/installation-profile/pulls{/number}","milestones_url":"https://api.github.com/repos/rwahs/installation-profile/milestones{/number}","notifications_url":"https://api.github.com/repos/rwahs/installation-profile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwahs/installation-profile/labels{/name}","releases_url":"https://api.github.com/repos/rwahs/installation-profile/releases{/id}","deployments_url":"https://api.github.com/repos/rwahs/installation-profile/deployments","created_at":"2016-02-04T08:21:25Z","updated_at":"2016-03-03T03:23:36Z","pushed_at":"2016-03-04T04:46:43Z","git_url":"git://github.com/rwahs/installation-profile.git","ssh_url":"git@github.com:rwahs/installation-profile.git","clone_url":"https://github.com/rwahs/installation-profile.git","svn_url":"https://github.com/rwahs/installation-profile","homepage":null,"size":245,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/21"},"html":{"href":"https://github.com/rwahs/installation-profile/pull/21"},"issue":{"href":"https://api.github.com/repos/rwahs/installation-profile/issues/21"},"comments":{"href":"https://api.github.com/repos/rwahs/installation-profile/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rwahs/installation-profile/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/rwahs/installation-profile/statuses/503f6783522a926f4e31bdb3175382572e2caba5"}}}}