@@ -713,6 +713,10 @@ protected function installConfig($modules) {
*
* @throws \LogicException
* If $module is not enabled or the table schema cannot be found.
*
* @deprecated Special handling of system module schemas has been deprecated
* in Drupal 8.7.x, remove any calls to this method that use invalid schema
* names.
*/
protectedfunctioninstallSchema($module,$tables){
// drupal_get_module_schema() is technically able to install a schema
...
...
@@ -728,10 +732,10 @@ protected function installSchema($module, $tables) {
$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'){
@trigger_error('Special handling of system module schemas in \Drupal\KernelTests\KernelTestBase::installSchema has been deprecated in Drupal 8.7.x, remove any calls to this method that use invalid schema names.',E_USER_DEPRECATED);
continue;
}
thrownew\LogicException("$module module does not define a schema for table '$table'.");