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

Created on 15 September 2023, 10 months ago
Updated 30 September 2023, 9 months 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 1 minute 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.69.0 2024