Schema errors while doing unit test on SmartDateTimezoneWidgetTest

Created on 3 August 2023, about 1 year ago
Updated 4 August 2023, about 1 year ago

Problem/Motivation

When doing the unit test on the tests/src/Functional/SmartDateTimezoneWidgetTest.php, i am geting the following error:
I don't know whether its proposed to do in the next release, but i will provide the patch that fixed error in my local.

ddev exec vendor/bin/phpunit -c core modules/contrib/smart_date/tests/src/Functional/SmartDateTimezoneWidgetTest.php

1) Drupal\Tests\smart_date\Functional\SmartDateTimezoneWidgetTest::testSmartdateTimezoneWidgetDefaults
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for core.entity_form_display.node.smart_date_content.default with the following errors: core.entity_form_display.node.smart_date_content.default:content.field_date.settings.allday missing schema, core.entity_form_display.node.smart_date_content.default:content.field_date.settings.remove_seconds missing schema

/var/www/html/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:94
/var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
/var/www/html/core/lib/Drupal/Core/Config/Config.php:229
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:278
/var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609
/var/www/html/modules/contrib/smart_date/tests/src/Functional/SmartDateTimezoneWidgetTest.php:71
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\smart_date\Functional\SmartDateTimezoneWidgetTest::testSmartdateTimezoneWidgetAllowedTimezones
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for core.entity_form_display.node.smart_date_content.default with the following errors: core.entity_form_display.node.smart_date_content.default:content.field_date.settings.allday missing schema, core.entity_form_display.node.smart_date_content.default:content.field_date.settings.remove_seconds missing schema

/var/www/html/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:94
/var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
/var/www/html/core/lib/Drupal/Core/Config/Config.php:229
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:278
/var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609
/var/www/html/modules/contrib/smart_date/tests/src/Functional/SmartDateTimezoneWidgetTest.php:71
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Steps to reproduce

install the module and run the unit test.

Proposed resolution

Update smart_date.schema.yml

Remaining tasks

Fix the unit test error.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇮🇳India MukhtarM

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

Comments & Activities

Production build 0.71.5 2024