Fix currently failing schema errors in tests.

Created on 7 August 2023, over 1 year ago

Problem/Motivation

There are currently a few failing tests in the last 5.x release, because of a recent cherry-pick in 🐛 Photoswipe responsive formatter shows no image, if configured to hide any thumbnail except the first one Fixed . Fix the issues:

Testing Drupal\Tests\photoswipe\FunctionalJavascript\ResponsiveImageTest
ER                                                                  2 / 2 (100%)E

Time: 00:09.359, Memory: 4.00 MB

There were 2 errors:

1) Drupal\Tests\photoswipe\FunctionalJavascript\ResponsiveImageTest::testPhotoswipeResponsiveHideOption
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for core.entity_view_display.node.node.default with the following errors: core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_node_style_first missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_node_style missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_caption missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_caption_custom missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_node_style_first missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_node_style missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_caption missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_caption_custom 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:274
/var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:253
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
/var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php:388
/var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php:148
/var/www/html/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php:319
/var/www/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/var/www/html/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:474
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:77
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:543
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:362
/var/www/html/modules/contrib/photoswipe/tests/src/FunctionalJavascript/ResponsiveImageTest.php:51
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\photoswipe\FunctionalJavascript\ResponsiveImageTest::testPhotoswipeResponsiveHideFirstOption
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for core.entity_view_display.node.node.default with the following errors: core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_node_style_first missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_node_style missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_caption missing schema, core.entity_view_display.node.node.default:content.field_image.settings.photoswipe_caption_custom missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_node_style_first missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_node_style missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_caption missing schema, core.entity_view_display.node.node.default:content.field_responsive_image.settings.photoswipe_caption_custom 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:274
/var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:486
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:253
/var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339
/var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:608
/var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php:388
/var/www/html/core/lib/Drupal/Core/Config/ConfigInstaller.php:148
/var/www/html/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/var/www/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php:319
/var/www/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/var/www/html/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:474
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:77
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:543
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:362
/var/www/html/modules/contrib/photoswipe/tests/src/FunctionalJavascript/ResponsiveImageTest.php:51
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

--

There was 1 risky test:

1) Drupal\Tests\photoswipe\FunctionalJavascript\ResponsiveImageTest::testPhotoswipeResponsiveHideOption
This test did not perform any assertions

/var/www/html/core/tests/Drupal/Tests/Listeners/DrupalListener.php:66
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:452
/var/www/html/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:377
/var/www/html/vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php:183
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php:673
/var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:661
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:144
/var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php:97

ERRORS!
Tests: 2, Assertions: 0, Errors: 2, Risky: 1.

Steps to reproduce

Proposed resolution

Fix the 5.x tests.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

5.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.71.5 2024