-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix todos in admin view functional test #370
Conversation
…n into the setup function.
…s the url set on the page display in the view.
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.
Does the AdminViewUrlTest::testAdminViewUrl() need to be a whole new test, rather than another method on AdminViewTest?
@ekes, though the new admin view url is a kernel test so should be quicker (the AdminViewTest is a functional test). If we wanted to keep it there we could add the code to the method? |
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.
I'm happy with this. We could move this back into the functional AdminViewTest but technically the admin alert banner view is optional, as there is a default alert banner entity collection provided, so this is testing that the alert banner view is set up correctly to the desired URL (overriding the entity collection).
I'd overlooked it was a Kernel test. All good. |
I noticed a couple of todos mentioned in the functional test AdminViewTest.
So I have moved the creation of the admin user into the setup function and added in a kernel test to confirm that the admin url that we are expecting is the one set on the manage alert banners view.