{"action":"created","issue":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/231","labels_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/231/comments","events_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/231/events","html_url":"https://github.com/jhedstrom/drupalextension/pull/231","id":120806548,"number":231,"title":"Provide an example that uses human readable field names","user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T16:06:59Z","updated_at":"2015-12-07T16:27:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/pulls/231","html_url":"https://github.com/jhedstrom/drupalextension/pull/231","diff_url":"https://github.com/jhedstrom/drupalextension/pull/231.diff","patch_url":"https://github.com/jhedstrom/drupalextension/pull/231.patch"},"body":"Recently support was added to Behat to do @transform on row-based tables: [PR #654: Add support for row table transformations](https://github.com/Behat/Behat/pull/654). This finally makes it possible to use human readable names for fields.\r\n\r\n## Before\r\n\r\nUp to now we were forced to use machine names which are not only ugly, but violate the BDD principle of using domain specific language:\r\n\r\n```\r\nWhen I am viewing a \"post\" content:\r\n  | title                | Post title          |\r\n  | body                 | Body text           |\r\n  | field_post_reference | Page one, Page two  |\r\n  | field_post_date      | 2015-02-08 17:45:00 |\r\n```\r\n\r\n## After\r\n\r\n```\r\nWhen I am viewing a \"post\" content:\r\n  | title     | Post title          |\r\n  | body      | Body text           |\r\n  | reference | Page one, Page two  |\r\n  | date      | 2015-02-08 17:45:00 |\r\n```\r\n\r\nMuch better!\r\n\r\nNote that this currently relies on code that has recently been committed to the master branch of Behat. We might want to wait on a new release of Behat before merging this in."},"comment":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/comments/162578348","html_url":"https://github.com/jhedstrom/drupalextension/pull/231#issuecomment-162578348","issue_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/231","id":162578348,"user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T16:27:53Z","updated_at":"2015-12-07T16:27:53Z","body":"Tests on PHP5.5+ are failing because of #225."}}