Unit Test Authenticated User

With the selenium click function being broken in relation to the latest Firefox version, I was hoping there might be a way for Yii unit tests to authenticate a user and have it access a url using EHttpClient. However, I haven’t found a way for the authentication to persist. Can anyone tell me?