{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/documentation/issues/1380","labels_url":"https://api.github.com/repos/owncloud/documentation/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/documentation/issues/1380/comments","events_url":"https://api.github.com/repos/owncloud/documentation/issues/1380/events","html_url":"https://github.com/owncloud/documentation/issues/1380","id":98214391,"number":1380,"title":"Add trait testing to the app tutorial","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/documentation/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T16:47:26Z","updated_at":"2015-07-30T17:35:50Z","closed_at":"2015-07-30T17:22:14Z","body":"Traits need to be tested a bit differently, using `getMockForTrait`.\r\nSince the app mentions the use of traits, it would be good to include a short test for it.\r\n\r\nI know it's only a short tutorial, but showing how things are done can really help devs be less reluctant to add tests.\r\n\r\n@Raydiation "},"comment":{"url":"https://api.github.com/repos/owncloud/documentation/issues/comments/126412700","html_url":"https://github.com/owncloud/documentation/issues/1380#issuecomment-126412700","issue_url":"https://api.github.com/repos/owncloud/documentation/issues/1380","id":126412700,"user":{"login":"Raydiation","id":195053,"avatar_url":"https://avatars.githubusercontent.com/u/195053?v=3","gravatar_id":"","url":"https://api.github.com/users/Raydiation","html_url":"https://github.com/Raydiation","followers_url":"https://api.github.com/users/Raydiation/followers","following_url":"https://api.github.com/users/Raydiation/following{/other_user}","gists_url":"https://api.github.com/users/Raydiation/gists{/gist_id}","starred_url":"https://api.github.com/users/Raydiation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raydiation/subscriptions","organizations_url":"https://api.github.com/users/Raydiation/orgs","repos_url":"https://api.github.com/users/Raydiation/repos","events_url":"https://api.github.com/users/Raydiation/events{/privacy}","received_events_url":"https://api.github.com/users/Raydiation/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T17:35:50Z","updated_at":"2015-07-30T17:35:50Z","body":"Basically the trait is already tested here: https://github.com/owncloud/app-tutorial/blob/master/tests/unit/controller/NoteControllerTest.php#L39"}}