Follow up for "Adding Assertions to Drupal - Test Tools"

Created on 16 September 2019, about 5 years ago
Updated 26 July 2023, over 1 year ago

Problem/Motivation

When #2408013: Adding Assertions to Drupal - Test Tools. β†’ is closed as Fixed there is 6 TODOs still in place to replace exceptions with assertions.

$grep -r 2408013 core | awk -F: '{print $1}'| nl
     1  core/lib/Drupal/Core/Entity/ContentEntityBase.php
     2  core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php
     3  core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php
     4  core/lib/Drupal/Core/Render/Renderer.php
     5  core/lib/Drupal/Core/Render/Renderer.php

Proposed resolution

Replace all mentioned exceptions with assertions.

Remaining tasks

  1. Decide on whether we want a separate issue per exception or doing it all here would be fine.
  2. Patch
  3. Review
  4. Commit

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡³πŸ‡ΏNew Zealand RoSk0 Wellington

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024