Update unit tests for "Argument #1 ($locator) must be of type string, ..."

Created on 23 July 2024, 4 months ago
Updated 6 August 2024, 4 months ago

Problem/Motivation

In πŸ“Œ Automated Drupal 11 compatibility fixes for user_expire Needs review there is an error in the unit tests saying Argument #1 ($locator) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given

Steps to reproduce

View that test output for the PHPUnit step.

Proposed resolution

Switch the t() calls to add a ->render() as was done in issues like πŸ› Fix PHPUnit errors: 'TypeError: 'Behat\Mink\Element\TraversableElement::findButton(): Argument #1 ($locator) must be of type string, Drupal\Core\StringTranslation\TranslatableMarkup given' Fixed .

Remaining tasks

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States greggles Denver, Colorado, USA

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