Problem
It seems some recent changes in Canvas results in an incompatibility:
Time: 01:25.870, Memory: 22.00 MB
There were 2 errors:
1) Drupal\Tests\custom_elements\Kernel\CanvasIntegrationTest::testCanvasExtJsComponentConversion
ArgumentCountError: Too few arguments to function Drupal\canvas\Plugin\Canvas\ComponentSource\GeneratedFieldExplicitInputUxComponentSourceBase::__construct(), 8 passed in /builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php on line 79 and exactly 9 expected
/builds/project/custom_elements/web/modules/contrib/canvas/src/Plugin/Canvas/ComponentSource/GeneratedFieldExplicitInputUxComponentSourceBase.php:102
/builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php:79
/builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php:95
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php:21
/builds/project/custom_elements/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:85
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:62
/builds/project/custom_elements/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php:80
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:83
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:99
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:55
/builds/project/custom_elements/web/modules/contrib/canvas/src/Plugin/VersionedConfigurationSubsetSingleLazyPluginCollection.php:37
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:256
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:271
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/VersionedConfigEntityBase.php:184
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:518
Steps to reproduce
- see custom_elements tests
Proposed resolution
- we should fix + update the tests of canvas_extjs to run against canvas 1.x dev version as well (like custom_elements)
Comments
Comment #2
fagothis is the reason: https://www.drupal.org/node/3556891
Comment #4
fagoComment #6
fagoMerged! It also runs tests with 1.x-dev now, so we shoudl catch issues like this earlier in the future.