A test for the net authentication adapter + a better use of doctrine in tests