{"action":"created","comment":{"url":"https://api.github.com/repos/sumocoders/Framework/pulls/comments/45340540","id":45340540,"diff_hunk":"@@ -0,0 +1,136 @@\n+<?php\n+\n+namespace SumoCoders\\FrameworkCoreBundle\\Tests\\Mail;\n+\n+use SumoCoders\\FrameworkCoreBundle\\Mail\\MessageFactory;\n+\n+class MessageFactoryTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @var MessageFactory\n+     */\n+    protected $messageFactory;\n+\n+    protected function setUp()\n+    {\n+        $temp = tempnam(sys_get_temp_dir(), 'message_factory_test');\n+        $this->messageFactory = new MessageFactory(\n+            $this->getTemplating(),\n+            'mails/default_email.html.twig',\n+            $temp\n+        );\n+    }\n+\n+    /**\n+     * @inherit\n+     */\n+    protected function tearDown()\n+    {\n+        $this->messageFactory = null;\n+    }\n+\n+    /**\n+     * @return \\PHPUnit_Framework_MockObject_MockObject\n+     */\n+    protected function getTemplating()\n+    {\n+        $templating = $this->getMock('\\Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface');\n+        $templating\n+            ->method('render')\n+            ->willReturn('<html><head></head><body><p>And I, le content</p></body></html>');\n+\n+        return $templating;\n+    }\n+\n+    public function testIfTheDefaultsAreEmptyWhenNotSet()\n+    {\n+        /** @var \\Swift_Message $message */","path":"src/SumoCoders/FrameworkCoreBundle/Tests/Mail/MessageFactoryTest.php","position":null,"original_position":47,"commit_id":"d4a9e3758b5e86ab6ddabff340687f8385c90b1f","original_commit_id":"37d37b0364c4450cae84848a0d60edc7cda7b682","user":{"login":"tijsverkoyen","id":250042,"avatar_url":"https://avatars.githubusercontent.com/u/250042?v=3","gravatar_id":"","url":"https://api.github.com/users/tijsverkoyen","html_url":"https://github.com/tijsverkoyen","followers_url":"https://api.github.com/users/tijsverkoyen/followers","following_url":"https://api.github.com/users/tijsverkoyen/following{/other_user}","gists_url":"https://api.github.com/users/tijsverkoyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tijsverkoyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijsverkoyen/subscriptions","organizations_url":"https://api.github.com/users/tijsverkoyen/orgs","repos_url":"https://api.github.com/users/tijsverkoyen/repos","events_url":"https://api.github.com/users/tijsverkoyen/events{/privacy}","received_events_url":"https://api.github.com/users/tijsverkoyen/received_events","type":"User","site_admin":false},"body":"fixed in d4a9e3758b5e86ab6ddabff340687f8385c90b1f, was used while I was debugging stuff.","created_at":"2015-11-19T13:37:43Z","updated_at":"2015-11-19T13:37:43Z","html_url":"https://github.com/sumocoders/Framework/pull/111#discussion_r45340540","pull_request_url":"https://api.github.com/repos/sumocoders/Framework/pulls/111","_links":{"self":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/comments/45340540"},"html":{"href":"https://github.com/sumocoders/Framework/pull/111#discussion_r45340540"},"pull_request":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/sumocoders/Framework/pulls/111","id":51219285,"html_url":"https://github.com/sumocoders/Framework/pull/111","diff_url":"https://github.com/sumocoders/Framework/pull/111.diff","patch_url":"https://github.com/sumocoders/Framework/pull/111.patch","issue_url":"https://api.github.com/repos/sumocoders/Framework/issues/111","number":111,"state":"open","locked":false,"title":"Default mail template","user":{"login":"tijsverkoyen","id":250042,"avatar_url":"https://avatars.githubusercontent.com/u/250042?v=3","gravatar_id":"","url":"https://api.github.com/users/tijsverkoyen","html_url":"https://github.com/tijsverkoyen","followers_url":"https://api.github.com/users/tijsverkoyen/followers","following_url":"https://api.github.com/users/tijsverkoyen/following{/other_user}","gists_url":"https://api.github.com/users/tijsverkoyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tijsverkoyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijsverkoyen/subscriptions","organizations_url":"https://api.github.com/users/tijsverkoyen/orgs","repos_url":"https://api.github.com/users/tijsverkoyen/repos","events_url":"https://api.github.com/users/tijsverkoyen/events{/privacy}","received_events_url":"https://api.github.com/users/tijsverkoyen/received_events","type":"User","site_admin":false},"body":"This will fix #82 \r\nIf this is merged I will add an example into the ExampleBundle","created_at":"2015-11-19T13:03:13Z","updated_at":"2015-11-19T13:37:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62c639985ea730ac9cca5c6a3827b0473cf2ad93","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sumocoders/Framework/pulls/111/commits","review_comments_url":"https://api.github.com/repos/sumocoders/Framework/pulls/111/comments","review_comment_url":"https://api.github.com/repos/sumocoders/Framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sumocoders/Framework/issues/111/comments","statuses_url":"https://api.github.com/repos/sumocoders/Framework/statuses/d4a9e3758b5e86ab6ddabff340687f8385c90b1f","head":{"label":"sumocoders:82-default-mail-template","ref":"82-default-mail-template","sha":"d4a9e3758b5e86ab6ddabff340687f8385c90b1f","user":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"repo":{"id":29462085,"name":"Framework","full_name":"sumocoders/Framework","owner":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sumocoders/Framework","description":"The Symfony version of the SumoCoders framework.","fork":false,"url":"https://api.github.com/repos/sumocoders/Framework","forks_url":"https://api.github.com/repos/sumocoders/Framework/forks","keys_url":"https://api.github.com/repos/sumocoders/Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumocoders/Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumocoders/Framework/teams","hooks_url":"https://api.github.com/repos/sumocoders/Framework/hooks","issue_events_url":"https://api.github.com/repos/sumocoders/Framework/issues/events{/number}","events_url":"https://api.github.com/repos/sumocoders/Framework/events","assignees_url":"https://api.github.com/repos/sumocoders/Framework/assignees{/user}","branches_url":"https://api.github.com/repos/sumocoders/Framework/branches{/branch}","tags_url":"https://api.github.com/repos/sumocoders/Framework/tags","blobs_url":"https://api.github.com/repos/sumocoders/Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumocoders/Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumocoders/Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumocoders/Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumocoders/Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/sumocoders/Framework/languages","stargazers_url":"https://api.github.com/repos/sumocoders/Framework/stargazers","contributors_url":"https://api.github.com/repos/sumocoders/Framework/contributors","subscribers_url":"https://api.github.com/repos/sumocoders/Framework/subscribers","subscription_url":"https://api.github.com/repos/sumocoders/Framework/subscription","commits_url":"https://api.github.com/repos/sumocoders/Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumocoders/Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumocoders/Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumocoders/Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumocoders/Framework/contents/{+path}","compare_url":"https://api.github.com/repos/sumocoders/Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumocoders/Framework/merges","archive_url":"https://api.github.com/repos/sumocoders/Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumocoders/Framework/downloads","issues_url":"https://api.github.com/repos/sumocoders/Framework/issues{/number}","pulls_url":"https://api.github.com/repos/sumocoders/Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/sumocoders/Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/sumocoders/Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumocoders/Framework/labels{/name}","releases_url":"https://api.github.com/repos/sumocoders/Framework/releases{/id}","created_at":"2015-01-19T08:57:15Z","updated_at":"2015-09-24T12:28:19Z","pushed_at":"2015-11-19T13:34:56Z","git_url":"git://github.com/sumocoders/Framework.git","ssh_url":"git@github.com:sumocoders/Framework.git","clone_url":"https://github.com/sumocoders/Framework.git","svn_url":"https://github.com/sumocoders/Framework","homepage":null,"size":2856,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"sumocoders:master","ref":"master","sha":"93ffd31185b9a0133cd7a55fb4076dec24079b22","user":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"repo":{"id":29462085,"name":"Framework","full_name":"sumocoders/Framework","owner":{"login":"sumocoders","id":359178,"avatar_url":"https://avatars.githubusercontent.com/u/359178?v=3","gravatar_id":"","url":"https://api.github.com/users/sumocoders","html_url":"https://github.com/sumocoders","followers_url":"https://api.github.com/users/sumocoders/followers","following_url":"https://api.github.com/users/sumocoders/following{/other_user}","gists_url":"https://api.github.com/users/sumocoders/gists{/gist_id}","starred_url":"https://api.github.com/users/sumocoders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumocoders/subscriptions","organizations_url":"https://api.github.com/users/sumocoders/orgs","repos_url":"https://api.github.com/users/sumocoders/repos","events_url":"https://api.github.com/users/sumocoders/events{/privacy}","received_events_url":"https://api.github.com/users/sumocoders/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sumocoders/Framework","description":"The Symfony version of the SumoCoders framework.","fork":false,"url":"https://api.github.com/repos/sumocoders/Framework","forks_url":"https://api.github.com/repos/sumocoders/Framework/forks","keys_url":"https://api.github.com/repos/sumocoders/Framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumocoders/Framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumocoders/Framework/teams","hooks_url":"https://api.github.com/repos/sumocoders/Framework/hooks","issue_events_url":"https://api.github.com/repos/sumocoders/Framework/issues/events{/number}","events_url":"https://api.github.com/repos/sumocoders/Framework/events","assignees_url":"https://api.github.com/repos/sumocoders/Framework/assignees{/user}","branches_url":"https://api.github.com/repos/sumocoders/Framework/branches{/branch}","tags_url":"https://api.github.com/repos/sumocoders/Framework/tags","blobs_url":"https://api.github.com/repos/sumocoders/Framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumocoders/Framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumocoders/Framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumocoders/Framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumocoders/Framework/statuses/{sha}","languages_url":"https://api.github.com/repos/sumocoders/Framework/languages","stargazers_url":"https://api.github.com/repos/sumocoders/Framework/stargazers","contributors_url":"https://api.github.com/repos/sumocoders/Framework/contributors","subscribers_url":"https://api.github.com/repos/sumocoders/Framework/subscribers","subscription_url":"https://api.github.com/repos/sumocoders/Framework/subscription","commits_url":"https://api.github.com/repos/sumocoders/Framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumocoders/Framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumocoders/Framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumocoders/Framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumocoders/Framework/contents/{+path}","compare_url":"https://api.github.com/repos/sumocoders/Framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumocoders/Framework/merges","archive_url":"https://api.github.com/repos/sumocoders/Framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumocoders/Framework/downloads","issues_url":"https://api.github.com/repos/sumocoders/Framework/issues{/number}","pulls_url":"https://api.github.com/repos/sumocoders/Framework/pulls{/number}","milestones_url":"https://api.github.com/repos/sumocoders/Framework/milestones{/number}","notifications_url":"https://api.github.com/repos/sumocoders/Framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumocoders/Framework/labels{/name}","releases_url":"https://api.github.com/repos/sumocoders/Framework/releases{/id}","created_at":"2015-01-19T08:57:15Z","updated_at":"2015-09-24T12:28:19Z","pushed_at":"2015-11-19T13:34:56Z","git_url":"git://github.com/sumocoders/Framework.git","ssh_url":"git@github.com:sumocoders/Framework.git","clone_url":"https://github.com/sumocoders/Framework.git","svn_url":"https://github.com/sumocoders/Framework","homepage":null,"size":2856,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/111"},"html":{"href":"https://github.com/sumocoders/Framework/pull/111"},"issue":{"href":"https://api.github.com/repos/sumocoders/Framework/issues/111"},"comments":{"href":"https://api.github.com/repos/sumocoders/Framework/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sumocoders/Framework/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/sumocoders/Framework/statuses/d4a9e3758b5e86ab6ddabff340687f8385c90b1f"}}}}