{"action":"created","issue":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1464","labels_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1464/labels{/name}","comments_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1464/comments","events_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1464/events","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1464","id":111258210,"number":1464,"title":"BDD: config import + rest config","user":{"login":"bdunogier","id":235928,"avatar_url":"https://avatars.githubusercontent.com/u/235928?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunogier","html_url":"https://github.com/bdunogier","followers_url":"https://api.github.com/users/bdunogier/followers","following_url":"https://api.github.com/users/bdunogier/following{/other_user}","gists_url":"https://api.github.com/users/bdunogier/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunogier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunogier/subscriptions","organizations_url":"https://api.github.com/users/bdunogier/orgs","repos_url":"https://api.github.com/users/bdunogier/repos","events_url":"https://api.github.com/users/bdunogier/events{/privacy}","received_events_url":"https://api.github.com/users/bdunogier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T19:57:32Z","updated_at":"2015-10-14T07:21:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/1464","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1464","diff_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1464.diff","patch_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1464.patch"},"body":"> See ezsystems/ezplatform#55\r\n\r\nIn addition to moving the rest & core behat suites from ezplatform to ezpublish-kernel, this PR also changes the RestContext so that it gets the configured URL from Mink instead of re-declaring it in each suite.\r\n\r\nThis should make it possible to a) simplify the rest context arguments (format + driver should be sufficient) b) customize the base uri (including for REST) using the [`BEHAT_CONFIG` environment variable](http://docs.behat.org/en/v3.0/guides/6.profiles.html#environment-variable-behat-params).\r\n\r\nExample:\r\n```bash\r\nexport BEHAT_PARAMS='{\"extensions\" : {\"Behat\\\\MinkExtension\" : {\"base_url\" : \"https://ez.loc/\"}}}'\r\n./bin/behat --profile=rest --suite=fullJson\r\n```\r\n\r\n### TODO\r\n- [ ] Remove the `base_url` setting from the `RestContext` arguments in class + `behat.yml.dist`"},"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/comments/147960306","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/1464#issuecomment-147960306","issue_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/issues/1464","id":147960306,"user":{"login":"miguelcleverti","id":8983122,"avatar_url":"https://avatars.githubusercontent.com/u/8983122?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelcleverti","html_url":"https://github.com/miguelcleverti","followers_url":"https://api.github.com/users/miguelcleverti/followers","following_url":"https://api.github.com/users/miguelcleverti/following{/other_user}","gists_url":"https://api.github.com/users/miguelcleverti/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelcleverti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelcleverti/subscriptions","organizations_url":"https://api.github.com/users/miguelcleverti/orgs","repos_url":"https://api.github.com/users/miguelcleverti/repos","events_url":"https://api.github.com/users/miguelcleverti/events{/privacy}","received_events_url":"https://api.github.com/users/miguelcleverti/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T07:21:52Z","updated_at":"2015-10-14T07:21:52Z","body":"+1"}}