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.
As discussed in #2642814: Add tests for servers to EntitySerializationTest, we want to make sure query objects can be safely serialized – and maybe other objects, too, TBD.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2682615-3--test_serialization_and_cloning.patch | 13.43 KB | drunken monkey |
| |||
#3 | 2682615-3--test_serialization_and_cloning--tests_only.patch | 9.38 KB | drunken monkey |
Comments
Comment #2
drunken monkeyComment #3
drunken monkeyAnd here they are: now additionally tests query and item serialization, as well as query and field cloning. (I grouped them in the same test class, since cloning is somewhat similar to serialization, and because I re-use some code for which it would be a bit awkward to create a complete trait – but I can do that, too, if we agree it makes more sense.)
And, lo and behold, this even uncovered some bugs:
Once again proves how important proper testing is. Damn.
Comment #5
borisson_Great work! Hurray for tests!
Comment #7
drunken monkeyThanks! Committed.