Fix automated test fails on HEAD

Created on 15 March 2023, over 1 year ago
Updated 16 March 2023, over 1 year ago

Problem/Motivation

Testing is failing on HEAD, likely due to requiring testing changes to match updated core api changes mentioned here: #3160405: Deprecate overloading arguments to WebAssert methods to prevent conversions of legacy Simpletest test to carry over cruft β†’

Steps to reproduce

https://www.drupal.org/node/85240/qa β†’

https://www.drupal.org/pift-ci-job/2617637 β†’

1) Drupal\Tests\roleassign\Functional\RoleAssignPermissionTest::testRoleAssignRestrictedUser
TypeError: Drupal\Tests\WebAssert::checkboxChecked(): Argument #2 ($container) must be of type ?Behat\Mink\Element\TraversableElement, string given, called in /var/www/html/modules/contrib/roleassign/tests/src/Functional/RoleAssignPermissionTest.php on line 109

/var/www/html/core/tests/Drupal/Tests/WebAssert.php:1111
/var/www/html/modules/contrib/roleassign/tests/src/Functional/RoleAssignPermissionTest.php:109
/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\roleassign\Functional\RoleAssignPermissionTest::testRoleAssignAdminUser
TypeError: Drupal\Tests\WebAssert::checkboxChecked(): Argument #2 ($container) must be of type ?Behat\Mink\Element\TraversableElement, string given, called in /var/www/html/modules/contrib/roleassign/tests/src/Functional/RoleAssignPermissionTest.php on line 158

Proposed resolution

Review test results, come up with a solution.

Remaining tasks

Review test results, come up with a solution.

User interface changes

N/A

API changes

TBD

Data model changes

N/A

🌱 Plan
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joseph.olstad

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

Comments & Activities

Production build 0.69.0 2024