Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Fix unit test #453

Merged

Conversation

emteknetnz
Copy link
Member

Issue silverstripe/silverstripe-framework#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);

@GuySartorelli GuySartorelli merged commit a639464 into silverstripe:4.5 Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants