{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/237141232","pull_request_review_id":179367550,"id":237141232,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzE0MTIzMg==","diff_hunk":"@@ -0,0 +1,12 @@\n+#!/bin/bash\n+\n+composer run-script unit-tests --timeout=0;\n+UNIT=$?\n+\n+if [[ \"$UNIT\" == \"0\" ]]; then\n+  echo -e \"\\e[UNIT TESTS OK\"\n+  exit 0;\n+else\n+  echo -e \"\\e[91mUNIT TESTS FAILED\"\n+  exit 255;","path":"tests/check_unit.sh","position":11,"original_position":11,"commit_id":"9b844709309b1c691eadaffa4243684e8587d456","original_commit_id":"9b844709309b1c691eadaffa4243684e8587d456","user":{"login":"Quetzacoalt91","id":6768917,"node_id":"MDQ6VXNlcjY3Njg5MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6768917?v=4","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"body":"Why don't you `exit $UNIT` ?","created_at":"2018-11-28T15:47:51Z","updated_at":"2018-11-28T15:47:51Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/11525#discussion_r237141232","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/237141232"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/11525#discussion_r237141232"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525","id":233840573,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzODQwNTcz","html_url":"https://github.com/PrestaShop/PrestaShop/pull/11525","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/11525.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/11525.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/11525","number":11525,"state":"open","locked":false,"title":"Introduce modern unit tests for new test structure","user":{"login":"matks","id":3830050,"node_id":"MDQ6VXNlcjM4MzAwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3830050?v=4","gravatar_id":"","url":"https://api.github.com/users/matks","html_url":"https://github.com/matks","followers_url":"https://api.github.com/users/matks/followers","following_url":"https://api.github.com/users/matks/following{/other_user}","gists_url":"https://api.github.com/users/matks/gists{/gist_id}","starred_url":"https://api.github.com/users/matks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matks/subscriptions","organizations_url":"https://api.github.com/users/matks/orgs","repos_url":"https://api.github.com/users/matks/repos","events_url":"https://api.github.com/users/matks/events{/privacy}","received_events_url":"https://api.github.com/users/matks/received_events","type":"User","site_admin":false},"body":"| Questions     | Answers\r\n| ------------- | -------------------------------------------------------\r\n| Branch?       | develop\r\n| Description?  | Introduce new unit tests structure, setup, scripts\r\n| Type?         | refacto\r\n| Category?     | TE\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed ticket? | https://github.com/PrestaShop/PrestaShop/issues/10733\r\n| How to test?  | Travis tests should be green and include the new unit test\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/prestashop/prestashop/11525)\n<!-- Reviewable:end -->\n","created_at":"2018-11-27T09:42:02Z","updated_at":"2018-11-28T15:47:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"939cc2fdeb164e4c6fd4a40a7df8b42b5d4125dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":990865360,"node_id":"MDU6TGFiZWw5OTA4NjUzNjA=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Refactoring","name":"Refactoring","color":"d4c5f9","default":false},{"id":904910825,"node_id":"MDU6TGFiZWw5MDQ5MTA4MjU=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/develop","name":"develop","color":"6270ea","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/11525/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/9b844709309b1c691eadaffa4243684e8587d456","head":{"label":"matks:new-unit-tests-1","ref":"new-unit-tests-1","sha":"9b844709309b1c691eadaffa4243684e8587d456","user":{"login":"matks","id":3830050,"node_id":"MDQ6VXNlcjM4MzAwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3830050?v=4","gravatar_id":"","url":"https://api.github.com/users/matks","html_url":"https://github.com/matks","followers_url":"https://api.github.com/users/matks/followers","following_url":"https://api.github.com/users/matks/following{/other_user}","gists_url":"https://api.github.com/users/matks/gists{/gist_id}","starred_url":"https://api.github.com/users/matks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matks/subscriptions","organizations_url":"https://api.github.com/users/matks/orgs","repos_url":"https://api.github.com/users/matks/repos","events_url":"https://api.github.com/users/matks/events{/privacy}","received_events_url":"https://api.github.com/users/matks/received_events","type":"User","site_admin":false},"repo":{"id":132752369,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3NTIzNjk=","name":"PrestaShop","full_name":"matks/PrestaShop","private":false,"owner":{"login":"matks","id":3830050,"node_id":"MDQ6VXNlcjM4MzAwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3830050?v=4","gravatar_id":"","url":"https://api.github.com/users/matks","html_url":"https://github.com/matks","followers_url":"https://api.github.com/users/matks/followers","following_url":"https://api.github.com/users/matks/following{/other_user}","gists_url":"https://api.github.com/users/matks/gists{/gist_id}","starred_url":"https://api.github.com/users/matks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matks/subscriptions","organizations_url":"https://api.github.com/users/matks/orgs","repos_url":"https://api.github.com/users/matks/repos","events_url":"https://api.github.com/users/matks/events{/privacy}","received_events_url":"https://api.github.com/users/matks/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matks/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/matks/PrestaShop","forks_url":"https://api.github.com/repos/matks/PrestaShop/forks","keys_url":"https://api.github.com/repos/matks/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matks/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matks/PrestaShop/teams","hooks_url":"https://api.github.com/repos/matks/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/matks/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/matks/PrestaShop/events","assignees_url":"https://api.github.com/repos/matks/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/matks/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/matks/PrestaShop/tags","blobs_url":"https://api.github.com/repos/matks/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matks/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matks/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/matks/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matks/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/matks/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/matks/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/matks/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/matks/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/matks/PrestaShop/subscription","commits_url":"https://api.github.com/repos/matks/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/matks/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/matks/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/matks/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/matks/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/matks/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matks/PrestaShop/merges","archive_url":"https://api.github.com/repos/matks/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matks/PrestaShop/downloads","issues_url":"https://api.github.com/repos/matks/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/matks/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/matks/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/matks/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matks/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/matks/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/matks/PrestaShop/deployments","created_at":"2018-05-09T12:17:41Z","updated_at":"2018-09-24T15:40:47Z","pushed_at":"2018-11-28T15:20:05Z","git_url":"git://github.com/matks/PrestaShop.git","ssh_url":"git@github.com:matks/PrestaShop.git","clone_url":"https://github.com/matks/PrestaShop.git","svn_url":"https://github.com/matks/PrestaShop","homepage":"http://www.prestashop.com/","size":353461,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PrestaShop:develop","ref":"develop","sha":"6e550c7f8f3ffd2d4c248cd352e298c2b0f8561e","user":{"login":"PrestaShop","id":2815696,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTU2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":6763587,"node_id":"MDEwOlJlcG9zaXRvcnk2NzYzNTg3","name":"PrestaShop","full_name":"PrestaShop/PrestaShop","private":false,"owner":{"login":"PrestaShop","id":2815696,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MTU2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PrestaShop/PrestaShop","description":"PrestaShop offers a fully scalable open source ecommerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2018-11-28T15:24:41Z","pushed_at":"2018-11-28T15:39:51Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":385860,"stargazers_count":3313,"watchers_count":3313,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2983,"mirror_url":null,"archived":false,"open_issues_count":1228,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2983,"open_issues":1228,"watchers":3313,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/11525"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/11525"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/11525/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/11525/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/9b844709309b1c691eadaffa4243684e8587d456"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Quetzacoalt91"}}