Fix module not installable errors in test

Created on 13 November 2023, 7 months ago

Problem/Motivation

Gitlab CI is reporting errors when trying to install the module in tests. See log: https://git.drupalcode.org/project/do_username/-/jobs/322483

PHPUnit 9.6.13 by Sebastian Bergmann and contributors.
E.....                                                              6 / 6 (100%)
Time: 00:00.659, Memory: 6.00 MB
There was 1 error:
1) Drupal\Tests\do_username\Kernel\ConfigTest::testConfig
Exception: Exception when installing config for module do_username, message was: Schema errors for field.storage.user.field_do_username with the following errors: field.storage.user.field_do_username:settings.do_validate missing schema
/builds/project/do_username/web/core/tests/Drupal/KernelTests/KernelTestBase.php:730
/builds/project/do_username/tests/src/Kernel/ConfigTest.php:26
/builds/project/do_username/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
Caused by
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for field.storage.user.field_do_username with the following errors: field.storage.user.field_do_username:settings.do_validate missing schema
/builds/project/do_username/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:94
/builds/project/do_username/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
/builds/project/do_username/web/core/lib/Drupal/Core/Config/Config.php:229
/builds/project/do_username/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:278
/builds/project/do_username/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486
/builds/project/do_username/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257
/builds/project/do_username/web/core/lib/Drupal/Core/Entity/EntityBase.php:339
/builds/project/do_username/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609
/builds/project/do_username/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:389
/builds/project/do_username/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:149
/builds/project/do_username/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/builds/project/do_username/web/core/tests/Drupal/KernelTests/KernelTestBase.php:727
/builds/project/do_username/tests/src/Kernel/ConfigTest.php:26
/builds/project/do_username/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
ERRORS!
Tests: 6, Assertions: 8, Errors: 1.
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada hussainweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024