{"action":"created","issue":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/185","labels_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/185/comments","events_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/185/events","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/issues/185","id":60739847,"number":185,"title":"Call for Help: setting up unit tests for Configurator class","user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars.githubusercontent.com/u/73419?v=3","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-11T22:21:27Z","updated_at":"2015-03-12T18:39:44Z","closed_at":null,"body":"**If you are someone who wants to help developing this bundle and know a thing or two about tests, I need your help.**\r\n\r\n-----\r\n\r\nRight now we have a lot of [unit tests for our DependencyInjectionExtension](https://github.com/javiereguiluz/EasyAdminBundle/tree/master/Tests/DependencyInjection). These tests are cool because we can define small YAML files with the original input configuration and the expected processed configuration. This allows us to tests a lot of things in a very agile way.\r\n\r\nI want to do the exactly the same for [the Configurator class](https://github.com/javiereguiluz/EasyAdminBundle/blob/master/Configuration/Configurator.php). The problem is that I don't know how to properly set up [the Configurator class unit test](https://github.com/javiereguiluz/EasyAdminBundle/blob/master/Tests/Configuration/ConfiguratorTest.php). I guess we'll have to mock or \"fake\" some entity metadata and things like that, but I'm not sure how to do that.\r\n\r\nAny help or work on this will be immensely appreciated.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/comments/78561682","html_url":"https://github.com/javiereguiluz/EasyAdminBundle/issues/185#issuecomment-78561682","issue_url":"https://api.github.com/repos/javiereguiluz/EasyAdminBundle/issues/185","id":78561682,"user":{"login":"Pierstoval","id":3369266,"avatar_url":"https://avatars.githubusercontent.com/u/3369266?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierstoval","html_url":"https://github.com/Pierstoval","followers_url":"https://api.github.com/users/Pierstoval/followers","following_url":"https://api.github.com/users/Pierstoval/following{/other_user}","gists_url":"https://api.github.com/users/Pierstoval/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierstoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierstoval/subscriptions","organizations_url":"https://api.github.com/users/Pierstoval/orgs","repos_url":"https://api.github.com/users/Pierstoval/repos","events_url":"https://api.github.com/users/Pierstoval/events{/privacy}","received_events_url":"https://api.github.com/users/Pierstoval/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T18:39:44Z","updated_at":"2015-03-12T18:39:44Z","body":"Oh ok sorry I misunderstood, I thought that you were talking about the Configuration DI :smile: \r\n "}}