Added documentation & unit tests to PR #174

Source: https://github.com/sonata-project/SonataAdminBundle/pull/174