Update AutodiscoverTest.php

add test for setUserRights Exception