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.
1) Drupal\Tests\commerce_product\Kernel\ProductVariationAccessTest::testRouteAccess
TypeError: Argument 1 passed to Drupal\Core\Plugin\Context\EntityContext::fromEntity() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /var/www/html/core/modules/user/src/ContextProvider/CurrentUserContext.php on line 58
/var/www/html/core/lib/Drupal/Core/Plugin/Context/EntityContext.php:56
/var/www/html/core/modules/user/src/ContextProvider/CurrentUserContext.php:58
/var/www/html/core/modules/user/src/ContextProvider/CurrentUserContext.php:74
/var/www/html/core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php:97
/var/www/html/core/lib/Drupal/Core/ParamConverter/EntityConverter.php:137
/var/www/html/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php:100
/var/www/html/core/lib/Drupal/Core/Access/AccessManager.php:89
/var/www/html/core/lib/Drupal/Core/Url.php:809
/var/www/html/modules/contrib/commerce/modules/product/tests/src/Kernel/ProductVariationAccessTest.php:186
Comment | File | Size | Author |
---|---|---|---|
#16 | commerce-3038493-test_failures-16.patch | 541 bytes | czigor |
#9 | interdiff-9.txt | 2.49 KB | amateescu |
#9 | 3038493-9.patch | 10.71 KB | amateescu |
#8 | 3038493.patch | 8.22 KB | amateescu |
#3 | 3038493-3.patch | 1.65 KB | flocondetoile |
Comments
Comment #2
flocondetoileSame fix than #3038391: Fix failing ProfileAccessTest::testProfileCreateAccess on 8.7.x
Comment #3
flocondetoileSorry #2 has trailing diff of an another work
Comment #5
flocondetoileOh. There's a lot more testing to fix than I thought :-( Or the fix is completely wrong ?
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedCore has introduced more breakage, via #2976035: Entity type CRUD operations must use the last installed entity type and field storage definitions .
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedhttps://www.drupal.org/node/3036689 might be a clue.
Comment #8
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThis should fix everything.
Comment #9
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedOk, almost everything :)
Not sure what's up with
\Drupal\Tests\commerce_log\Kernel\OrderIntegrationTest
, it's not related to the stuff I worked on for 8.7.Comment #12
drugan CreditAttribution: drugan as a volunteer commentedI am not sure if this somehow related to the test fail but who knows:
https://cgit.drupalcode.org/drupal/tree/core/tests/Drupal/KernelTests/Ke...
https://cgit.drupalcode.org/drupal/tree/core/includes/bootstrap.inc?h=8....
Comment #13
drugan CreditAttribution: drugan as a volunteer commentedComment #15
bojanz CreditAttribution: bojanz at Centarro commentedThanks flocondetoile and amateescu!
I've committed #9 since it fixes the majority of test fails.
Andras and myself will look into OrderIntegrationTest on monday.
It would make sense to bisect core 8.7.x commits to find which one broke OrderIntegrationTest, cause it was passing until very recently.
I do wonder if it's this one:
Comment #16
czigor CreditAttribution: czigor at Centarro commentedIt was indeed e866ce6c13a3b31bca2a4d0b65464365597ccf44.
Before that core commit, empty serialized field values appeared as "a:0:{}" in
$entity->value
. This mapped to a properMapFieldItemList
in$entity->fields
. Now the field in$entity->value
is just empty which breaks field mapping.Fixing this inside Log.
Comment #18
bojanz CreditAttribution: bojanz at Centarro commentedThanks, Andras!