Closed (fixed)
Project:
Drupal core
Version:
11.4.x-dev
Component:
CLI system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2026 at 07:25 UTC
Updated:
28 Sep 2026 at 13:55 UTC
Jump to comment: Most recent
Comments
Comment #4
dcam commentedIn my opinion this didn't qualify as a bug report that can omit a test. So I added one.
Comment #5
mfbThanks @dcam, test looks good (GitLab tells me I am "not authorized" to run the test-only changes job)
Comment #6
ironnuts commentedI have reviewed this issue. Could be a bit more detail in the IS. But it is a one liner fix. I do not have permission to run the test-only test in the pipeline. The pipeline is green.
Instead I locally git checkout'ed the unit test on main branch. The output LGTM:
===============================================================================================================
F 1 / 1 (100%)
Time: 00:00.010, Memory: 8.00 MB
There was 1 failure:
1) Drupal\Tests\Core\Command\DrupalConsoleLoggerTest::testToPsr3Exception
Failed asserting that exception of type "InvalidArgumentException" matches expected exception "Psr\Log\InvalidArgumentException". Message was: "Invalid log level: -1000" at
/var/www/html/core/lib/Drupal/Core/Command/DrupalConsoleLogger.php:57
/var/www/html/core/tests/Drupal/Tests/Core/Command/DrupalConsoleLoggerTest.php:26
================================================================================================================
Changing to RTBTC.
Comment #7
ironnuts commentedComment #8
mfbComment #9
longwaveCommitted and pushed 55148447cf6 to main and fba56e1cba4 to 11.x and a3448448f69 to 11.4.x. Thanks!
Comment #14
longwaveComment #16
godotislateThis failed 11.4.x PHPStan: https://git.drupalcode.org/project/drupal/-/jobs/12163722
Thanks to @mherchel for flagging in Slack.
Comment #18
godotislate11.4.x fix https://git.drupalcode.org/project/drupal/-/merge_requests/17110
Comment #19
ironnuts commentedLGTM. ::expectExceptionMessage() exists in core ::expectExceptionMessageIs() does not. Hence the PHPSTAN issue.
Simple fix has been applied: remove the 'Is'. Pipeline including PHPSTAN is green. RTBTC.
Comment #20
ironnuts commentedComment #22
longwaveCommitted and pushed 3d04522b4eb to 11.4.x. Thanks!