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 Skip tests when session-manager module is installed #10073

Merged
merged 2 commits into from
Sep 3, 2021

Conversation

emteknetnz
Copy link
Member

Copy link
Contributor

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm only happy with skipping these tests altogether if they become non-sensical to run when session-manager is installed.

@emteknetnz
Copy link
Member Author

@maxime-rainville these tests are non-nonsensical IMO when session-manager is installed, because of this line in the session-manager middleware

RememberLoginHash::setLogoutAcrossDevices(false);
https://github.com/silverstripe/silverstripe-session-manager/blob/1/src/Middleware/LoginSessionMiddleware.php#L39

The tests are explicitly modifying logout_across_devices and then running an assertion. However session-manager will just override what the test set logout_across_devices to

@emteknetnz emteknetnz changed the base branch from 4 to 4.9 August 29, 2021 22:46
Copy link
Contributor

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to fix that rogue comma

@maxime-rainville maxime-rainville force-pushed the pulls/4/skip-login-hash-tests branch from c8101e6 to 3be8b3a Compare September 2, 2021 23:11
@maxime-rainville
Copy link
Contributor

I fixed the comma and updated the build to run recipe-cms 4.9.x just to keep this moving.

@maxime-rainville maxime-rainville merged commit 50acac0 into 4.9 Sep 3, 2021
@maxime-rainville maxime-rainville deleted the pulls/4/skip-login-hash-tests branch September 3, 2021 00:21
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