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:7282) 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
install the module and run the unit test.
Update smart_date.schema.yml
Fix the unit test error.
Fixed
4.1
Code