{"action":"created","comment":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/78536650","id":78536650,"diff_hunk":"@@ -0,0 +1,122 @@\n+<?php\n+/**\n+ * @file\n+ * Contains \\Drupal\\nexteuropa\\Context\\WebtoolsContext.\n+ */\n+\n+namespace Drupal\\nexteuropa\\Context;\n+\n+use Behat\\Behat\\Context\\Context;\n+use Behat\\Behat\\Hook\\Scope\\BeforeScenarioScope;\n+\n+/**\n+ * Context for configuring the WebtoolsContext.\n+ */\n+class WebtoolsContext implements Context {\n+\n+  /**\n+   * The Smarloader Protocol-Relative URL.\n+   *\n+   * @var string\n+   */\n+  protected $smartloadurl;\n+\n+  /**\n+   * The variable context.\n+   *\n+   * @var VariableContext\n+   */\n+  protected $variableContext;\n+\n+  /**\n+   * List of Bean created during test execution.\n+   *\n+   * @var \\Bean[]\n+   */\n+  protected $beans = [];\n+\n+  /**\n+   * Gathers other contexts we rely on, before the scenario starts.\n+   *\n+   * @BeforeScenario\n+   */\n+  public function gatherContexts(BeforeScenarioScope $scope) {\n+    $environment = $scope->getEnvironment();\n+    $this->variableContext = $environment->getContext(VariableContext::class);\n+  }\n+\n+  /**\n+   * Constructs a new WebtoolsContext.\n+   *\n+   * @param string $smartloadurl\n+   *   The Smarloader Protocol-Relative URL.\n+   */\n+  public function __construct($smartloadurl) {\n+    // @todo continuousphp insert the right $url\n+    // $this->smartloadUrl = $smartloadurl;\n+    $this->smartloadUrl = \"http://europa.eu/webtools/load.js\";\n+  }\n+\n+  /**\n+   * Configures the Smarloader URL for the nexteuropa_webtools module.\n+   *\n+   * @Given a valid Smartload Url has been configured\n+   */\n+  public function aValidSmartloadUrlHasBeenConfigured() {\n+    $this->variableContext->setVariable('nexteuropa_webtools_smartloader_prurl', $this->smartloadurl);\n+  }\n+\n+  /**\n+   * Create a Webtools blocks.","path":"tests/src/Context/WebtoolsContext.php","position":70,"original_position":70,"commit_id":"80ef1ed79a964659c86c097fc15fd93a6651314a","original_commit_id":"80ef1ed79a964659c86c097fc15fd93a6651314a","user":{"login":"cyberwolf","id":95102,"avatar_url":"https://avatars.githubusercontent.com/u/95102?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberwolf","html_url":"https://github.com/cyberwolf","followers_url":"https://api.github.com/users/cyberwolf/followers","following_url":"https://api.github.com/users/cyberwolf/following{/other_user}","gists_url":"https://api.github.com/users/cyberwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberwolf/subscriptions","organizations_url":"https://api.github.com/users/cyberwolf/orgs","repos_url":"https://api.github.com/users/cyberwolf/repos","events_url":"https://api.github.com/users/cyberwolf/events{/privacy}","received_events_url":"https://api.github.com/users/cyberwolf/received_events","type":"User","site_admin":false},"body":"a ... block.","created_at":"2016-09-13T10:54:47Z","updated_at":"2016-09-13T10:54:47Z","html_url":"https://github.com/ec-europa/platform-dev/pull/527#discussion_r78536650","pull_request_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527","_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/78536650"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/527#discussion_r78536650"},"pull_request":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527"}}},"pull_request":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527","id":69462807,"html_url":"https://github.com/ec-europa/platform-dev/pull/527","diff_url":"https://github.com/ec-europa/platform-dev/pull/527.diff","patch_url":"https://github.com/ec-europa/platform-dev/pull/527.patch","issue_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/527","number":527,"state":"open","locked":false,"title":"Feature/nexteuropa 8413","user":{"login":"voidtek","id":186827,"avatar_url":"https://avatars.githubusercontent.com/u/186827?v=3","gravatar_id":"","url":"https://api.github.com/users/voidtek","html_url":"https://github.com/voidtek","followers_url":"https://api.github.com/users/voidtek/followers","following_url":"https://api.github.com/users/voidtek/following{/other_user}","gists_url":"https://api.github.com/users/voidtek/gists{/gist_id}","starred_url":"https://api.github.com/users/voidtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidtek/subscriptions","organizations_url":"https://api.github.com/users/voidtek/orgs","repos_url":"https://api.github.com/users/voidtek/repos","events_url":"https://api.github.com/users/voidtek/events{/privacy}","received_events_url":"https://api.github.com/users/voidtek/received_events","type":"User","site_admin":false},"body":"https://webgate.ec.europa.eu/CITnet/jira/browse/NEXTEUROPA-8413","created_at":"2016-05-10T07:54:37Z","updated_at":"2016-09-13T10:54:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f45d3966aee98d9deac8f9521692db6d20503e91","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527/commits","review_comments_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527/comments","review_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/527/comments","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/80ef1ed79a964659c86c097fc15fd93a6651314a","head":{"label":"ec-europa:feature/nexteuropa-8413","ref":"feature/nexteuropa-8413","sha":"80ef1ed79a964659c86c097fc15fd93a6651314a","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2016-08-20T16:59:21Z","pushed_at":"2016-09-13T10:09:35Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":54518,"stargazers_count":23,"watchers_count":23,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":35,"forks":22,"open_issues":35,"watchers":23,"default_branch":"master"}},"base":{"label":"ec-europa:master","ref":"master","sha":"451c80801cd83a4996daeacdf627dc9ad1ddff38","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2016-08-20T16:59:21Z","pushed_at":"2016-09-13T10:09:35Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":54518,"stargazers_count":23,"watchers_count":23,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":35,"forks":22,"open_issues":35,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/527"},"issue":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/527"},"comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/527/comments"},"review_comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527/comments"},"review_comment":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/527/commits"},"statuses":{"href":"https://api.github.com/repos/ec-europa/platform-dev/statuses/80ef1ed79a964659c86c097fc15fd93a6651314a"}}}}
{"actor":{"display_login":"cyberwolf"}}