Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the OverviewPageTest
there's a todo: "Why is this here? This hasn't got anything to do with the overview."
I removed the code and updated the test method to be somewhat more specific.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2642998-8--remove_unused_overview_page_test_code.patch | 4.08 KB | drunken monkey |
Comments
Comment #2
drunken monkeyLooks good, thanks!
However, why the changes in the
WebTestBase
?Also, I guess we should still test this somewhere, so maybe move the code to the
WebTestBase
in some way instead of just removing it? (It probably creates a lot of changes if we add the User datasource to our normal test index, so just creating another index (or adding it to the second one that, I believe, is already there somewhere) is probably the safer option.Comment #3
borisson_The changes in
WebTestBase
are unrelated but they are to make sure that we have sufficient difference between the title and description of a index / server when testing.Because if they are the same, then the following asserts are risky, because they don't actually test for something different.
I have moved the test to the normal
integrationTest
.Comment #4
drunken monkeyAs noted elsewhere, I really don't like adding additional test methods to Simpletest tests, it's just too expensive. We can just do it in a separate helper method for the existing test (we currently already create a second, unused index in
createIndex()
).This actually looks like we should have HTML in the description, to check this realistically? (Not sure if that really works at the moment. And if it does, we should make sure there's no XSS problem there (i.e., some very permissive tag filter is applied).)
However, I guess that is a different issue.
Thanks for your work on the patch, in any case!
Comment #7
borisson_The change you made from
assertRaw
toassertText
made the tests red. Your other changes look good.Comment #8
drunken monkeyI didn't change that (or anything, functionally), the patch just needed a re-roll.
Comment #9
borisson_oops, yes.
Comment #10
drunken monkeyOK, then: committed.
Thanks again!