silverstripe / silverstripe-mfa

MultiFactor Authentication for Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
11 stars 24 forks source link

MNT Fix unit test #453

Closed emteknetnz closed 2 years ago

emteknetnz commented 2 years ago

Issue https://github.com/silverstripe/silverstripe-framework/issues/10278

Travis error https://app.travis-ci.com/github/silverstripe/recipe-kitchen-sink/jobs/567740349#L1927

This unit test wasn't actually testing what it was supposed to. Previously it was just going to the /Security/login. Changed so it logs in a mock user like all the other tests in the file so that it actually reaches the line of code it's testing AdminRegistrationController::startRegistration() ... HTTPCacheControlMiddleware::singleton()->disableCache(true);