Skip to content

Gridelements 12 breaks functionnal tests #87

@cjanody

Description

@cjanody

Extension testing requires to load all the dependencies via $testExtensionsToLoad.

Tests fail due to unconverted code in Gridelements:

Build/Scripts/runTests.sh -s functional -p8.2 -t12

Generating local Dockerfile using ghcr.io/typo3/core-testing-php82:1.12
[+] Building 5.3s (13/13) FINISHED                                                                                                                           docker:default
 => [internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 686B                                                                                                                                   0.0s 
 => [internal] load metadata for ghcr.io/typo3/core-testing-php82:1.12                                                                                                 0.3s 
 => [internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                        0.0s 
.
.
.
.                                                                                                         0.0s 
Pulling: docker.io/redis:4-alpine
Pulling: docker.io/memcached:1.5-alpine
PHPUnit 10.5.46 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.26
Configuration: ./Build/phpunit/FunctionalTests.xml

D                                                                   1 / 1 (100%)

Time: 00:03.766, Memory: 109.00 MB

1 test triggered 2 deprecations:

1) ./.Build/vendor/typo3/cms-core/Classes/Utility/ExtensionManagementUtility.php:539
ExtensionManagementUtility::getFileFieldTCAConfig() will be removed in TYPO3 v13.0. Use TCA type "file" directly instead.

Triggered by:

* Tests\Functional\BasicTest::dummy (2 times)
 ./Tests/Functional/BasicTest.php:67

2) ./.Build/vendor/typo3/cms-core/Classes/Utility/ExtensionManagementUtility.php:1484
Automatic TCA migration done during bootstrap. Please adapt TCA accordingly, these migrations will be removed. The backend module "Configuration -> TCA" shows the modified values. Please adapt these areas:
The TCA field 'title' of table 'tx_gridelements_backend_layout' defines "required" in its "eval" list. This is not evaluated anymore and should be replaced  by `'required' => true`.
The TCA property ['ctrl']['cruser_id'] of table 'tx_gridelements_backend_layout'  is not evaluated anymore and has therefore been removed. Please adjust your TCA accordingly.
The TCA field 'hidden' of table 'tx_gridelements_backend_layout' uses the legacy way of defining 'items'. Please switch to associated array keys: label, value, icon, group, description.
The TCA field 'horizontal' of table 'tx_gridelements_backend_layout' uses the legacy way of defining 'items'. Please switch to associated array keys: label, value, icon, group, description.
The TCA field 'frame' of table 'tx_gridelements_backend_layout' uses the legacy way of defining 'items'. Please switch to associated array keys: label, value, icon, group, description.
The TCA field 'top_level_layout' of table 'tx_gridelements_backend_layout' uses the legacy way of defining 'items'. Please switch to associated array keys: label, value, icon, group, description.

Triggered by:

* Tests\Functional\BasicTest::dummy
 ./Tests/Functional/BasicTest.php:67

OK, but there were issues!
Tests: 1, Assertions: 1, Deprecations: 2.
Remove container for network "typo3-extension-1694"

###########################################################################
Result of functional
Container runtime: docker
Container suffix: 1694
PHP: 8.2
DBMS: sqlite
FAILURE
###########################################################################

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions