Test failing against 10.2.x

Created on 28 May 2024, 6 months ago

Problem/Motivation

There were 3 errors:

1) Drupal\Tests\avif\Functional\SettingsFormTest::testSettingsForm
TypeError: Behat\Mink\WebAssert::fieldValueEquals(): Argument #2 ($value) must be of type string, int given, called in /builds/issue/avif-3450240/tests/src/Functional/SettingsFormTest.php on line 58
/builds/issue/avif-3450240/vendor/behat/mink/src/WebAssert.php:766
/builds/issue/avif-3450240/tests/src/Functional/SettingsFormTest.php:58
/builds/issue/avif-3450240/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

2) Drupal\Tests\avif\Kernel\ImageMagickProcessorTest::testConvert
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for imagemagick.settings with the following errors: imagemagick.settings:locale missing schema
/builds/issue/avif-3450240/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:98
/builds/issue/avif-3450240/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
/builds/issue/avif-3450240/web/core/lib/Drupal/Core/Config/Config.php:229
/builds/issue/avif-3450240/web/modules/contrib/imagemagick/tests/src/Kernel/ToolkitSetupTrait.php:58
/builds/issue/avif-3450240/tests/src/Kernel/ImageMagickProcessorTest.php:38
/builds/issue/avif-3450240/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

3) Drupal\Tests\avif\Kernel\ImageMagickProcessorTest::testConvertFailed
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for imagemagick.settings with the following errors: imagemagick.settings:locale missing schema
/builds/issue/avif-3450240/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:98
/builds/issue/avif-3450240/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111
/builds/issue/avif-3450240/web/core/lib/Drupal/Core/Config/Config.php:229
/builds/issue/avif-3450240/web/modules/contrib/imagemagick/tests/src/Kernel/ToolkitSetupTrait.php:58
/builds/issue/avif-3450240/tests/src/Kernel/ImageMagickProcessorTest.php:38
/builds/issue/avif-3450240/vendor/phpunit/phpunit/src/Framework/TestResult.php:729
ERRORS!
Tests: 20, Assertions: 50, Errors: 3.

Steps to reproduce

Proposed resolution

  • SettingsFormTest::testSettingsForm can be fixed by asserting the field value is a string, not an int
  • Remaining two errors need to remove locale from imagemagick config

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇺Australia mstrelan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024