Remove calls to installEntitySchema for config entity types in Kernel tests

Created on 3 May 2019, over 5 years ago
Updated 22 February 2023, almost 2 years ago

Problem/Motivation

@Berdir pointed out in #2946333-142: Allow synced Layout override Translations: translating labels and inline blocks that you don't need to call $this->installEntitySchema('configurable_language'); because this is a config entity (and therefore it doesn't have a database table that needs to be installed).

I had copied this from \Drupal\KernelTests\Core\Entity\EntityNonRevisionableTranslatableFieldTest so I decided to see how many more times installEntitySchema() is called for config entity types.

It seems like quite a few times.

Proposed resolution

Remove these calls since there is no database schema to install for config entities.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

Component
PHPUnit 

Last updated about 14 hours ago

Created by

🇺🇸United States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024