WebAssertTest fails on 10.x

Created on 8 August 2024, 5 months ago
Updated 23 August 2024, 4 months ago

Problem/Motivation

Following 📌 Convert WebAssertTest to a Unit test Needs review there is a deprecation warning in 10.x only:

$ ddev test core/tests/Drupal/Tests/Core/Test/WebAssertTest.php 
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.

Testing Drupal\Tests\Core\Test\WebAssertTest
.........................                                         25 / 25 (100%)

Time: 00:00.059, Memory: 6.00 MB

OK (25 tests, 65 assertions)

Remaining self deprecation notices (1)

  1x: Method "Symfony\Component\BrowserKit\AbstractBrowser::doRequest()" might add "object" as a native return type declaration in the future. Do the same in child class "Drupal\Tests\Core\Test\MockClient" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DrupalListener::endTest from Drupal\Tests\Listeners

Steps to reproduce

Proposed resolution

Add return types to the MockClient test class.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
PHPUnit 

Last updated 1 day ago

Created by

🇬🇧United Kingdom longwave UK

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