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.
Problem/Motivation
Followup to #1624278: cleanup of docblock to UI text in update_get_update_list() is weak.
Convert \Drupal\Tests\system\Functional\UpdateSystem\UpdateDescriptionTest to a Unit test.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#3 | 3210502-3.patch | 3.71 KB | longwave |
Comments
Comment #2
quietone CreditAttribution: quietone as a volunteer commentedComment #3
longwaveConverting this to a unit test required mocking a number of services, it seems easier to make this a kernel test and then we can allow modules to be installed.
Comment #4
Spokje- New test is green.
- New test basically tests for the same thing, but without the overhead of a
BrowserTestBase
- All things done in the original test besides the 2 assertions on return messages from Update Manager weren't asserted, and are all covered in the remaining
BrowserTestBase
tests for Update Manager.- Makes sense.
RTBC for me.
Comment #7
catchNice find!
Committed/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!
Comment #8
joachim CreditAttribution: joachim as a volunteer commented