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::testAccess
Invalid permission update commerce_product.
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:314
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:261
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:164
/var/www/html/core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php:114
/var/www/html/modules/contrib/commerce/modules/product/tests/src/Kernel/ProductVariationAccessTest.php:82
1) Drupal\Tests\commerce_order\Kernel\OrderItemAccessTest::testAccess
Invalid permission update commerce_order.
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:314
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:261
/var/www/html/core/modules/user/tests/src/Traits/UserCreationTrait.php:164
/var/www/html/core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php:114
/var/www/html/modules/contrib/commerce/modules/order/tests/src/Kernel/OrderItemAccessTest.php:82
Same order permission error is also coming from LogAccessTest and OrderQueryAccessHandlerTest.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3044336-3-fix-invalid-permissions-in-tests.patch | 3.8 KB | bojanz |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedBetter title. These permissions really don't exist, the system just didn't complain before.
OrderQueryAccessHandlerTest makes the wrong assumption that an entity type has both entity type level and bundle level update/duplicate/delete permissions, which is incorrect.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedComment #5
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.