My unit tests randomly fail, saying the database cannot find the router table.

$this->installSchema('system', 'router');

Fixes the table issue

SQLSTATE[HY000]: General error: 1 no such table: simpletest527924.router: DELETE FROM {router}; Array
(
)

 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Database/Connection.php:676
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php:324
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Database/Connection.php:640
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Database/Query/Delete.php:60
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Routing/MatcherDumper.php:100
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php:88
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Routing/RouteBuilder.php:194
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php:87
 /Users/mglaman/Drupal/sites/commerce2x/www/modules/contrib/profile/src/Entity/ProfileType.php:175
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php:474
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Entity/EntityStorageBase.php:400
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:264
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Entity/Entity.php:368
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:626
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Config/ConfigInstaller.php:315
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/Config/ConfigInstaller.php:130
 /Users/mglaman/Drupal/sites/commerce2x/www/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:79
 /Users/mglaman/Drupal/sites/commerce2x/www/core/tests/Drupal/KernelTests/KernelTestBase.php:715
 /Users/mglaman/Drupal/sites/commerce2x/www/modules/contrib/commerce/modules/order/tests/src/Kernel/Entity/OrderTest.php:41
CommentFileSizeAuthor
#3 need_to_install_router-2681297-3.patch907 bytesmglaman

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Issue summary: View changes
mglaman’s picture

Status: Active » Needs review
StatusFileSize
new907 bytes

  • mglaman committed 84dd7f0 on 8.x-2.x
    Issue #2681297: Need to install router schema for OrderTest
    
  • mglaman committed 8f147f2 on 8.x-2.x
    Merge pull request #348 from mglaman/order-kernel-test-router-schema...
mglaman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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