localgovdrupal / localgov_geo

Entity for storing Geographic information, addresses, and areas; extensible types and plugable backends with defaults to start.
2 stars 1 forks source link

Fixes test failures enabling modules. #118

Closed ekes closed 5 months ago

ekes commented 5 months ago

Probably a marginal one this, and only (?) in tests, but I can't think of a better fix than this.

The issue reported in https://github.com/localgovdrupal/localgov_microsites_group/issues/464#issuecomment-2118905519 caused by rebuilding the permissions before the route cache was cleared

1) Drupal\Tests\localgov_microsites_group\Functional\GroupContentTypeAccessTest::testGroupAdminAccess
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.filter_format.edit_form" does not exist.

/var/www/html/web/core/lib/Drupal/Core/Routing/RouteProvider.php:206
/var/www/html/web/core/lib/Drupal/Core/Routing/UrlGenerator.php:443
/var/www/html/web/core/lib/Drupal/Core/Routing/UrlGenerator.php:276
/var/www/html/web/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php:108
/var/www/html/web/core/lib/Drupal/Core/Url.php:765
/var/www/html/web/core/modules/filter/src/FilterPermissions.php:56
/var/www/html/web/core/modules/user/src/PermissionHandler.php:153
/var/www/html/web/core/modules/user/src/PermissionHandler.php:112
/var/www/html/web/core/modules/user/src/Entity/Role.php:203
/var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:321
/var/www/html/web/core/modules/user/src/Entity/Role.php:179
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:528
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:483
/var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257
/var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php:354
/var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609
/var/www/html/web/core/modules/user/user.module:1004
/var/www/html/web/modules/contrib/localgov_geo/localgov_geo.install:21
/var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php:400
/var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:364
/var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/var/www/html/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:475
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:561
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:369
/var/www/html/web/modules/contrib/localgov_microsites_group/tests/src/Functional/GroupContentTypeAccessTest.php:75
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:729