Commit e08394a6 authored by catch's avatar catch

Issue #2672670 by dawehner: Add BC layer in installSchema to support url_alias...

Issue #2672670 by dawehner: Add BC layer in installSchema to support url_alias for the new KernelTestBase
parent 6377fc1f
......@@ -740,6 +740,13 @@ protected function installSchema($module, $tables) {
foreach ($tables as $table) {
$schema = drupal_get_module_schema($module, $table);
if (empty($schema)) {
// BC layer to avoid some contrib tests to fail.
// @todo Remove the BC layer before 8.1.x release.
// @see https://www.drupal.org/node/2670360
// @see https://www.drupal.org/node/2670454
if ($module == 'system') {
continue;
}
throw new \LogicException("$module module does not define a schema for table '$table'.");
}
$this->container->get('database')->schema()->createTable($table, $schema);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment