Problem/Motivation

As title

Proposed resolution

Remove redundant assertion messages at the same time.

Example:

-    $this->assertTrue(isset($ids['entity_test.entity_test.field_test_import']));
+    $this->assertArrayHasKey('entity_test.entity_test.field_test_import', $ids);

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

AndrewsizZ created an issue. See original summary.

andrewsizz’s picture

andrewsizz’s picture

Assigned: andrewsizz » Unassigned
Status: Active » Needs review
tr’s picture

Status: Needs review » Postponed (maintainer needs more info)

Can you please combine your five issues into just one issue and explain *why* these asserts need to be changed?

tr’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

There are currently no assertions involving calls to isset() in the Rules codebase.

tr’s picture

Status: Closed (outdated) » Needs review

Actually, #5 wasn't true. There are two left, which are the same as in the patch.

  • TR committed 5a891c9 on 8.x-3.x authored by AndrewsizZ
    Issue #3136850 by AndrewsizZ: Replace assertions involving calls to...
tr’s picture

Status: Needs review » Fixed

Committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.