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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Title: Tests are once again failing on Drupal 8.7.x » Some kernel tests are using non-existent permissions
Priority: Normal » Major

Better 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.

bojanz’s picture

  • bojanz committed 3815400 on 8.x-2.x
    Issue #3044336 by bojanz: Some kernel tests are using non-existent...
bojanz’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.