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.
It would be great to return the saving status for user entity type. Currently the UserStorage::save() method returns NULL.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2462265-6-user-save-return-status.patch | 1.88 KB | jeqq |
#4 | 2462265-4-user-save-return-status.patch | 1.7 KB | jeqq |
user-save-return-status.patch | 515 bytes | jeqq | |
Comments
Comment #1
jeqqComment #2
jeqqComment #3
dawehnerDo you think its worth writing some test for it?
The fix looks perfect.
Comment #4
jeqqAdded a simple test for this.
Comment #5
dixon_I believe we can use
KernelTestBase
for this test instead. That way the test would run a lot faster. You basically just have to install the entity schema in thesetUp()
method (with\Drupal\simpletest\KernelTestBase::installEntitySchema()
).Comment #6
jeqqThanks @dixon_! Used KernelTestBase instead of WebTestBase.
Comment #7
m4oliveiPatch looks good to me. Makes sense, applies clean, new test ran locally passed.
Comment #8
dixon_The new patch looks good. Simple and straight forward fix.
Comment #9
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 782df90 and pushed to 8.0.x. Thanks!