Broken tests on Drupal 10.3+

Created on 27 July 2024, 4 months ago

Problem/Motivation

gitpod /workspace/drupalpod (main) $ ddev phpunit modules/contrib/select2
PHPUnit 9.6.20 by Sebastian Bergmann and contributors.

Testing /var/www/html/repos/select2
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSF................                    46 / 46 (100%)

Time: 04:30.080, Memory: 8.00 MB

There was 1 failure:

1) Drupal\Tests\select2\Kernel\Element\Select2Test::testSelect2Theming
Failed asserting that actual size 0 matches expected size 1.

/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122
/var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:56
/var/www/html/repos/select2/tests/src/Kernel/Element/Select2Test.php:35
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:729

FAILURES!
Tests: 46, Assertions: 73, Failures: 1, Skipped: 29.

Remaining self deprecation notices (33)

Remaining direct deprecation notices (3)

Remaining indirect deprecation notices (33)

Other deprecation notices (3)
Failed to run phpunit modules/contrib/select2: exit status 1

---------

gitpod /workspace/drupalpod (main) $ composer show drupal/select2
Notice: running 'composer show drupal/select2' in ddev
name     : drupal/select2
descrip. : Integration with the select2 JavaScript library.
keywords : 
versions : * dev-8.x-1.x
type     : drupal-module
license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
homepage : 
source   : []  
dist     : [path] repos/select2 2dda06457426a90ce774e8da89b6e455ca85467a
path     : /var/www/html/repos/select2
names    : drupal/select2

requires
php >=8.1

requires (dev)
drupal/better_exposed_filters ^6.0
drupal/facets 2.0.x-dev
drupal/form_options_attributes ^2.0
drupal/gin ^3.0
drupal/search_api ^1.28

--------

gitpod /workspace/drupalpod (main) $ drush st
Notice: running 'drush st' in ddev
Drupal version   : 10.3.1                                     
Site URI         : http://http://127.0.0.1:-1                 
DB driver        : mysql                                      
DB hostname      : db                                         
DB port          : 3306                                       
DB username      : db                                         
DB name          : db                                         
Database         : Connected                                  
Drupal bootstrap : Successful                                 
Default theme    : olivero                                    
Admin theme      : claro                                      
PHP binary       : /usr/bin/php8.2                            
PHP config       : /etc/php/8.2/cli/php.ini                   
PHP OS           : Linux                                      
PHP version      : 8.2.18                                     
Drush script     : /var/www/html/vendor/bin/drush             
Drush version    : 12.5.2.0                                   
Drush temp       : /tmp                                       
Drush configs    : /var/www/html/vendor/drush/drush/drush.yml 
Install profile  : standard                                   
Drupal root      : /var/www/html/web                          
Site path        : sites/default                              
Files, Public    : sites/default/files                        
Files, Temp      : /tmp   

Steps to reproduce

Proposed resolution

Remaining tasks

🐛 Bug report
Status

Active

Version

1.0

Component

Render element

Created by

🇺🇦Ukraine vlad.dancer Kyiv

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

Merge Requests

Comments & Activities

  • Issue created by @vlad.dancer
  • First commit to issue fork.
  • Merge request !43Issue 3464155: Fix broken tests → (Open) created by sokru
  • Pipeline finished with Failed
    about 1 month ago
    Total: 46s
    #317003
  • Pipeline finished with Failed
    about 1 month ago
    Total: 378s
    #317047
  • Pipeline finished with Failed
    about 1 month ago
    Total: 372s
    #317073
  • 🇫🇮Finland sokru

    The tests on MR pass on Drupal 10, but fails on Drupal 11. Maintainers could either close this as duplicate for 📌 Drupal 11 compatibility Needs work , or merge this and handle Drupal 11 related tests on related issue.

Production build 0.71.5 2024