{"action":"created","comment":{"url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/comments/27176360","id":27176360,"diff_hunk":"@@ -118,24 +120,93 @@ public function getToArrayData()\n             ],\n         ];\n \n-        $out[] = [\n-            $aggregation,\n-            $result,\n+        $this->assertEquals($result, $aggregation->toArray());\n+    }\n+\n+    /**\n+     * Tests getType method.\n+     */\n+    public function testRangeAggregationGetType()\n+    {\n+        $agg = new RangeAggregation('foo');\n+        $result = $agg->getType();\n+        $this->assertEquals('range', $result);\n+    }\n+\n+    /**\n+     * Data provider for testRangeAggregationRemoveRangeByKey(), testRangeAggregationRemoveRange().\n+     *\n+     * @return array\n+     */\n+    public function testRangeAggregationDataProvider()","path":"Tests/Unit/DSL/Aggregation/RangeAggregationTest.php","position":80,"original_position":80,"commit_id":"7458e9091007a012c2cb4906fe25b483bea8bb03","original_commit_id":"7458e9091007a012c2cb4906fe25b483bea8bb03","user":{"login":"martiis","id":4210866,"avatar_url":"https://avatars.githubusercontent.com/u/4210866?v=3","gravatar_id":"","url":"https://api.github.com/users/martiis","html_url":"https://github.com/martiis","followers_url":"https://api.github.com/users/martiis/followers","following_url":"https://api.github.com/users/martiis/following{/other_user}","gists_url":"https://api.github.com/users/martiis/gists{/gist_id}","starred_url":"https://api.github.com/users/martiis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martiis/subscriptions","organizations_url":"https://api.github.com/users/martiis/orgs","repos_url":"https://api.github.com/users/martiis/repos","events_url":"https://api.github.com/users/martiis/events{/privacy}","received_events_url":"https://api.github.com/users/martiis/received_events","type":"User","site_admin":false},"body":"Data providers should not only give expected results, but also data which you would give to objects/process and then check if the expected data matches with returned from object/process.","created_at":"2015-03-25T23:22:19Z","updated_at":"2015-03-25T23:22:19Z","html_url":"https://github.com/ongr-io/ElasticsearchBundle/pull/280#discussion_r27176360","pull_request_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280","_links":{"self":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/comments/27176360"},"html":{"href":"https://github.com/ongr-io/ElasticsearchBundle/pull/280#discussion_r27176360"},"pull_request":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280"}}},"pull_request":{"url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280","id":31505937,"html_url":"https://github.com/ongr-io/ElasticsearchBundle/pull/280","diff_url":"https://github.com/ongr-io/ElasticsearchBundle/pull/280.diff","patch_url":"https://github.com/ongr-io/ElasticsearchBundle/pull/280.patch","issue_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/280","number":280,"state":"open","locked":false,"title":"Patch dsl unit tests","user":{"login":"mansimas","id":7585542,"avatar_url":"https://avatars.githubusercontent.com/u/7585542?v=3","gravatar_id":"","url":"https://api.github.com/users/mansimas","html_url":"https://github.com/mansimas","followers_url":"https://api.github.com/users/mansimas/followers","following_url":"https://api.github.com/users/mansimas/following{/other_user}","gists_url":"https://api.github.com/users/mansimas/gists{/gist_id}","starred_url":"https://api.github.com/users/mansimas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansimas/subscriptions","organizations_url":"https://api.github.com/users/mansimas/orgs","repos_url":"https://api.github.com/users/mansimas/repos","events_url":"https://api.github.com/users/mansimas/events{/privacy}","received_events_url":"https://api.github.com/users/mansimas/received_events","type":"User","site_admin":false},"body":"Added aggregation tests. ","created_at":"2015-03-19T09:17:25Z","updated_at":"2015-03-25T23:22:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab09ae152eb2239bf78b402e71aada19985bb7ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280/commits","review_comments_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280/comments","review_comment_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/280/comments","statuses_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/statuses/7458e9091007a012c2cb4906fe25b483bea8bb03","head":{"label":"mansimas:patch-dsl-unit-tests","ref":"patch-dsl-unit-tests","sha":"7458e9091007a012c2cb4906fe25b483bea8bb03","user":{"login":"mansimas","id":7585542,"avatar_url":"https://avatars.githubusercontent.com/u/7585542?v=3","gravatar_id":"","url":"https://api.github.com/users/mansimas","html_url":"https://github.com/mansimas","followers_url":"https://api.github.com/users/mansimas/followers","following_url":"https://api.github.com/users/mansimas/following{/other_user}","gists_url":"https://api.github.com/users/mansimas/gists{/gist_id}","starred_url":"https://api.github.com/users/mansimas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansimas/subscriptions","organizations_url":"https://api.github.com/users/mansimas/orgs","repos_url":"https://api.github.com/users/mansimas/repos","events_url":"https://api.github.com/users/mansimas/events{/privacy}","received_events_url":"https://api.github.com/users/mansimas/received_events","type":"User","site_admin":false},"repo":{"id":32386343,"name":"ElasticsearchBundle","full_name":"mansimas/ElasticsearchBundle","owner":{"login":"mansimas","id":7585542,"avatar_url":"https://avatars.githubusercontent.com/u/7585542?v=3","gravatar_id":"","url":"https://api.github.com/users/mansimas","html_url":"https://github.com/mansimas","followers_url":"https://api.github.com/users/mansimas/followers","following_url":"https://api.github.com/users/mansimas/following{/other_user}","gists_url":"https://api.github.com/users/mansimas/gists{/gist_id}","starred_url":"https://api.github.com/users/mansimas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansimas/subscriptions","organizations_url":"https://api.github.com/users/mansimas/orgs","repos_url":"https://api.github.com/users/mansimas/repos","events_url":"https://api.github.com/users/mansimas/events{/privacy}","received_events_url":"https://api.github.com/users/mansimas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mansimas/ElasticsearchBundle","description":"Symfony2 bundle for elasticsearch","fork":true,"url":"https://api.github.com/repos/mansimas/ElasticsearchBundle","forks_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/forks","keys_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/teams","hooks_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/hooks","issue_events_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/events","assignees_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/tags","blobs_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/languages","stargazers_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/stargazers","contributors_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/contributors","subscribers_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/subscribers","subscription_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/subscription","commits_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/merges","archive_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/downloads","issues_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/mansimas/ElasticsearchBundle/releases{/id}","created_at":"2015-03-17T10:17:45Z","updated_at":"2015-03-20T10:15:53Z","pushed_at":"2015-03-25T12:43:21Z","git_url":"git://github.com/mansimas/ElasticsearchBundle.git","ssh_url":"git@github.com:mansimas/ElasticsearchBundle.git","clone_url":"https://github.com/mansimas/ElasticsearchBundle.git","svn_url":"https://github.com/mansimas/ElasticsearchBundle","homepage":"","size":1011,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ongr-io:master","ref":"master","sha":"e8233ea05ed508b1bcc3094610b167b835f166e9","user":{"login":"ongr-io","id":8971056,"avatar_url":"https://avatars.githubusercontent.com/u/8971056?v=3","gravatar_id":"","url":"https://api.github.com/users/ongr-io","html_url":"https://github.com/ongr-io","followers_url":"https://api.github.com/users/ongr-io/followers","following_url":"https://api.github.com/users/ongr-io/following{/other_user}","gists_url":"https://api.github.com/users/ongr-io/gists{/gist_id}","starred_url":"https://api.github.com/users/ongr-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ongr-io/subscriptions","organizations_url":"https://api.github.com/users/ongr-io/orgs","repos_url":"https://api.github.com/users/ongr-io/repos","events_url":"https://api.github.com/users/ongr-io/events{/privacy}","received_events_url":"https://api.github.com/users/ongr-io/received_events","type":"Organization","site_admin":false},"repo":{"id":25922479,"name":"ElasticsearchBundle","full_name":"ongr-io/ElasticsearchBundle","owner":{"login":"ongr-io","id":8971056,"avatar_url":"https://avatars.githubusercontent.com/u/8971056?v=3","gravatar_id":"","url":"https://api.github.com/users/ongr-io","html_url":"https://github.com/ongr-io","followers_url":"https://api.github.com/users/ongr-io/followers","following_url":"https://api.github.com/users/ongr-io/following{/other_user}","gists_url":"https://api.github.com/users/ongr-io/gists{/gist_id}","starred_url":"https://api.github.com/users/ongr-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ongr-io/subscriptions","organizations_url":"https://api.github.com/users/ongr-io/orgs","repos_url":"https://api.github.com/users/ongr-io/repos","events_url":"https://api.github.com/users/ongr-io/events{/privacy}","received_events_url":"https://api.github.com/users/ongr-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ongr-io/ElasticsearchBundle","description":"Symfony2 bundle for elasticsearch","fork":false,"url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle","forks_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/forks","keys_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/teams","hooks_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/hooks","issue_events_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/events","assignees_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/tags","blobs_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/languages","stargazers_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/stargazers","contributors_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/contributors","subscribers_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/subscribers","subscription_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/subscription","commits_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/merges","archive_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/downloads","issues_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/releases{/id}","created_at":"2014-10-29T13:37:30Z","updated_at":"2015-03-25T22:58:19Z","pushed_at":"2015-03-25T22:58:19Z","git_url":"git://github.com/ongr-io/ElasticsearchBundle.git","ssh_url":"git@github.com:ongr-io/ElasticsearchBundle.git","clone_url":"https://github.com/ongr-io/ElasticsearchBundle.git","svn_url":"https://github.com/ongr-io/ElasticsearchBundle","homepage":"","size":4047,"stargazers_count":73,"watchers_count":73,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":44,"forks":29,"open_issues":44,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280"},"html":{"href":"https://github.com/ongr-io/ElasticsearchBundle/pull/280"},"issue":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/280"},"comments":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/ongr-io/ElasticsearchBundle/statuses/7458e9091007a012c2cb4906fe25b483bea8bb03"}}}}