Remove redundant if (empty($machine_name_1_value))-statement in MachineNameTest::testMachineName

Created on 15 September 2023, over 1 year ago
Updated 30 September 2023, about 1 year ago

Problem/Motivation

In \\Drupal\FunctionalJavascriptTests\Core\MachineNameTest::testMachineName there is an if (empty($machine_name_1_value ))-statement a few lines after we assertNotEmpty the exact same variable.

Steps to reproduce

Proposed resolution

Remove redundant if (empty($machine_name_1_value ))-statement, since the variable can never be empty, the assertNotEmpty would already have thrown a ExpectationFailedException and fail the tests if it would be.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 15 hours ago

Created by

🇳🇱Netherlands spokje

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

Comments & Activities

Production build 0.71.5 2024