-
Notifications
You must be signed in to change notification settings - Fork 14
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
DEP Add session manager #48
DEP Add session manager #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update the readme and phpunit.xml.dist
?
8f7230f
to
80fe651
Compare
The build is still failing and it doesn't look like a pre-existing failure 😢 https://app.travis-ci.com/github/silverstripe/recipe-cms/branches |
So the issue here is that unit/functional tests that use Security::setCurrentUser(); doesn't quite work due to This following POC code will get This code isn't great :-/ The bit with AssetControlExtension (which is on DataObject) is particularly bad due to it failing because (I think) of config.yml (session-manager)
Security.php (framework)
SecurityExtension.php (session-manager)
AssetControlExtension.php (assets)
|
If setting |
I've added a bunch of PR's on the parent issue so that Login sessions are now created/destroyed when calling Security::setCurrentUser() |
Update: much better solution, change failing unit tests from using |
80fe651
to
8d0f13f
Compare
8d0f13f
to
03c6888
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Issue #47